What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning

Similar documents
Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Informatics 1. Computation and Logic. Lecture 17 The Big Ideas

Knowledge Representation and Reasoning Logics for Artificial Intelligence

SAT Solver. CS 680 Formal Methods Jeremy Johnson

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

2SAT Andreas Klappenecker

PROPOSITIONAL LOGIC (2)

1 Inference for Boolean theories

Mixed Integer Linear Programming

1.4 Normal Forms. We define conjunctions of formulas as follows: and analogously disjunctions: Literals and Clauses

COMP4418 Knowledge Representation and Reasoning

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Propositional logic (Ch. 7)

Integrating a SAT Solver with Isabelle/HOL

Knowledge Representation and Reasoning Logics for Artificial Intelligence

Decision Procedures. An Algorithmic Point of View. Decision Procedures for Propositional Logic. D. Kroening O. Strichman.

Informatics 1 - Computation & Logic: Tutorial 4

The Satisfiability Problem [HMU06,Chp.10b] Satisfiability (SAT) Problem Cook s Theorem: An NP-Complete Problem Restricted SAT: CSAT, k-sat, 3SAT

Knowledge-based systems in bioinformatics 1MB602. Exam

Propositional Calculus. Math Foundations of Computer Science

NP-Completeness. Algorithms

(a) (4 pts) Prove that if a and b are rational, then ab is rational. Since a and b are rational they can be written as the ratio of integers a 1

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

CSE 20 DISCRETE MATH. Winter

1. Define admissibility and suggest an admissible heuristic functions for the Rubik s cube. (half-twist is counted as a single move).

Seminar decision procedures: Certification of SAT and unsat proofs

Chapter 10 Part 1: Reduction

Informatics 1 - Computation & Logic: Tutorial 3

CSE 20 DISCRETE MATH. Fall

(QiuXin Hui) 7.2 Given the following, can you prove that the unicorn is mythical? How about magical? Horned? Decide what you think the right answer

Deductive Methods, Bounded Model Checking

Homework 4 Solutions

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

Recitation Session 6

Implementation of a Sudoku Solver Using Reduction to SAT

SAT-CNF Is N P-complete

EXTENDING SAT SOLVER WITH PARITY CONSTRAINTS

NP and computational intractability. Kleinberg and Tardos, chapter 8

Declarative Programming. 2: theoretical backgrounds

QuteSat. A Robust Circuit-Based SAT Solver for Complex Circuit Structure. Chung-Yang (Ric) Huang National Taiwan University

8.1 Polynomial-Time Reductions

Constraint Solving. Systems and Internet Infrastructure Security

BITCOIN MINING IN A SAT FRAMEWORK

Computability Theory

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Solving Boolean Equations with BDDs and Clause Forms. Gert Smolka

Combinatorial Algorithms. Unate Covering Binate Covering Graph Coloring Maximum Clique

Boolean Reasoning. The Logic of Boolean Equations. Frank Markham Brown Air Force Institute of Technology

Example: Map coloring

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

Logic and its Applications

Combinational Equivalence Checking

Symbolic Methods. The finite-state case. Martin Fränzle. Carl von Ossietzky Universität FK II, Dpt. Informatik Abt.

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques

Knowledge-based Systems for Industrial Applications - Propositional Logic

P -vs- NP. NP Problems. P = polynomial time. NP = non-deterministic polynomial time

Automatic Reasoning (Section 8.3)

Decision Procedures in First Order Logic

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Integration of SMT-LIB Support into Maple

Boolean Functions (Formulas) and Propositional Logic

Symbolic and Concolic Execution of Programs

Propositional Calculus. Math Foundations of Computer Science

Efficient Enumeration Algorithms for Constraint Satisfaction Problems

NP-Complete Reductions 2

4.1 Review - the DPLL procedure

Losp for Predicate Calculus

ENGIN 112. Intro to Electrical and Computer Engineering

Answer Key #1 Phil 414 JL Shaheen Fall 2010

Intersection-based methods for boosting satisfiability testing using boolean rings

Diagnosis through constrain propagation and dependency recording. 2 ATMS for dependency recording

Chapter 1. 1 Computer-Aided Logic Design. 1.1 Introduction. 1.2 General Philosophy of Problem Specification and Solution

Program Verification & Testing; Review of Propositional Logic

Lecture 1: Conjunctive Queries

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Boolean networks, local models, and finite polynomial dynamical systems

(More) Propositional Logic and an Intro to Predicate Logic. CSCI 3202, Fall 2010

Mapping CSP into Many-Valued SAT

Zchaff: A fast SAT solver. Zchaff: A fast SAT solver

Decision Procedures for Equality Logic. Daniel Kroening and Ofer Strichman 1

The Truth about Types. Bartosz Milewski

7/25/2016. Example: Addition of Unsigned Bit Patterns. ECE 120: Introduction to Computing. Adding Two Non-Negative Patterns Can Overflow

CP7201 Theoretical foundations of computer science QUESTION BANK

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

A Stochastic Non-CNF SAT Solver

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 9 Normal Forms

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Algorithms for SAT and k-sat problems

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

On Computing Minimum Size Prime Implicants

Introductory logic and sets for Computer scientists

Hybrid Constraint Solvers

Preprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation

The three faces of homotopy type theory. Type theory and category theory. Minicourse plan. Typing judgments. Michael Shulman.

Propositional Logic. Part I

CSE 215: Foundations of Computer Science Recitation Exercises Set #4 Stony Brook University. Name: ID#: Section #: Score: / 4

Sub: EM-III (14MA301) Section: A & B Date: 13/07/17 One Mark Questions: 1. a) Write the iterative formula to compute 3 N by Newton s method.

A new algorithm for incremental prime implicate generation

Transcription:

Propositional connectives, satisfying values, Get expression from venn diagram Definitions (tautology, satisfiability, etc) and basic entailment and arrow rule 3-sat to 2-sat, turning a cnf into arrow rule to count how many satisfying states there are, Arrow rule, 2-sat (arrow rule) Using boolean algebra to rearrange expressions in preparation for resolution cnf Converting to cnf Dec2015, q3 Let's cover ways of algebraically simplifying expressions. in particular expanding "r? a : g" turns into "(r && a) (!r && g)" which expands into "(r g) && (a g) && (a!r)", one of these clauses is obsolete, because it is included in the others, but i cannot see any algebraic way to determine this. Entailment & Inference What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning resolution, Resolution, entailment!!! Resolution Writing regex for fsm Examples of questions using arden's rule, Arden's rule arden's rule Arden's rule, arrow rule (2-sat, especially with the amount of satisfying states), conversion to cnf Arrow rule - number of true valuations There was a question that looked like this : {f f : a -> b }. can you explain what this function means?

Propositional connectives, satisfying values, Get expression from venn diagram Definitions (tautology, satisfiability, etc) and basic entailment and arrow rule 3-sat to 2-sat, turning a cnf into arrow rule to count how many satisfying states there are, Arrow rule, 2-sat (arrow rule) Using boolean algebra to rearrange expressions in preparation for resolution cnf Converting to cnf Dec2015, q3 Let's cover ways of algebraically simplifying expressions. in particular expanding "r? a : g" turns into "(r && a) (!r && g)" which expands into "(r g) && (a g) && (a!r)", one of these clauses is obsolete, because it is included in the others, but i cannot see any algebraic way to determine this. Entailment & Inference What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning

Today Boolean basics, arrow rule Entailment, inference. Friday 24th Resolution Thursday 30th Arden s rule Friday 1st???

1. (a) For each of the following propositional expressions, use a truth table to determine whether it is tautologous, contradictory, or contingent. i. (( B! A)! B)! B ii. ((A _ B)! A)! (B! A)

Boolean Algebra (a! b) =a ^ b a $ b =(a! b) ^ (b! a) a! b = a _ b (a _ b) = a ^ b (a ^ b) = a _ b 0 =1 a = a 1 =0 a _ 1=1 a _ (b ^ c) =(a _ b) ^ (a _ c) a ^ 0=0 a _ 0=a a_ a =1 a ^ a =0 a ^ 1=a 5

Derived Operations Definitions: x! y x _ y implication x y x _ y x $ y ( x ^ y) _ (x ^ y) equality (i ) x y ( x ^ y) _ (x ^ y) inequality (xor) Some equations: x $ y =(x! y) ^ (x y) x y = (x $ y) x y = x y x $ y = (x y) x $ y = x $ y 6

3. (a) Express each of the following expressions in clausal form. Write your answers in the table provided for Q3c. (Please order the literals in each clause alphabetically.) i. P! (Q _ R) ii. (P ^ Q)! R iii. P! (R! Q) iv. (Q ^ P )! R

2. You are given the following inference rules, due to Gentzen:, A, B `,A^ B ` (^L),A`,A (I) ` A, B, ` A _ B, (_R),A`,B `,A_ B ` (_L) ` A, ` B, ` A ^ B, (^R) ` A,,B `,A! B ` (! L),A` B, ` A! B, (! R) ` A,, A ` ( L),A` ` A, ( R) Here, A and B are propositional expressions,, are finite sets of expressions, and,a is shorthand for [ {A}. An entailment ` is valid i every valuation that makes each expression in true makes some expression in true. (a) i. Explain what it means to say that a valuation V is a counterexample for an entailment, `. [2 marks] ii. Show that the rule (! L) has the property that a valuation V is a counterexample for the rule s conclusion i it is a counterexample to at least one of its assumptions. (b) Use the Gentzen rules to show that (Q! P )! Q ` Q (c) Use the Gentzen rules to build an attempted proof of (P ^ Q)! R, P _ Q ` R (d) Derive a counter-example from your attempted proof. (Show your working, and briefly justify your answer in terms of the particular properties of this set of rules.) [2 marks]

3. (a) Express each of the following expressions in clausal form. Write your answers in the table provided for Q3c. (Please order the literals in each clause alphabetically.) i. P! (Q _ R) ii. (P ^ Q)! R iii. P! (R! Q) iv. (Q ^ P )! R Use the Gentzen rules to determine whether there is a valuation satisfying the conjunction of these four expressions.