Propositional Satisfiability

Slides:



Advertisements
Similar presentations
The Logic of Quantified Statements
Advertisements

Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
From Chapter 4 Formal Specification using Z David Lightfoot
Propositional Equivalence Goal: Show how propositional equivalences are established & introduce the most important such equivalences.
1.7 – Linear Inequalities and Compound Inequalities
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
The Foundations: Logic and Proofs
Applications of Propositional Logic
Propositional Equivalences
Lesson 6-3B Objective: Solve inequalities using more than one step…continued.
Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no.
TABLES AND VALUES Section 1.5. Open Sentence Equation.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
Selected Exercises of Sec. 1.2~Sec.1.4 Sec. 1.2 Exercise 41 p, q, r 중에 두 개가 참이면 참이 되고, 그 외 의 경우에는 거짓이 되는 복합명제를 구하 시오. Find a compound proposition involving.
Thinking Mathematically
Goal: Solve and write absolute value equations in one variable Section 4-4: Solving Absolute Value Equations.
Chapter 1: The Foundations: Logic and Proofs
1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2.
Solving One Step Equations Algebra I. Addition and Subtraction One Step Equations A solution of an equation is the value or values of the variable that.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
1.2 Application of Propositional Logic. Section Summary Translating English sentences Systems Specifications Consistence System Specifications Boolean.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Section 4 Solving Inequalities
The Foundations: Logic and Proofs
Propositional Equivalence
Objectives Solve compound inequalities in one variable involving absolute-value expressions. When an inequality contains an absolute-value expression,
EQUATION IN TWO VARIABLES:
DISCRETE MATHEMATICS CHAPTER I.
CHAPTER 3 Logic.
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Logical Equivalence of Propositions
Chapter 1 Logic and Proofs.
Solve Linear Systems by Graphing
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
(CSC 102) Discrete Structures Lecture 2.
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
2.1 Propositions and Logical Operations
Discrete Mathematics Lecture # 2.
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Propositional Calculus: Boolean Algebra and Simplification
1.2 Propositional Equivalences
Propositional Equivalences
Applications of Propositional Logic
1-5 Solving Inequalities
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley.
Objective Solve equations in one variable that contain variable terms on both sides.
Propositional Equivalences
Discrete Mathematics and Its Applications Kenneth H
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
1.2 Propositional Equivalences
SECTION 2-4 : SOLVING EQUATIONS WITH THE VARIABLE ON BOTH SIDES
Objective Solve equations in one variable that contain variable terms on both sides.
Statements of Symbolic Logic
1.2 Propositional Equivalences
Section 3.3 Truth Tables for the Conditional and Biconditional
The Foundations: Logic and Proofs
Truth Tables for the Conditional and Biconditional
1.3 Propositional Equivalences
Discrete Structures Prepositional Logic 2
Solution Sets for Equations and Inequalities
Section 7.1 Graphs, Slopes, Inequalities and Applications.
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CHAPTER 3 Logic.
Presentation transcript:

Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no such assignments exist, the compound proposition is unsatisfiable. A compound proposition is unsatisfiable if and only if its negation is a tautology. A set of compound propositions is satisfiable if and only if compound proposition in it is satisfiable

Questions on Propositional Satisfiability Example: Determine the satisfiability of the following compound propositions: Solution: Satisfiable. Assign T to p, q, and r. Solution: Satisfiable. Assign T to p and F to q. Solution: Not satisfiable. Check each possible assignment of truth values to the propositional variables and none will make the proposition true.

Solving Satisfiability Problems A truth table can always be used to determine the satisfiability of a compound proposition. But this is too complex even for modern computers for large problems. There has been much work on developing efficient methods for solving satisfiability problems as many practical problems can be translated into satisfiability problems.

Consistent System Specifications Definition: A list of propositions is consistent if it is possible to assign truth values to the proposition variables so that each proposition is true. Exercise: Are these specifications consistent? “The diagnostic message is stored in the buffer or it is retransmitted.” “The diagnostic message is not stored in the buffer.” “If the diagnostic message is stored in the buffer, then it is retransmitted.” Solution: Let p denote “The diagnostic message is not stored in the buffer.” Let q denote “The diagnostic message is retransmitted” The specification can be written as: p ∨ q, p→ q, ¬p. When p is false and q is true all three statements are true. So the specification is consistent. What if “The diagnostic message is not retransmitted is added.” Solution: Now we are adding ¬q and there is no satisfying assignment. So the specification is not consistent.