Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

Similar documents

2.2: Logical Equivalence: The Laws of Logic

CSC Discrete Math I, Spring Propositional Logic

Equational Logic: Part 2. Roland Backhouse March 6, 2001

Solutions to Homework I (1.1)

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Compound Propositions

We last time we began introducing equivalency laws.

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Propositional Equivalence

Tautologies, Contradictions, and Contingencies

Introduction to Sets and Logic (MATH 1190)

1.3 Propositional Equivalences

CS 486: Lecture 2, Thursday, Jan 22, 2009

AMTH140 Lecture 8. Symbolic Logic

Boolean Algebra. Philipp Koehn. 9 September 2016

Equivalence and Implication

Propositional Logic Language

CISC-102 Winter 2016 Lecture 17

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

PHIL12A Section answers, 16 February 2011

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Part 1: Propositional Logic

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

Set Theory Basics of Set Theory. mjarrar Watch this lecture and download the slides

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

Propositional Logic: Equivalence

Propositional Logics and their Algebraic Equivalents

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Chapter 1, Section 1.1 Propositional Logic

CSC165 Mathematical Expression and Reasoning for Computer Science

Logic: First Order Logic

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Propositional logic (revision) & semantic entailment. p. 1/34

Chapter 4: Classical Propositional Semantics

Normal Forms of Propositional Logic

Logic: Propositional Logic (Part I)

Logic Synthesis and Verification

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Propositional natural deduction

Logic Programming (PLP 11) Predicate Calculus Clocksin-Mellish Procedure Horn Clauses


Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

Propositional Logic. Spring Propositional Logic Spring / 32

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

Artificial Intelligence. Propositional logic

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Propositional Logic: Models and Proofs

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

CISC-102 Fall 2018 Week 11

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Foundations of Mathematics

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Language of Propositional Logic

First-order resolution for CTL

A. Propositional Logic

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Unit 2 Boolean Algebra

ICS141: Discrete Mathematics for Computer Science I

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Introduction to Intuitionistic Logic

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Truth-Functional Logic

COM S 330 Homework 02 Solutions. Type your answers to the following questions and submit a PDF file to Blackboard. One page per problem.

Warm-Up Problem. Is the following true or false? 1/35

3 Propositional Logic

Computation and Logic Definitions

CSE 20: Discrete Mathematics

Maximum 3-SAT as QUBO

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

Lecture 02: Propositional Logic

Chapter 1. Logic and Proof

Introduction to Theoretical Computer Science

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

3 The Semantics of the Propositional Calculus

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

The Logic of Compound Statements cont.

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Logic and Truth Tables

Propositional and Predicate Logic - II

Packet #1: Logic & Proofs. Applied Discrete Mathematics

1.1 Language and Logic

With Question/Answer Animations. Chapter 2

Introduction to Decision Sciences Lecture 2

Linear Temporal Logic (LTL)

COS 140: Foundations of Computer Science

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

Natural Deduction for Propositional Logic

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Inference in Propositional Logic

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

Transcription:

Logic and Discrete Mathematics Section 3.5 Propositional logical equivalence Negation of propositional formulae Slides version: January 2015

Logical equivalence of propositional formulae Propositional formulae A and B are logically equivalent, denoted A B, if they obtain the same truth value under any truth valuation (of the variables occurring in them).

Logical equivalence of propositional formulae Propositional formulae A and B are logically equivalent, denoted A B, if they obtain the same truth value under any truth valuation (of the variables occurring in them). Examples: (p q) p q

Logical equivalence of propositional formulae Propositional formulae A and B are logically equivalent, denoted A B, if they obtain the same truth value under any truth valuation (of the variables occurring in them). Examples: (p q) p q p q (p q) p q T T F T T T F T F F T T F T T F F F T T T F F T T F F T T F T F T F F T F F F T F T T F

Logical equivalence of propositional formulae Propositional formulae A and B are logically equivalent, denoted A B, if they obtain the same truth value under any truth valuation (of the variables occurring in them). Examples: (p q) p q p q (p q) p q T T F T T T F T F F T T F T T F F F T T T F F T T F F T T F T F T F F T F F F T F T T F p (p q) p p p

Logical equivalence of propositional formulae Propositional formulae A and B are logically equivalent, denoted A B, if they obtain the same truth value under any truth valuation (of the variables occurring in them). Examples: (p q) p q p q (p q) p q T T F T T T F T F F T T F T T F F F T T T F F T T F F T T F T F T F F T F F F T F T T F p (p q) p p p p q p (p q) p p T T T T T T T T T T T F T T T T F T T T F T F F F T T F F F F F F F F F F F F F

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A Logical equivalence is reducible to logical validity: A B iff = A B.

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A Logical equivalence is reducible to logical validity: A B iff = A B. is an equivalence relation, i.e., reflexive, symmetric, and transitive.

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A Logical equivalence is reducible to logical validity: A B iff = A B. is an equivalence relation, i.e., reflexive, symmetric, and transitive. Moreover, is a congruence with respect to the propositional connectives, i.e.:

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A Logical equivalence is reducible to logical validity: A B iff = A B. is an equivalence relation, i.e., reflexive, symmetric, and transitive. Moreover, is a congruence with respect to the propositional connectives, i.e.: if A B then A B, and

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A Logical equivalence is reducible to logical validity: A B iff = A B. is an equivalence relation, i.e., reflexive, symmetric, and transitive. Moreover, is a congruence with respect to the propositional connectives, i.e.: if A B then A B, and if A 1 B 1 and A 2 B 2 then (A 1 A 2 ) (B 1 B 2 ), where {,,, }.

Some basic properties of logical equivalence Logical equivalence is reducible to logical consequence: A B iff A = B and B = A Logical equivalence is reducible to logical validity: A B iff = A B. is an equivalence relation, i.e., reflexive, symmetric, and transitive. Moreover, is a congruence with respect to the propositional connectives, i.e.: if A B then A B, and if A 1 B 1 and A 2 B 2 then (A 1 A 2 ) (B 1 B 2 ), where {,,, }. Theorem for equivalent replacement: Let A, B, C be any propositional formulae p be a propositional variable. If A B then C(A/p) C(B/p), where C(X/p) is the result of simultaneous substitution of al occurrences of p by X.

Some important logical equivalences Idempotency: p p p; p p p.

Some important logical equivalences Idempotency: p p p; p p p. Commutativity: p q q p; p q q p.

Some important logical equivalences Idempotency: Commutativity: Associativity: p p p; p p p. p q q p; p q q p. (p (q r)) ((p q) r); (p (q r)) ((p q) r). Note that this property allows us to omit the parentheses in multiple conjunctions and disjunctions.

Some important logical equivalences Idempotency: Commutativity: Associativity: p p p; p p p. p q q p; p q q p. (p (q r)) ((p q) r); (p (q r)) ((p q) r). Note that this property allows us to omit the parentheses in multiple conjunctions and disjunctions. Absorption: p (p q) p; p (p q) p.

Some important logical equivalences Idempotency: Commutativity: Associativity: p p p; p p p. p q q p; p q q p. (p (q r)) ((p q) r); (p (q r)) ((p q) r). Note that this property allows us to omit the parentheses in multiple conjunctions and disjunctions. Absorption: Distributivity: p (p q) p; p (p q) p. p (q r) (p q) (p r); p (q r) (p q) (p r).

Other useful logical equivalences A A ; A A A A; A A ; A A A A A B (A B) (B A) A B A B A B A B A B ( A B); A B ( A B) A B B A

Important equivalences for negations of propositional formulae A A, (A B) A B, (A B) A B, (A B) A B, (A B) ((A B) (B A)) (A B) (B A) (A B) (B A).

Important equivalences for negations of propositional formulae A A, (A B) A B, (A B) A B, (A B) A B, (A B) ((A B) (B A)) (A B) (B A) (A B) (B A). Using these equivalences, all occurrences of negations in any propositional formula can be driven inwards, so eventually they only occur in from of propositional variables. Then the formula is transformed to a negation normal form.

Transformation to negation normal form: example ( p ( q r))

Transformation to negation normal form: example ( p ( q r)) p ( q r) p ( q r) p (q r)