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

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

2.2: Logical Equivalence: The Laws of Logic

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Assignments for Math 220, Formal Methods. J. Stanley Warford

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

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

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

CSC Discrete Math I, Spring Propositional Logic

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Propositional Logics and their Algebraic Equivalents


Propositional natural deduction

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

( V ametavariable) P P true. even in E)

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

Artificial Intelligence. Propositional logic

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

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

Introduction to Sets and Logic (MATH 1190)

CSE 20: Discrete Mathematics

Compound Propositions

Natural Deduction for Propositional Logic

Equivalents of Mingle and Positive Paradox

EECS 1028 M: Discrete Mathematics for Engineers

Propositional Logic. Spring Propositional Logic Spring / 32

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

Tautologies, Contradictions, and Contingencies

Solutions to Homework I (1.1)

Foundations of Mathematics

Section 1.2: Propositional Logic

Proof Tactics, Strategies and Derived Rules. CS 270 Math Foundations of CS Jeremy Johnson

Language of Propositional Logic

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Introduction to Metalogic

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

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

1.3 Propositional Equivalences


Part I: Propositional Calculus

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Propositional Equivalence

Propositional Logic Sequent Calculus

Readings: Conjecture. Theorem. Rosen Section 1.5

A. Propositional Logic

Propositional Resolution

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

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

Chapter 4, Logic using Propositional Calculus Handout

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

Proving simple set properties...

PROPOSITIONAL CALCULUS

Proofs. Joe Patten August 10, 2018

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

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

AMTH140 Lecture 8. Symbolic Logic

Propositional Logic Language

CITS2211 Discrete Structures Proofs

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

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

2 Truth Tables, Equivalences and the Contrapositive

We last time we began introducing equivalency laws.

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

CISC-102 Winter 2016 Lecture 17

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Glossary of Logical Terms

Equivalence and Implication

Propositional and Predicate Logic - V

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Version January Please send comments and corrections to

Fundamentals of Logic

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

3 The Semantics of the Propositional Calculus

Logic for Computer Science - Week 4 Natural Deduction

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

The Modal Logic of Pure Provability

Logic and Proofs. (A brief summary)

Linear Temporal Logic (LTL)

LING 501, Fall 2004: Laws of logic and the definitions of the connectives

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Notes on Inference and Deduction

Overview of Logic and Computation: Notes

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

Propositional Logic: Part II - Syntax & Proofs 0-0

MAI0203 Lecture 7: Inference and Predicate Calculus

software design & management Gachon University Chulyun Kim

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

PHI Propositional Logic Lecture 2. Truth Tables

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

Basic Propositional Logic. Inductive Theory of the Natural Numbers. Conjunction. Equivalence. Negation and Inequivalence. Implication.

Logical Agents (I) Instructor: Tsung-Che Chiang

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

MAT 243 Test 1 SOLUTIONS, FORM A

Transcription:

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

Outline 2 We continue the axiomatisation of the propositional connectives. The axioms for disjunction (the logical or of two statements) are added to the axioms for equivalence and negation, and then it is shown how to define the remaining logical connectives (conjunction, i.e. logical and, if and only if ) in terms of these three primitives.

Axioms for Disjunction 3 Idempotence Symmetry Associativity p p p. p q q p. p (q r) (p q) r.

Simplifying Continued Disjunctions 4 The associativity of disjunction allows us to omit parentheses in continued disjunctions, as in for example p q p r q q. The symmetry of disjunction means that the terms in such a continued disjunction can be rearranged at will, and the idempotence of disjunction means that multiple occurrences of the same term can be reduced to one. So the above expression would be simplified as follows: p q p r q q = { rearranging terms allowed because p p r q q q disjunction is symmetric and associative } = { idempotence of disjunction (applied three times) } p r q.

Axioms for Disjunction (Continued) 5 Distributivity p (q r) p q p r. Excluded Middle p p. Using this basis we can derive, eg., false is a unit of disjunction: p false = { definition of false } p ( p p) = { disjunction distributes over equivalence } p p p p = { excluded middle and idempotence of disjunction } true p = { unit of equivalence } p.

Exercise 1 Prove that p true true. 6

Conjunction 7 Golden Rule p q p q p q. The golden rule can be seen as a definition of conjunction in terms of equivalence and disjunction if we read it as (p q) = (p q p q). But it can also be read in other ways. For example, the golden rule asserts the equality (p q p) = (q p q). This reading will be used later when we define logical implication. It can also be read as a definition of disjunction in terms of conjunction: (p q p q) = (p q). This reading is sometimes useful when in a calculation it is expedient to replace disjunctions by conjunctions.

Symmetry and Idempotence 8 p q = { golden rule } p q p q = { equivalence and disjunction are symmetric } q p q p = { golden rule, p,q := q,p } q p. Exercise 2 Prove that p p p in the same way. (Begin with p p and simplify.)

Absorption 9 p (p q) = { golden rule } p (p q p q) = { disjunction distributes over equivalence } p p p q p (p q) = { idempotence and associativity of disjunction } p p q p q = { unit/reflexivity law of equivalence } p.

Associativity 10 Now we prove that conjunction is associative. First, we observe a lemma. p (q r) = { golden rule: p,q := p, q r } p q r p (q r) = { golden rule: p,q := q,r } p q r q r p (q r q r) = { distributivity of disjunction over equivalence } p q r q r p q p r p q r.

Associativity (Continued) 11 To complete our task we use the lemma twice, once with a different permutation of the variables: p (q r) = { above } p q r q r p q p r p q r = { equivalence is symmetric, disjunction is symmetric } r p q p q r p r q r p q = { above, p,q,r := r,p,q } r (p q) = { conjunction is symmetric } (p q) r.

Distributivity of disjunction over conjunction 12 (p q) (p r) = { golden rule, p,q := p q, p r } p q p r p q p r = { continued disjunctions } p q p r p q r = { distributivity of disjunction over equivalence } p (q r q r) = { golden rule, p,q := q,r } p (q r).

Distributivity of conjunction over disjunction 13 (p q) (p r) = { distributivity of disjunction over conjunction (just proved) } ((p q) p) ((p q) r) = { absorption (see above) } p ((p q) r) = { distributivity of disjunction over conjunction (symmetric version) } p (p r) (q r) = { absorption } p (q r).

Implication 14 Definition of if p q p p q. Definition of only if p q q p q. p q q p q. p q p p q. Exercise 3 Prove that p true p and p false true.

Modus Ponens 15 The advantage of using equations over other methods for defining the logical connectives is the opportunity to substitute equals for equals. The definition of p q provides good examples of this. (p q) q = { true is unit of equivalence } (p q) (q true) = { substitution of equals for equals: the value (p true) (q true) = { p true p } p q. true is substituted for q in the term p q }

(p q) (q r) 16 = { definition } (p p q) (q q r) = { conjunction is idempotent and symmetric } (p p q) (q q r) (p p q) = { substitution of equals for equals: the rightmost occurrence of q is replaced by q r } (p p q) (q q r) (p p q r) = { substitution of equals for equals: the rightmost occurrence of p q is replaced by p } (p p q) (q q r) (p p r) = { definition } (p q) (q r) (p r) { weakening } p r.