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

Similar documents
Truth-Functional Logic

CSC Discrete Math I, Spring Propositional Logic

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

Boolean Algebra. Philipp Koehn. 9 September 2016

We last time we began introducing equivalency laws.

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

2.2: Logical Equivalence: The Laws of Logic

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

Formal Logic. Critical Thinking

Unary negation: T F F T

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

Compound Propositions

Chapter 2: Switching Algebra and Logic Circuits

Propositional logic ( ): Review from Mat 1348

Chapter 1, Section 1.1 Propositional Logic

Computer Organization: Boolean Logic

Tecniche di Verifica. Introduction to Propositional Logic

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

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

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

Unit 8A Computer Organization. Boolean Logic and Gates

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

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

Definition 2. Conjunction of p and q

02 Propositional Logic

Logic and Truth Tables

CISC-102 Winter 2016 Lecture 17

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.

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Logic Part I: Classical Logic and Its Semantics

CSC165 Mathematical Expression and Reasoning for Computer Science

Boolean Algebra, Gates and Circuits

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Lecture 7. Logic. Section1: Statement Logic.

UNIT-I: Propositional Logic

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

Logic and Proofs. (A brief summary)

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

Chapter 4: Classical Propositional Semantics

Math Final Exam December 14, 2009 Page 1 of 5

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

Logic and Proof. Aiichiro Nakano

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices.

Propositional Logic Truth-functionality Definitions Soundness Completeness Inferences. Modal Logic. Daniel Bonevac.

Logic: Propositional Logic (Part I)

Formal Logic 2. This lecture: Standard Procedure of Inferencing Normal forms Standard Deductive Proofs in Logic using Inference Rules

1.1 Language and Logic

Boolean Algebra CHAPTER 15

CISC-102 Fall 2018 Week 11

Part I: Propositional Calculus

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

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

Logic and Truth Tables

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Lecture 02: Propositional Logic

Propositional Logic. Spring Propositional Logic Spring / 32

Propositional Equivalence

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

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

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Language of Propositional Logic

1 Propositional Logic

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

Logic and Inferences

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

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

Foundation of proofs. Jim Hefferon.

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Logic and Boolean algebra

It is not the case that ϕ. p = It is not the case that it is snowing = It is not. r = It is not the case that Mary will go to the party =

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Comp487/587 - Boolean Formulas

211: Computer Architecture Summer 2016

a. ~p : if p is T, then ~p is F, and vice versa

Propositional Logics and their Algebraic Equivalents

Propositional Logic Language

This form sometimes used in logic circuit, example:

Chapter 2. Boolean Algebra and Logic Gates

Boolean Logic. CS 231 Dianna Xu

Logic and Proofs. (A brief summary)

The Logic of Compound Statements cont.

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

Logic and Propositional Calculus

Boolean Algebra and Digital Logic

Logic and Propositional Calculus

Math 2534 Solution Homework 2 Spring 2017

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

1 Boolean Algebra Simplification

1.1 Statements and Compound Statements

Introduction. Applications of discrete mathematics:

A statement is a sentence that is definitely either true or false but not both.

Mathematical Logic Part Three

Review of Predicate Logic

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

Section 1.1: Logical Form and Logical Equivalence

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

= x ( x 2 4 ) [factor out x] (2)

Transcription:

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

Equivalences Involving Conditionals

Some Important Equivalences Involving Conditionals Implication: P Q P Q (P Q) P Q Contraposition (or ransposition): P Q Q P Exportation: P (Q R) (P Q) R Equivalence: P Q (P Q) (Q P) P Q (P Q) ( P Q)

Some More Equivalences Distribution: P (Q R) (P Q) (P R) P (Q R) (P Q) (P R) (P Q) R (P R) (Q R) (P Q) R (P R) (Q R) (this last one is a good example of the paradox of material implication!) Conditional Reduction: (P Q) P P Q (P Q) Q P Q Also: P P P P P P P P P P P

Normal orms

Negation Normal orm Literals: Atomic Sentences or negations thereof. Negation Normal orm: An expression built up with,, and literals. Using repeated DeMorgan and Double Negation, we can transform any truth-functional expression built up with,, and into an expression that is in Negation Normal orm. Example: ((A B) C) (DeMorgan) (A B) C (Double Neg, DeM) ( A B) C

Disjunctive Normal orm Disjunctive Normal orm: A generalized disjunction of generalized conjunctions of literals. Using repeated distribution of over, any statement in Negation Normal orm can be written in Disjunctive Normal orm. Example: (A B) (C D) (Distribution) [(A B) C] [(A B) D] (Distribution (2x)) (A C) (B C) (A D) (B D)

Conjunctive Normal orm Conjunctive Normal orm: A generalized conjunction of generalized disjunctions of literals. Using repeated distribution of over, any statement in Negation Normal orm can be written in Conjunctive Normal orm. Example: (A B) (C D) (Distribution) [(A B) C] [(A B) D] (Distribution (2x)) (A C) (B C) (A D) (B D)

Special Cases Any literal (such as A or B) is in NN, DN (it is a disjunction whose only disjunct is a conjunction whose only conjunct is that literal), and CN A conjunction of literals (e.g. A B C) is in NN, DN (a disjunction whose only disjunct is that conjunction), and CN Likewise, a disjunction of literals is in NN, DN, and CN In particular, and are in NN, DN, and CN as well.

Expressive Completeness

ruth-unctional Connectives So far, we have seen one unary truth-functional connective ( ), and four binary truth-functional connectives (,,, ). However, there are many more truth-functional connectives possible: irst of all, a connective can take any number of arguments: 3 (ternary), 4, 5, etc. Second, there are unary and binary connectives other than the ones listed above.

Unary Connectives What other unary connectives are there besides? hinking about this in terms of truth tables, we see that there are 4 different unary connectives: P *P P *P P *P P *P

Binary Connectives he truth table below shows that there are 2 4 = 16 binary connectives: P Q P*Q / In general: n sentences / / 2 n truth value combinations (i.e. 2 n rows in truth table) / 2 2n different n-ary connectives!

Expressing other connectives using and, or, and not We saw that we can express the exclusive disjunction using and, or, and not. Q: Can we express all other connectives as well? A: Yes! We can generalize from this example: P Q P*Q Step 1: Step 2: P Q (P Q) ( P Q) P Q

ruth-unctional Expressive Completeness Any expression using any truth-functional operators can be rewritten as a Boolean expression, i.e. an expression that only uses s, s, and s. Since I can express any truth function using,, and, we say that the set of operators {,, } is (truth-functionally) expressively complete.

{, } and {, } are Expressively Complete Using DeMorgan Laws and Double Negation: P Q ( P Q) P Q ( P Q) Hence, by the principle of substitution of logical equivalents, since {,, } is expressively complete, the sets {, } and {, } are expressively complete as well!

he NAND Let us define the binary truth-functional connective NAND according to the truth-table below. Obviously, P NAND Q (P Q) (hence the name!) P Q P NAND Q

Expressive Completeness of the NAND he NAND is very interesting, because the {NAND} is expressively complete! Proof: We already know that we can express every truth-functional connective using only and. urthermore: P NAND P (P P) P (P NAND P) NAND (Q NAND Q) ((P NAND P) (Q NAND Q)) ( P Q) P Q

he NOR Let us define the binary truth-functional connective NOR according to the truth-table below. Obviously, P NOR Q (P Q) (hence the name!) P Q P NOR Q

Expressive Completeness of the NOR Like the NAND, the NOR can express any truthfunctional connective, i.e. {NOR} is expressively complete as well! Proof: We already know that we can express every truth-functional connective using only and. urthermore: P NOR P (P P) P (P NOR P) NOR (Q NOR Q) ((P NOR P) (Q NOR Q)) ( P Q) P Q

Completeness of Equivalence Rules

Completeness of Equivalence Rules If we regard some set S of equivalence principles as formal, syntactical, rewriting principles, then we can define: ϕ S ψ iff through the successive use of equivalence principles, ϕ can be rewritten into ψ S is a complete set of equivalence rules iff: or any ϕ and ψ: if ϕ ψ then ϕ S ψ

How to Prove Completeness? I claim that the following set BS of equivalence rules is complete (restricting ourselves to statements involving Boolean operators only): Commutation Association Double Negation DeMorgan Distribution Idempotence Identity Complement Annihilation How do I prove this?

Proof Using Normal orms Let s say that the canonical form of a statement ϕ is the statement C(ϕ) that is the statement you get from using the truth-table trick to get a statement s equivalent expression: Reference columns followed pre-set ordering of atomic statements Reference columns are filled out using pre-set alternation scheme Conjuncts are conjuncted following same alphabetical order Disjuncts are disjuncted from top row to bottom heorem: or any ϕ: ϕ BS C(ϕ) And hence, for any ϕ and ψ: if ϕ ψ then ϕ BS C(ϕ) = (!) C(ψ) BS ψ