Truth-Functional Logic

Similar documents
CSC Discrete Math I, Spring Propositional Logic

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

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

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

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

Compound Propositions

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

Lecture 7. Logic. Section1: Statement Logic.

Propositional logic ( ): Review from Mat 1348

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

Logic: Propositional Logic (Part I)

EECS 1028 M: Discrete Mathematics for Engineers

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

Unary negation: T F F T

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

Chapter 1, Section 1.1 Propositional Logic

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 =

Lecture 4: Proposition, Connectives and Truth Tables

Tecniche di Verifica. Introduction to Propositional Logic

UNIT-I: Propositional Logic

Solutions to Homework I (1.1)

Propositional Logic. Spring Propositional Logic Spring / 32

2.2: Logical Equivalence: The Laws of Logic

cis32-ai lecture # 18 mon-3-apr-2006

02 Propositional Logic

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

1 Propositional Logic

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

Language of Propositional Logic

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

3 The Semantics of the Propositional Calculus

Topic 1: Propositional logic

ECE473 Lecture 15: Propositional Logic

We last time we began introducing equivalency laws.

1.3 Propositional Equivalences

Propositional Language - Semantics

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

Math.3336: Discrete Mathematics. Propositional Equivalences

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

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.

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

THE LOGIC OF COMPOUND STATEMENTS

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

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

Definition 2. Conjunction of p and q

Section 1.1: Logical Form and Logical Equivalence

CISC-102 Winter 2016 Lecture 17

Chapter 4: Classical Propositional Semantics

Propositional Logic and Semantics

1.1 Statements and Compound Statements

Tautologies, Contradictions, and Contingencies

First-Degree Entailment

A brief introduction to Logic. (slides from

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Proofs. Joe Patten August 10, 2018

15414/614 Optional Lecture 1: Propositional Logic

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

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional Equivalence

The Logic of Compound Statements cont.

Boolean Algebra. Philipp Koehn. 9 September 2016

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

Logic, Sets, and Proofs

5. And. 5.1 The conjunction

Discrete Mathematics and Applications COT3100

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

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Propositional Languages

Chapter 1: The Logic of Compound Statements. January 7, 2008

Equivalence and Implication

The statement calculus and logic

1 Propositional Logic

Comp487/587 - Boolean Formulas

Discrete Mathematics and Its Applications

CISC-102 Fall 2018 Week 11

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

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

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

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

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

SE 212: Logic and Computation. se212 Nancy Day

Formal Logic. Critical Thinking

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04

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

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

Part I: Propositional Calculus

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Propositional Logics and their Algebraic Equivalents

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion)

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Propositional and Predicate Logic - II

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

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

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Introduction to Metalogic 1

PHIL12A Section answers, 16 February 2011

ICS141: Discrete Mathematics for Computer Science I

5. And. 5.1 The conjunction

Transcription:

Truth-Functional Logic Syntax Every atomic sentence (A, B, C, ) is a sentence and are sentences With ϕ a sentence, the negation ϕ is a sentence With ϕ and ψ sentences, the conjunction ϕ ψ is a sentence (ϕ and ψ are called conjuncts) With ϕ and ψ sentences, the disjunction ϕ ψ is a sentence (ϕ and ψ are called disjuncts) With ϕ and ψ sentences, the conditional ϕ ψ is a sentence (ϕ is the antecedent, ψ the consequent) With ϕ and ψ sentences, the biconditional ϕ ψ is a sentence All sentences that are not atomic are compound sentences. A literal is either an atomic sentence or the negation of an atomic sentence. The complement L of a literal L is: 1) P if L is P 2) P if L is P where P is an atomic sentence In the conjunction ϕ ψ, the by itself is called a logical connective, as it connects (it conjuncts, in this case) two component sentences. Likewise,,, and are logical connectives. In fact, even is a connective, even though it only connects one sentence. The connectives,,,, and are referred to as conjunction, disjunction, negation, conditional, and biconditional, respectively. The connectives,, and are Boolean connectives, named after the 19 th century founder of modern formal logic, George Boole. The part of truth-functional logic that deals with the Boolean connectives only is called Boolean Logic.

Parentheses and the Method of Induction A statement like A B C is ambiguous: is this the conjunction of A and B C, or is this a disjunction of A B and C? We will require that our statements are not ambiguous, and we will use parentheses to do so. So, if this statement was meant to be a conjunction of A and B C, we will write A (B C). In fact, some textbooks will make parentheses simply part of the formal syntax. That is, in the recursive definition of syntactical expressions that we saw on the previous page, they will define a conjunction of A and B as (A B), and the same for disjunctions, conditionals, and biconditionals. So, the sentence A (B C) will actually end up as (A (B C))! We will keep things a little more informal, especially since this business with parentheses is all completely intuitive and obvious. In fact, let s prove the following, completely obvious, theorem about sentences of our language: Theorem: Every sentence has just as many left parentheses as right parentheses The proof of this theorem is only interesting in so far that it demonstrates an important technique to prove claims about sentences. This technique is mathematical induction. In particular, to prove that every sentence has some property P, we will prove two things: A. Inductive Base: Every atomic sentence has property P B. Inductive Step: For any sentences ϕ and ψ: If ϕ and ψ have property P (this is the Inductive Hypothesis or Inductive Assumption), then ϕ, ϕ ψ, ϕ ψ, ϕ ψ, and ϕ ψ have property P as well. It should be obvious, given the recursive definition of sentences, that from these two things, it follows that indeed all sentences have property P. So, back to the Theorem. Here is the A. Inductive Base: All atomic sentences do indeed have just as many left and right parentheses, namely 0. B. Inductive Step: assuming ϕ and ψ both have just as many left and right parentheses, ϕ, ϕ ψ, ϕ ψ, ϕ ψ, and ϕ ψ will all have just as many left and right parentheses as well (here we could say something like: if ϕ has m left and right parentheses, and ψ has n left and right parentheses, then ϕ ψ has m + n left and tight parentheses (plus maybe a few more for disambiguation), but you get the point) That s it!

Semantics Where L is the set of all syntactical sentences, a truth-assignment h is a function h:l {True, False} that satisfies the following conditions: h( ) = True h( ) = False h( ϕ) = True iff h(ϕ) = False h(ϕ ψ) = True iff h(ϕ) = True and h(ψ) = True h(ϕ ψ) = False iff h(ϕ) = False and h(ψ) = False h(ϕ ψ) = False iff h(ϕ) = True and h(ψ) = False h(ϕ ψ) = True iff h(ϕ) = True and h(ψ) = True or h(ϕ) = False and h(ψ) = False We thus see that truth-assignments assign truth-values to sentences in such a way that the truth-value of a compound sentence is systematically related to the truth-values of its component parts. More specifically, given any truth-assignment h, the truth-value that h assigns to a compound sentence can be seen as a function of the truth-values that h assigns to its component parts. Indeed, the logical connectives (negation, conjunction, disjunction, conditional and biconditional) can be seen as truth-functions: functions that take in some number of truth-values (1 in the case of negation, and 2 in the case of conjunction, disjunction, conditional, and biconditional) and output a new truth-value. That s why the logical connectives are also often called logical operators. And, it is why sentential logic, or propositional logic, is called Truth-Functional Logic.

Truth-Tables Truth-Tables can be used to depict truth-functional semantics: Negation: ϕ ϕ T F F T Conjunction, Disjunction, Conditional, Biconditional: ϕ ψ ϕ ψ ϕ ψ ϕ ψ ϕ ψ T T T T T T T F T F F F F T T F T F F F F F T T Truth-tables can also be used to find the truth-conditions of any compound sentence. A B C A (B C) T T T T T T T F T T T F T T T T F F F F F T T F T F T F F T F F T F T F F F F F

Tautology, Contradiction, Contingency A sentence ϕ is a tautology iff there is no truth-function h such that h(ϕ) = False A A is a tautology: A A A T T F T A sentence ϕ is a contradiction iff there is no truth-function h such that h(ϕ) = True A A is a tautology: A A A T F F F A sentence ϕ is contingent iff there exists a truth-function h such that h(ϕ) = True and there exists a truth-function h such that h(ϕ) = False A is contingent: A T F A T F

Equivalence, Contradictory, Contrary, Subcontrary, Implication Two sentences ϕ and ψ are equivalent iff for all h: h(ϕ) = True iff h(ψ) = True A and A A are equivalent: A T F A A T F When ϕ and ψ are equivalent we write: ϕ ψ Two sentences ϕ and ψ are contradictory iff for all h: h(ϕ) = True iff h(ψ) = False Two sentences ϕ and ψ are contrary iff there exists no h such that h(ϕ) = True and h(ψ) = True Two sentences ϕ and ψ are subcontrary iff there exists no h such that h(ϕ) = False and h(ψ) = False A sentence ϕ implies sentence ψ iff there exists no h such that h(ϕ) = True and h(ψ) = False A implies A B: A B A B T T T T F T F T T F F F When ϕ implies ψ we write: ϕ ψ When ϕ implies ψ we say that ϕ is a stronger statement than ψ or, conversely, that ψ is a weaker statement than ϕ. Sometimes, we say that ψ is subsumed by ϕ. This is most easily understood with an example where ϕ = P Q and ψ = P; since P is part of what is already asserted in P Q, we say that P has been subsumed by P Q.

Implication, Consistency, Validity A set of sentences Γ = {ϕ 1,, ϕ n } implies a sentence ψ iff there exists no h such that h(ϕ i ) = True for all sentences ϕ i in Γ and h(ψ) = False When Γ implies ψ we write Γ ψ We can write ϕ 1,, ϕ n ψ as short for {ϕ 1,, ϕ n } ψ. Similarly, Γ, ϕ ψ is short for Γ {ϕ} ψ, and Γ, ψ is short for Γ ψ Theorem 1.0.1: ϕ ψ iff ϕ ψ A set of sentences Γ = {ϕ 1,, ϕ n } is consistent iff there exists an h such that h(ϕ i ) = True for all sentences ϕ i in Γ When a set of sentences Γ is inconsistent, we write Γ Theorem 1.0.2: Γ iff Γ Γ iff (def. ) there exists no h such that h(ϕ) = True for all sentences in Γ iff (sem. ) there exists no h such that h(ϕ) = True for all sentences in Γ and h( ) = False iff (def. ) Γ When Γ implies ψ and Γ = (the empty set), we write ψ A sentence ψ is valid iff ψ. Theorem 1.0.3: ψ is a tautology iff ψ is valid An argument ϕ 1,, ϕ n / ψ is valid iff there exists no h such that h(ϕ i ) = True for all sentences ϕ i and h(ψ) = False Theorem 1.0.4: An argument ϕ 1,, ϕ n / ψ is valid iff {ϕ 1,, ϕ n } ψ Proofs of any unproven theorems above are trivial and left to the reader.

Some Theorems regarding Tautology, Contradiction, and Contingency Theorem 1.1.1: ϕ is a tautology iff ϕ is a contradiction ϕ is a tautology iff (definition tautology) there is no h such that h(ϕ) = False iff (semantics ) there is no h such that h( ϕ) = True iff (definition contradiction) ϕ is a contradiction Theorem 1.1.2: ϕ is a contradiction iff ϕ is a tautology ϕ is a contradiction iff (definition contradiction) there is no h such that h(ϕ) = True iff (semantics ) there is no h such that h( ϕ) = False iff (definition tautology) ϕ is a tautology Theorem 1.1.3: ϕ is contingent iff ϕ is contingent ϕ is contingent iff (def. contingency) there exists an h such that h(ϕ) = True and there exists an h such that h(ϕ) = False iff (sem. ) there exists an h such that h( ϕ) = False and there exists an h such that h( ϕ) = True iff (def. contingency) ϕ is contingent Theorem 1.1.4: For any statement ϕ: ϕ (i.e. a contradiction implies anything) Theorem 1.1.5: For any statement ϕ: ϕ (i.e. anything implies a tautology) The last two theorems reveal a useful way to think about (contradiction) and (tautology). Basically, a contradiction claims everything (i.e. that pigs fly, that pigs don t fly, that 1+1 =2, that 1+1 = 3, etc), while a tautology claims nothing at all. This means that there is no information contained in a tautology (indeed, to say that it will rain or it won t doesn t tell us anything at all). Of course, by claiming that everything is the case, a contradiction isn t very helpful either!

Some Theorems regarding Equivalence, Implication, Contradictory, Contrary, and Subcontrary Theorem 1.2.1: ϕ ψ iff ϕ ψ and ψ ϕ ϕ ψ iff (def. ) for all h: h(ϕ) = True iff h(ψ) = True iff (exhaust only two possibilities) there is no h such that h(ϕ) = True and h(ψ) = False and there is no h such that h(ψ) = True and h(ϕ) = False iff (def. ) ϕ ψ and ψ ϕ Theorem 1.2.2: Two statements ϕ and ψ are contradictory iff ϕ and ψ are contrary and subcontrary. ϕ and ψ are contradictory iff it is impossible for ϕ and ψ to have the same truth-value iff it is impossible for ϕ and ψ to be true and it is impossible for ϕ and ψ to be false iff ϕ and ψ are contrary and subcontrary. Theorem 1.2.3: ϕ ψ iff ϕ and ψ are contradictory Left to the reader. Theorem 1.2.4: If ϕ ψ and ψ λ, then ϕ λ Assume ϕ ψ and ψ λ. Then 1) there exists no h such that h(ϕ) = True and h(ψ) = False, and 2) there exists no h such that h(ψ) = True and h(λ) = False. So, if we take any h for which h(ϕ) = True, then by 1) it must also be the case that h(ψ) = True, and hence by 2) it must also be the case that h(λ) = True. Therefore, there cannot exist an h such that h(ϕ) = True and h(λ) = False. Therefore, ϕ λ. Theorem 1.2.5: ϕ ψ iff ψ ϕ Theorem 1.2.6: Theorem 1.2.7: ϕ ϕ Proofs: Left to the reader.

Some Theorems regarding Consistency, Implication, and Validity Theorem 1.3.1: If ϕ Γ then Γ ϕ If ϕ Γ, then for any h such that h(ψ) = True for all sentences ψ in Γ, h(ϕ) = True. Hence, by definition, Γ ϕ. Special Case (Assumptions Principle): {ϕ} ϕ (or just ϕ ϕ) Theorem 1.3.2: If Γ 1 ψ and Γ 1 Γ 2 then Γ 2 ψ Special Case (Thinning Principle): If Γ ϕ then Γ, ψ ϕ Theorem 1.3.3 (Cutting Principle): If Γ ϕ and, ϕ ψ then Γ, ψ Special Case: If Γ ϕ and ϕ ψ then Γ ψ Theorem 1.3.4 (Negation Basic Principle): Γ ψ iff Γ { ψ} Γ ψ iff (def. ) there exists no h s.t. h(ϕ) = True for all sentences ϕ in Γ and h(ψ) = False iff (sem. ) there exists no h s.t. h(ϕ) = True for all sentences ϕ in Γ and h( ψ) = True iff (same) there exists no h s.t. h(ϕ) = True for all sentences ϕ in Γ { ψ}iff (def. ) Γ { ψ} Theorem 1.3.5 (Conjunction Basic Principle): Γ ϕ ψ iff Γ ϕ and Γ ψ Left to reader Theorem 1.3.6 (Disjunction Basic Principle): Γ, ϕ ψ iff Γ, ϕ and Γ, ψ Homework 1 Theorem 1.3.7 (Conditional Basic Principle): Γ ϕ ψ iff Γ, ϕ ψ Left to Reader

Some Theorems regarding Tautology, Contradiction, and Implication Theorem 1.4.1: ψ is a tautology iff ψ ψ is a tautology iff (def. tautology) there is no h such that h(ψ) = False iff (no sentences in ) there is no h such that h(ϕ) = True for all sentences ϕ in and h(ψ) = False iff (def. ) ψ Theorem 1.4.2: ψ is a tautology iff ψ ψ is a tautology iff (def. tautology) there is no h such that h(ψ) = False iff (sem. ) there is no h such that h( ) = True and h(ψ) = False iff ψ Theorem 1.4.3: ϕ is a contradiction iff ϕ ϕ is a contradiction iff (Theorem 1.1.2) ϕ is a tautology iff (Theorem 1.4.1) ϕ Theorem 1.4.4: ϕ is a contradiction iff ϕ ϕ is a contradiction iff (1.1.2) ϕ is a tautology iff (1.4.2) ϕ iff (1.2.6, 1.2.1, and 1.2.4) ϕ iff (1.2.5) ϕ Theorem 1.4.5: ϕ ψ is a tautology iff ϕ ψ Left to Reader

Some Important Equivalences Boolean Logic Equivalences: Double Negation: 1) ϕ ϕ Association: 1) ϕ (ψ λ) (ϕ ψ) λ 2) ϕ (ψ λ) (ϕ ψ) λ Commutation: 1) ϕ ψ ψ ϕ 2) ϕ ψ ψ ϕ Idempotence: 1) ϕ ϕ ϕ 2) ϕ ϕ ϕ DeMorgan: 1) (ϕ ψ) ϕ ψ 2) (ϕ ψ) ϕ ψ Distribution: 1) ϕ (ψ λ) (ϕ ψ) (ϕ λ) 2) ϕ (ψ λ) (ϕ ψ) (ϕ λ) Absorption: 1) ϕ (ϕ ψ) ϕ 2) ϕ (ϕ ψ) ϕ The Absorption principle is sometimes referred to as the Subsumption principle (at least the first half is often called Subsumption). Indeed, the Absorption principle can be seen as a specific case of what happens when we conjunct or disjunct two statements, where one subsumes the other: the conjunction is equivalent to the subsuming statement, while the disjunction is equivalent to the subsumed statement. Reduction: 1) ϕ ( ϕ ψ) ϕ ψ 2) ϕ ( ϕ ψ) ϕ ψ The first half of the Reduction principle is most easily grasped: Given that ϕ definitely has to be true, we can reduce the second term, ϕ ψ, to just ψ. The Subsumption and Reduction principles are very useful for simplifying statements that are in CNF or DNF (see later).

Some important laws involving the conditional and biconditional: Contraposition: 1) ϕ ψ ψ ϕ Exportation: 1) ϕ (ψ λ) (ϕ ψ) λ Commutation of : 1) ϕ ψ ψ ϕ Association of : 1) ϕ (ψ λ) (ϕ ψ) λ Some Laws to rewrite Non-Boolean Connectives in terms of Boolean Connectives: Implication: 1) ϕ ψ ϕ ψ 2) ϕ ψ (ϕ ψ) Equivalence: 1) ϕ ψ (ϕ ψ) (ψ ϕ) (and thus ( ϕ ψ) ( ψ ϕ)) 2) ϕ ψ (ϕ ψ) ( ϕ ψ) Some Laws regarding and : 1) P P 2) P P 3) 4) 5) P 6) P 7) P P 8) P P 9) P 10) P P 11) P P 12) P 13) P P 14) P P

Generalized Conjunctions and Disjunctions Because of the Association equivalences for conjunctions and disjunctions, we can write an expression like ϕ (ψ λ) simply as ϕ ψ λ, and treat the latter as a conjunction with 3 conjuncts. Of course, the same can be done for more than 3 conjuncts as well, and the same goes for disjunctions. Thus, we reach the notion of a generalized conjunction (a conjunction of 0 or more conjuncts) and of a generalized disjunction (a disjunction of 0 or more disjuncts). The semantics for generalized conjunctions and disjunctions is as follows: h(ϕ 1 ϕ n ) = True iff h(ϕ i ) = True for all ϕ i. h(ϕ 1 ϕ n ) = True iff h(ϕ i ) = True for some ϕ i. Thus we see that where ϕ is a generalized conjunction with 0 conjuncts, h(ϕ) = True for any h, and hence we will simply treat this as. Indeed, this is consistent with the earlier finding that a tautology says nothing at all. Similarly, where ϕ is a generalized disjunction with 0 disjuncts, h(ϕ) = False for any h, and hence we will simply treat this as. Many of the equivalence principles can be generalized to account for generalized conjunctions and disjunctions. For example: Generalized Commutation: 1) ϕ 1 ϕ n (all the ϕ i s conjuncted in any order) 2) ϕ 1 ϕ n (all the ϕ i s disjuncted in any order) Generalized Idempotence: 1) ϕ ϕ ϕ 2) ϕ ϕ ϕ Generalized DeMorgan: 1) (ϕ 1 ϕ n ) ϕ 1 ϕ n 2) (ϕ 1 ϕ n ) ϕ 1 ϕ n Generalized Distribution: 1) ϕ (ϕ 1 ϕ n ) (ϕ ϕ 1 ) (ϕ ϕ n ) 2) ϕ (ϕ 1 ϕ n ) (ϕ ϕ 1 ) (ϕ ϕ n )

Principle of Substitution of Logical Equivalents Let us write S(ϕ) for a sentence that has ϕ as one of its component parts and S(ψ) for the sentence that results when substituting ψ for ϕ. Theorem: If ϕ ψ, then S(ϕ) S(ψ) (Principle of Substitution of Equivalents) (by induction on the formation of S) First, five Lemma s: Lemma Subst. 1: If ϕ ψ, then ϕ ψ Follows from 1.2.1 and 1.2.5. Lemma Subst. 2: If ϕ ψ, then for any λ: ϕ λ ψ λ and λ ϕ λ ψ If ϕ ψ, then for any h: h(ϕ) = True iff h(ψ) = True. So, if ϕ ψ, then for any λ: h(ϕ λ) = True iff h(ϕ) = True and h(λ) = True iff h(ψ) = True and h(λ) = True iff h(ψ λ) = True. Hence, if ϕ ψ, then ϕ λ ψ λ. The other half is completely analogous. Similarly, the following Lemma s can be proven: Lemma Subst. 3: If ϕ ψ, then for any λ: ϕ λ ψ λ and λ ϕ λ ψ Lemma Subst. 4: If ϕ ψ, then for any λ: ϕ λ ψ λ and λ ϕ λ ψ Lemma Subst. 5: If ϕ ψ, then for any λ: ϕ λ ψ λ and λ ϕ λ ψ Now, assume ϕ ψ. We will then prove by induction that for any sentence S that is the result of recursively applying any of the formation rules starting with ϕ: S(ϕ) S(ψ). Induction Basis: If S = ϕ, then S(ϕ) S(ψ). Induction Step: Suppose S is the result of recursively applying any of the formation rules starting with ϕ, and suppose that S(ϕ) S(ψ). We now have to prove that if S is the application of one of the formation rules on S, then S (ϕ) S (ψ). But this follows immediately from the five Lemma s above. Hence, by mathematical induction, the principle follows.

Normal Forms A sentence ϕ is in Negation Normal Form (NNF) iff all negations that occur in ϕ are negations of atomic sentences. Any statement composed of conjunctions, disjunctions, and negations only can be put into NNF through the repeated application of the Principle of Substitution of Logical Equivalents based on the DeMorgan and Double Negation equivalences. ((A B) C) (DeMorgan and Substitution Principle) (A B) C (Double Negation and Substitution Principle) (A B) C (DeMorgan and Substitution Principle) ( A B) C (This is in NNF) A sentence ϕ is in Conjunctive Normal Form (CNF) iff ϕ is a generalized conjunction of generalized disjunctions of literals. Any statement in NNF can be put into CNF through the repeated application of the Principle of Substitution of Logical Equivalents based on the distribution of over. ( A B) C ( A C) ( B C) (This is in CNF) A sentence ϕ is in Disjunctive Normal Form (DNF) iff ϕ is a generalized disjunction of generalized conjunctions of literals. Any statement in NNF can be put into DNF through the repeated application of the Principle of Substitution of Logical Equivalents based on the distribution of over. (A B) (C D) [(A B) C] [(A B) D] (A C ) (B C) (A D) (B D) (This is in DNF)

Truth-Functions A truth-function is a function t:{t,f} n {T,F} that takes in n truth-values and maps this into a new truth-value. We have seen 4 binary truth-functions (truth-functions with 2 arguments): conjunction, disjunction, conditional, and biconditional. We have also encountered a unary connective: negation. And, we have encountered the only two truth-functions with 0 arguments: and. All truth-functions can be depicted in a truth-table. In general, with n arguments, there are 2 n possible truth-value combinations to consider, so there will be k = 2 n rows in the truth-table. For every row, the function can map into true or false, and hence there are 2 k possible truth-function as defined over n arguments. For example, with 4 argument, there are 2 4 =16 rows in the truth-table, giving us 2 16 =65536 possible truth-functions for 4 arguments. Below are all 4 unary truth-functions: Id T T T F F F T F T F Here are all 16 binary ones: id 1 id 2 nand xor nid 2 nif nid 1 nonly nor T T T T T T T T T T F F F F F F F F T F T T T T F F F F T T T T F F F F F T T T F F T T F F T T F F T T F F F F T F T F T F T F T F T F T F T F There are 256 ternary truth-functions. Below is just one of those. It can be used to capture if then else sentences: P Q R If P, then Q, else R T T T T T T F T T F T F T F F F F T T T F T F F F F T T F F F F

Expressive Completeness While there are many truth-functions, we only use a few of them (namely, those that correspond to connectives in the English language). Fortunately, we can express many truth-functions by combining truth-functions that we already have. For example, P nand Q is short for not P and Q, i.e. P nand Q (P Q). We can also easily verify that the ternary if then else truth-function is captured by (P Q) ( P R). However, can we do this for all possible truth-functions, or are there some truth-functions whose truth-conditions cannot be expressed by the connectives that we have? The answer is that we can express every truth-function in terms of,,,, and. In fact, we can express every truth-function in terms of,, and only, as can be easily demonstrated. Every truth-function can be depicted on a truth-table, and we can use a generalized conjunction to pick out every single row where the function evaluates to true. By making a generalized disjunction out of all these generalized conjunctions, we will have a statement that is equivalent to the original truth-function. Using the above method, the if then else truth-function can be captured by: (P Q R) (P Q R) ( P Q R) ( P Q R) Because every truth-function can be expressed in terms of,, and, we say that the set {,, } is expressively complete. Theorem: The sets {, } and {, } are expressively complete. Using DeMorgan, we can express in terms of and, and we can express in terms of and. So, since {,, } is expressively complete, {, } and {, } are expressively complete as well. Theorem: The sets {, } and {, } are expressively complete. Left to the Reader Theorem: The sets {nor} and {nand} are expressively complete. This follows from the expressive completeness of {, } and {, } and the following equivalences: ϕ nand ϕ (ϕ ϕ) ϕ (ϕ nand ϕ) nand (ψ nand ψ) ((ϕ nand ϕ) (ψ nand ψ)) ( ϕ ψ) ϕ ψ ϕ nor ϕ (ϕ ϕ) ϕ (ϕ nor ϕ) nor (ψ nor ψ) ((ϕ nor ϕ) (ψ nor ψ)) ( ϕ ψ) ϕ ψ