COMP 409: Homework 2

Size: px
Start display at page:

Download "COMP 409: Homework 2"

Transcription

1 COMP 409: Homework 2 Sample Solutions 1 Propositional semantics 1. Implement a truth evaluator eval(φ, τ), which evaluates whether a formula φ holds for a truth assignment τ. Use the evaluator to answer the question. The code is available upon request. The results are: α(i 1 ) = β(i 1 ) = γ(i 1 ) = δ(i 1 ) = 0 ψ(i 1 ) = 1 α(i 2 ) = 0; β(i 2 ) = γ(i 2 ) = δ(i 2 ) = 1 ψ(i 2 ) = 1 2 Validity 2.1 Prove Validity (((p q) p) p) - Peirce s Law Let τ 2 P rop. Case 1: τ = p and τ = q τ = (p q) τ = p and τ = (p q) τ = ((p q) p) τ = p and τ = ((p q) p) τ = (((p q) p) p) Case 2: τ = p and τ q τ (p q) τ (p q) τ = ((p q) p) τ = p and τ = ((p q) p) τ = (((p q) p) p) Case 3: τ p τ = (p q) τ p and τ = (p q) τ ((p q) p) τ ((p q) p) τ = (((p q) p) p) false p - Ex Falso Quolibet Let τ 2 P rop. τ false τ = (false p) 1

2 2.1.3 (( p) p) - Excluded Middle Let τ 2 P rop. If τ = p, then τ = (p ( p)). If τ p, then τ = ( p) = τ = (p ( p)). Therefore = (p ( p)) ((p q) p) - Weak Excluded Middle Let τ 2 P rop. We know that τ = ((p q) p) τ = (p q) or τ = p. Case 1: τ = p, then τ = ((p q) p). Case 2: τ p then τ = (p q). Therefore, τ = ((p q) p). 2.2 Disjunctional Propositional Completeness Suppose α and β were both not valid. This would mean that there exist assignments τ 1 2 AP(α) and τ 2 2 AP(β) s.t τ 1 α and τ 2 β. Note that τ 1 τ 2 =. Take the assignment τ 2 AP(α β) where τ = τ 1 τ 2. Since, because AP(alpha) AP(beta) =, τ AP(α) = τ 1 and τ AP(β) = τ 2. Since = (α β), τ = (α β) = either τ = α or τ = β since it is sufficient to look at the relevant propositions only, = either τ AP(α) = α or τ AP(β) = β = either τ 1 = α or τ 2 = β. We know that this is not possible. Therefore our assumption must be faulty. Hence either = α or = β. 3 Logical implication 1. Analyze the binary connectives,,, to see whether they are commutative or associative. Prove your claims. We will show that,, and are commutative and associative. The basic strategy in all cases is to use the commutativity and the associativity of the set-theoretic operations,, and set equality (=). An alternative approach is to use truth tables. is commutative. Proof: models(θ ψ) = models(θ) models(ψ) = models(ψ) models(θ) = models(ψ θ) (since set intersection is commutative). By definition of == it follows that (θ ψ) == (ψ θ). is associative. Proof: models((φ θ) ψ) = models(φ θ) models(ψ) = models(φ) models(θ) models(ψ) = models(φ) models(θ ψ) = models(φ (θ ψ)). By definition of == it follows that ((φ θ) ψ) == (φ (θ ψ)). 2

3 is commutative. Proof: models(θ ψ) = models(θ) models(ψ) = models(ψ) models(θ) = models(ψ θ) (since set union is commutative). By definition it follows that (θ ψ) == (ψ θ). is associative. Proof: models((φ θ) ψ) = models(φ θ) models(ψ) = models(φ) models(θ) models(ψ) = models(φ) models(θ ψ) = models(φ (θ ψ)) (since set union is associative). By definition it follows that ((φ θ) ψ) == (φ (θ ψ)). is NOT commutative. Proof by counterexample. Take P rop = {p, q, r}. Notice that models(q p) = (2 AP models(q)) models(p) = {, {p}} {{p}, {p, q}} = {, {p}, {p, q}}. Similarly, models(p q) = {, {q}, {p, q}}. Since models(p q) models(q p) then (p q) is NOT logically equivalent to (q p). is NOT associative. Proof by counterexample (derent approach than above). Take P rop = {p, q, r} and a world τ = (i.e. all propositions are false). From the EE view, we have ((p q) r)(τ) = 0 and (p (q r))(τ) = 1. Then, ((p q) r) (p (q r)) is not valid, so by definition of valid ((p q) r) is NOT logically equivalent to (p (q r)). is commutative. Proof: models(θ ψ) = ((2 P rop models(θ)) (2 P rop models(ψ))) (models(θ) models(ψ)) = ((2 P rop models(ψ)) (2 P rop models(θ))) (models(ψ) models(θ)) = models(ψ θ) by set intersection and union commutativity. By definition of == it follows that (θ ψ) == (ψ θ). is associative. Proof: models((φ θ) ψ) = models(φ θ) models(ψ)) ((2 P rop models(φ θ)) (2 P rop models(ψ))). Expanding models(φ θ) = (models(φ) models(θ)) ((2 P rop models(φ)) (2 prop models(θ))) and regrouping using associativity from set theory, we get this is equal to (models(φ) models(θ ψ)) ((2 P rop models(φ)) (2 prop models(θ ψ))) = models(φ (θ ψ)). By definition of == it follows that 2. Prove de Morgan s Laws = (( (p q)) (( p) ( q)) = (( (p q)) (( p) ( q)) ((φ θ) ψ) == (φ (θ ψ)). 3

4 Let φ = (( (p q)) (( p) ( q) ψ = (( (p q)) (( p) ( q)) Proof: By definition, φ is valid models(φ) = 2 P rop models(φ) = 2 AP (φ) (by Relevance Lemma) φ(τ) = 1, τ 2 AP (φ) (by Lemma from class) Similarly, ψ is valid models(ψ) = 2 P rop models(ψ) = 2 AP (ψ) (by Relevance Lemma) ψ(τ) = 1, τ 2 AP (ψ) (by Lemma from class) The following table shows that models(φ) = 2 AP (φ) and models(ψ) = 2 AP (ψ). p q (( (p q)) (( p) ( q) φ (( (p q)) (( p) ( q)) ψ Show that logical and material equivalence coincide, that is, φ == ψ = (φ ψ). By definition, φ == ψ φ = ψ and ψ = φ (by definition of == ) = (φ ψ) and = (φ ψ) (by Lemma 1 in Lecture 8 ) = (φ ψ) (by definition of ) 4

5 4. Show that φ = ψ (φ ψ) is not satisfiable. Proof: By definition, (φ ψ) is not satisfiable (φ ψ) is valid = (φ ψ) = ( φ ψ) (by de Morgan s Law) = (φ ψ) (by definition of ) φ = ψ (by definition of logical implication) 5. Prove that = is reflexive, transitive, but not symmetric. Prove that == is reflexive, transitive, and symmetric. Notice that = is not a relation between 2 Prop and Form, nor between 2 Prop and 2 Form (otherwise neither of the properties would make sense). The only option that is left is = 2 Form 2 Form. Let Φ, Ψ 2 Form = is reflexive. Proof: since models(φ) models(φ) then Φ = Φ by definition. = is transitive. Proof: if Φ = Ψ and Ψ = Θ then models(φ) models(ψ) and models(ψ) models(θ). Since subset is a transitive relation, models(ψ) models(θ), so Φ = Θ. = is NOT symmetric. Proof by counterexample. Let Φ = {(p q)}, Ψ = {p}, P rop = {p, q}. Then, models(φ) = {{p, q}} and models(ψ) = {{p}, {p, q}}. Since models(φ) models(ψ) but models(ψ) models(φ), it follows from the definition of = that Φ = Ψ but Ψ = Φ. In the case of == we also have sets of formulas on both sides. == is reflexive. Proof: Since models(φ) = models(φ) then Φ == Φ by definition. == is transitive. Proof: if Φ == Ψ and Ψ == Θ then models(φ) = models(ψ) and models(ψ) = models(θ), so models(φ) = models(θ) and by definition Φ == Θ. == is symmetric. Proof: Φ == Ψ models(φ) = models(ψ) models(ψ) = models(φ) Ψ == Φ. 6. Show that if φ and ψ are logically equivalent and φ is valid, then ψ is valid. Restating the problem formally, we show that if φ == ψ and = φ, then = ψ (by definition of logical equivalence and logical validity). 5

6 Proof: By definition of ==, φ == ψ models(φ) = models(ψ). By definition of logically valid, = φ models(φ) = 2 P rop. Thus, models(ψ) = 2 P rop and hence = ψ. 7. Which of the formulas implies the other? Let φ = (p (q r)) ψ = ((p (q r)) (( p) ( q) ( r))) Then, models(φ) = {{p}, {p, q, r}, {q}, {r}} and models(ψ) = {{p, q, r}, }. Since neither models(φ) models(ψ) nor models(ψ) models(φ) then neither φ = ψ nor ψ = φ. 8. Show that Σ {α} = β Σ = (α β). First, we need some help: Lemma 1. If A and B are sets, then A (A B) B. Proof. Suppose that a A. We must show that a A (A B) B. Either a B or a B. In the first case a (A B), in the second, a B. In either case a A (A B) B, which is what we had to prove. Proof of the main problem. Σ {α} = β models(σ {α}) models(β) models(σ) models(α) models(β) (models(σ) models(α)) (2 P rop models(α)) (2 P rop models(α)) models(β) (1) (union the same set to each side) models(σ) (2 P rop models(α)) models(β) (by Lemma) (2) models(σ) models(α β) (by defn of ) Σ = (α β) (by defn of =) Note that the step from (1) to (2) is justified by Lemma 1, but this is not the case when we traverse the proof in the opposite direction. For this we need another lemma, which we state and prove below. Lemma 2. Let Σ, U, A and B be sets. If Σ (U A) B, then (Σ A) (U A) (U A) B. 6

7 Proof. Since (Σ A) Σ and Σ (U A) B, we can conclude that (Σ A) (U A) B. Clearly (U A) (U A) B, therefore the left-hand side is the union of two sets which are both contained in the right-hand side. The proof of Lemma 2 concludes the proof of the main problem. 9. Prove or refute the following statements. If either Σ = α or Σ = β then Σ = (α β). TRUE. Proof: If either models(σ) models(α) or Then Σ = (α β). models(σ) models(β) then models(σ) models(α) models(β) models(α β) by definition. If Σ = (α β), then either Σ = α or Σ = β. FALSE. Proof by counterexample: Take P rop = {p, q}, Σ = {p}, α = (p q), β = ( (p q)) Then: models(σ) = {{p}, {p, q}} models(α) = {{p, q}} models(β) = {, {p}, {q}} Here, models(σ) models(α) models(β) Σ = (α β) but models(σ) models(α) therefore Σ = α and models(σ) models(β) therefore Σ = β Which completes the proof. 10. A set Σ of formulas is independent if Σ {σ} = σ, σ Σ. Let Σ = {σ 1, σ 2,..., σ n } be a finite set of formulas, if Σ is independent already then we have the final result we wanted. If Σ is not independent, then it means that there is at least one σ i, such that σ 1 σ 2... σ i 1 σ i+1... σ n = σ i. That is σ i is implied by the conjunction all of the formulas from Σ except σ i itself. In order to make Σ an independent set of formulas, we can eliminate σ i from the set. The set Σ {σ i } will still be equivalent to the original set. We can continue to do this until there are no more dependent formulas in 7

8 the resulting set. On the other hand, if Σ is an infinite set of formulas (Σ = {σ 1, σ 2,...}), such as: σ 1 = p 1 σ 2 = p 1 p 2.. σ n = p 1 p 2... p n.. In this case, the set itself is not independent. If we take a finite subset of the formulas, it s not going to be equivalent, since an infinite number of formulas can not be generated from the finite subset (any formula with atomic propositions with subscripts greater than the greatest subscript present in the subset). If we take an infinite subset, say by eliminating σ i from the set, we are still able to generate the missing formula from any σ j, j > i. Take σ i+1, for example, if p 1 p 2... p i p i+1 holds then p 1 p 2... p i holds also. This infinite subset is equivalent, but it is not independent since it possesses the same properties as the original set. Any other infinite subset is also equivalent to the original set, due to the same reasoning. 4 Substitutions If φ is valid, then φ[p θ] is valid. 1. If = ϕ, then = ϕ[p θ]. Proof: Suppose that = ϕ. Let τ 2 Prop. We wish to show that τ(ϕ[p θ]) = 1. Let σ 2 Prop be identical to τ except that σ(p) = τ(θ). First we show that τ(ϕ[p θ]) = σ(ϕ). Case: ϕ = p. Then τ(p[p θ]) = τ(θ) = σ(p). Case ϕ = q p. Then τ(q[p θ]) = τ(q) = σ(q). Case ϕ = ( ψ). Then τ(( ψ)[p θ]) = τ( (ψ[p θ])) = (τ(ψ[p θ])) = (σ(ψ)) = σ( (ψ)) = σ( ψ). Case ϕ = (θ ψ). Then τ((θ ψ)[p θ]) = τ(θ[p θ] ψ[p θ]) = (τ(θ[p θ]), τ(ψ[p θ])) = (σ(θ), σ(ψ)) = σ(θ ψ). Now, since every truth assignment makes ϕ true (because it is valid), σ in particular makes it true, and so τ makes ϕ[p θ] true. 8

9 2. If α is equivalent to β, then ϕ[p α] is equivalent to ϕ[p β]. Proof: Let τ be an arbitrary truth assignment. We wish to show ϕ[p α] is equivalent to ϕ[p β]. We proceed by structural induction. Case ϕ = p. Then τ(p[p α]) = τ(α) = τ(β) (because α, β equivalent) = τ(p[p β]). Case ϕ = q p. Then τ(q[p α]) = τ(q) = τ(q[p β]). Case ϕ = ( θ). Then τ(( θ)[p α]) = τ( θ[p α]) = (τ(θ[p α])) = (τ(θ[p β])) (by the inductive hypothesis) = τ( θ[p β]) = τ(( θ)[p β]). Case ϕ = (θ ψ). Then τ((θ ψ)[p α]) = τ(θ[p α] ψ[p α]) = (τ(θ[p α]), τ(ψ[p α])) = (τ(θ[p β]), τ(ψ[p β])) (I.H.) = τ(θ[p β] ψ[p β]) = τ((θ ψ)[p β]). 5 Puzzle Let the assertion Box i has the gold be represented by p i and the assertion The clue on Box i says the truth be represented by q i.. The following facts are given: Only one box have the gold: og = ((p 1 p 2 p 3 ) ( (p 1 p 2 ) (p 1 p 3 ) (p 2 p 3 ))). Box1: b1 = (q 1 p 1 ). Box2: b2 = (q 2 p 2 ). Box3: b3 = (q 3 p 2 ). Only one clue is true: ot = (q 1 q 2 q 3 ) ( (q 1 q 2 ) (q 1 q 3 ) (q 2 q 3 )). We need a satisfying assignment to og b1 b2 b3 ot to solve the puzzle. The only satisfying assignment would be p 1 = 1, p 2 = 0, p 3 = 0, q 1 = 0, q 2 = 1, q 3 = 0, which means box 1 contains the gold. 9

Lecture 3: Semantics of Propositional Logic

Lecture 3: Semantics of Propositional Logic Lecture 3: Semantics of Propositional Logic 1 Semantics of Propositional Logic Every language has two aspects: syntax and semantics. While syntax deals with the form or structure of the language, it is

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Exercises 1 - Solutions

Exercises 1 - Solutions Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note

More information

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

CS 486: Lecture 2, Thursday, Jan 22, 2009 CS 486: Lecture 2, Thursday, Jan 22, 2009 Mark Bickford January 22, 2009 1 Outline Propositional formulas Interpretations and Valuations Validity and Satisfiability Truth tables and Disjunctive Normal

More information

Review 1. Andreas Klappenecker

Review 1. Andreas Klappenecker Review 1 Andreas Klappenecker Summary Propositional Logic, Chapter 1 Predicate Logic, Chapter 1 Proofs, Chapter 1 Sets, Chapter 2 Functions, Chapter 2 Sequences and Sums, Chapter 2 Asymptotic Notations,

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

CSC Discrete Math I, Spring Propositional Logic

CSC Discrete Math I, Spring Propositional Logic CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)

More information

Tautologies, Contradictions, and Contingencies

Tautologies, Contradictions, and Contingencies Section 1.3 Tautologies, Contradictions, and Contingencies A tautology is a proposition which is always true. Example: p p A contradiction is a proposition which is always false. Example: p p A contingency

More information

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B. Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination III (Spring 2007) Problem 1: Suppose A, B, C and D are finite sets

More information

Proving simple set properties...

Proving simple set properties... Proving simple set properties... Part 1: Some examples of proofs over sets Fall 2013 Proving simple set properties... Fall 2013 1 / 17 Introduction Overview: Learning outcomes In this session we will...

More information

Lecture 9: The Splitting Method for SAT

Lecture 9: The Splitting Method for SAT Lecture 9: The Splitting Method for SAT 1 Importance of SAT Cook-Levin Theorem: SAT is NP-complete. The reason why SAT is an important problem can be summarized as below: 1. A natural NP-Complete problem.

More information

Proof Theoretical Studies on Semilattice Relevant Logics

Proof Theoretical Studies on Semilattice Relevant Logics Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

Introduction to Intuitionistic Logic

Introduction to Intuitionistic Logic Introduction to Intuitionistic Logic August 31, 2016 We deal exclusively with propositional intuitionistic logic. The language is defined as follows. φ := p φ ψ φ ψ φ ψ φ := φ and φ ψ := (φ ψ) (ψ φ). A

More information

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof. Overview I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof. Propositional formulas Grammar: ::= p j (:) j ( ^ )

More information

COMP 409: Logic Homework 5

COMP 409: Logic Homework 5 COMP 409: Logic Homework 5 Note: The pages below refer to the text from the book by Enderton. 1. Exercises 1-6 on p. 78. 1. Translate into this language the English sentences listed below. If the English

More information

Natural Deduction for Propositional Logic

Natural Deduction for Propositional Logic Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic

More information

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Packet #1: Logic & Proofs. Applied Discrete Mathematics Packet #1: Logic & Proofs Applied Discrete Mathematics Table of Contents Course Objectives Page 2 Propositional Calculus Information Pages 3-13 Course Objectives At the conclusion of this course, you should

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

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

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Propositional natural deduction

Propositional natural deduction Propositional natural deduction COMP2600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2016 Major proof techniques 1 / 25 Three major styles of proof in logic and mathematics Model

More information

Propositional and Predicate Logic - IV

Propositional and Predicate Logic - IV Propositional and Predicate Logic - IV Petr Gregor KTIML MFF UK ZS 2015/2016 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - IV ZS 2015/2016 1 / 19 Tableau method (from the previous lecture)

More information

INF3170 Logikk Spring Homework #8 For Friday, March 18

INF3170 Logikk Spring Homework #8 For Friday, March 18 INF3170 Logikk Spring 2011 Homework #8 For Friday, March 18 Problems 2 6 have to do with a more explicit proof of the restricted version of the completeness theorem: if = ϕ, then ϕ. Note that, other than

More information

The Modal Logic of Pure Provability

The Modal Logic of Pure Provability The Modal Logic of Pure Provability Samuel R. Buss Department of Mathematics University of California, San Diego July 11, 2002 Abstract We introduce a propositional modal logic PP of pure provability in

More information

Normal Forms of Propositional Logic

Normal Forms of Propositional Logic Normal Forms of Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 Bow-Yaw Wang (Academia Sinica) Normal Forms of Propositional Logic September

More information

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008) Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008) Problem 1: Suppose A, B, C and D are arbitrary sets.

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

Semantic Metatheory of SL: Mathematical Induction

Semantic Metatheory of SL: Mathematical Induction Semantic Metatheory of SL: Mathematical Induction Preliminary matters: why and when do we need Mathematical Induction? We need it when we want prove that a certain claim (n) holds for all n N (0, 1, 2,

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

Propositional Logics and their Algebraic Equivalents

Propositional Logics and their Algebraic Equivalents Propositional Logics and their Algebraic Equivalents Kyle Brooks April 18, 2012 Contents 1 Introduction 1 2 Formal Logic Systems 1 2.1 Consequence Relations......................... 2 3 Propositional Logic

More information

AMTH140 Lecture 8. Symbolic Logic

AMTH140 Lecture 8. Symbolic Logic AMTH140 Lecture 8 Slide 1 Symbolic Logic March 10, 2006 Reading: Lecture Notes 6.2, 6.3; Epp 1.1, 1.2 Logical Connectives Let p and q denote propositions, then: 1. p q is conjunction of p and q, meaning

More information

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

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text) Section 1.3 1 Sec$on Summary Tautologies, Contradictions, and Contingencies. Logical Equivalence Important Logical Equivalences Showing Logical Equivalence Normal Forms (optional, covered in exercises

More information

Logic Overview, I. and T T T T F F F T F F F F

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

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

Warm-Up Problem. Is the following true or false? 1/35 Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,

More information

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

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false. Section 1.2 Propositional Equivalences A tautology is a proposition which is always true. Classic Example: P P A contradiction is a proposition which is always false. Classic Example: P P A contingency

More information

Mathematical Reasoning & Proofs

Mathematical Reasoning & Proofs Mathematical Reasoning & Proofs MAT 1362 Fall 2018 Alistair Savage Department of Mathematics and Statistics University of Ottawa This work is licensed under a Creative Commons Attribution-ShareAlike 4.0

More information

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

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook) Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or

More information

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday. Friday, February 15 Today we will begin Course Notes 3.2: Methods of Proof. Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due

More information

Filtrations and Basic Proof Theory Notes for Lecture 5

Filtrations and Basic Proof Theory Notes for Lecture 5 Filtrations and Basic Proof Theory Notes for Lecture 5 Eric Pacuit March 13, 2012 1 Filtration Let M = W, R, V be a Kripke model. Suppose that Σ is a set of formulas closed under subformulas. We write

More information

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

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called

More information

We last time we began introducing equivalency laws.

We last time we began introducing equivalency laws. Monday, January 14 MAD2104 Discrete Math 1 Course website: www/mathfsuedu/~wooland/mad2104 Today we will continue in Course Notes Chapter 22 We last time we began introducing equivalency laws Today we

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

1. Propositional Calculus

1. Propositional Calculus 1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:

More information

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

2. The Logic of Compound Statements Summary. Aaron Tan August 2017 2. The Logic of Compound Statements Summary Aaron Tan 21 25 August 2017 1 2. The Logic of Compound Statements 2.1 Logical Form and Logical Equivalence Statements; Compound Statements; Statement Form (Propositional

More information

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

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson Natural Deduction Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. An example 1. Validity by truth table 2. Validity by proof 2. What s a proof 1. Proof checker 3. Rules of

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B.

Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B. Section 7.1 Relations and Their Properties Definition: A binary relation R from a set A to a set B is a subset R A B. Note: there are no constraints on relations as there are on functions. We have a common

More information

Mid-Semester Quiz Second Semester, 2012

Mid-Semester Quiz Second Semester, 2012 THE AUSTRALIAN NATIONAL UNIVERSITY Mid-Semester Quiz Second Semester, 2012 COMP2600 (Formal Methods for Software Engineering) Writing Period: 1 hour duration Study Period: 10 minutes duration Permitted

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

More information

Proofs. Joe Patten August 10, 2018

Proofs. Joe Patten August 10, 2018 Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital

More information

Two sources of explosion

Two sources of explosion Two sources of explosion Eric Kao Computer Science Department Stanford University Stanford, CA 94305 United States of America Abstract. In pursuit of enhancing the deductive power of Direct Logic while

More information

Logic Synthesis and Verification

Logic Synthesis and Verification Logic Synthesis and Verification Boolean Algebra Jie-Hong Roland Jiang 江介宏 Department of Electrical Engineering National Taiwan University Fall 2014 1 2 Boolean Algebra Reading F. M. Brown. Boolean Reasoning:

More information

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13 CSC242: Intro to AI Lecture 11 Propositional Inference Propositional Inference Factored Representation Splits a state into variables (factors, attributes, features, things you know ) that can have values

More information

Review 3. Andreas Klappenecker

Review 3. Andreas Klappenecker Review 3 Andreas Klappenecker Final Exam Friday, May 4, 2012, starting at 12:30pm, usual classroom Topics Topic Reading Algorithms and their Complexity Chapter 3 Logic and Proofs Chapter 1 Logic and Proofs

More information

Syntax of propositional logic. Syntax tree of a formula. Semantics of propositional logic (I) Subformulas

Syntax of propositional logic. Syntax tree of a formula. Semantics of propositional logic (I) Subformulas Syntax of propositional logic Syntax tree of a formula An atomic formula has the form A i where i =, 2, 3,.... Formulas are defined by the following inductive process: Every formula can be represented

More information

1. Propositional Calculus

1. Propositional Calculus 1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:

More information

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!! CSCE 222 Discrete Structures for Computing Review for Exam 1 Dr. Hyunyoung Lee 1 Topics Propositional Logic (Sections 1.1, 1.2 and 1.3) Predicate Logic (Sections 1.4 and 1.5) Rules of Inferences and Proofs

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers Chapter 1 The Real Numbers 1.1. Some Preliminaries Discussion: The Irrationality of 2. We begin with the natural numbers N = {1, 2, 3, }. In N we can do addition, but in order to do subtraction we need

More information

Truth-Functional Logic

Truth-Functional Logic 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

More information

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee CSCE 222 Discrete Structures for Computing Review for the Final! Hyunyoung Lee! 1 Final Exam Section 501 (regular class time 8:00am) Friday, May 8, starting at 1:00pm in our classroom!! Section 502 (regular

More information

arxiv:math/ v1 [math.lo] 5 Mar 2007

arxiv:math/ v1 [math.lo] 5 Mar 2007 Topological Semantics and Decidability Dmitry Sustretov arxiv:math/0703106v1 [math.lo] 5 Mar 2007 March 6, 2008 Abstract It is well-known that the basic modal logic of all topological spaces is S4. However,

More information

Review for Midterm 1. Andreas Klappenecker

Review for Midterm 1. Andreas Klappenecker Review for Midterm 1 Andreas Klappenecker Topics Chapter 1: Propositional Logic, Predicate Logic, and Inferences Rules Chapter 2: Sets, Functions (Sequences), Sums Chapter 3: Asymptotic Notations and Complexity

More information

C241 Homework Assignment 7

C241 Homework Assignment 7 C24 Homework Assignment 7. Prove that for all whole numbers n, n i 2 = n(n + (2n + The proof is by induction on k with hypothesis H(k i 2 = k(k + (2k + base case: To prove H(, i 2 = = = 2 3 = ( + (2 +

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

Handout: Proof of the completeness theorem

Handout: Proof of the completeness theorem MATH 457 Introduction to Mathematical Logic Spring 2016 Dr. Jason Rute Handout: Proof of the completeness theorem Gödel s Compactness Theorem 1930. For a set Γ of wffs and a wff ϕ, we have the following.

More information

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel Lecture Notes on DISCRETE MATHEMATICS Eusebius Doedel c Eusebius J. Doedel, 009 Contents Logic. Introduction............................................................................... Basic logical

More information

COMP2411 Lecture 6: Soundness and Completeness. Reading: Huth and Ryan, Sections 1.4

COMP2411 Lecture 6: Soundness and Completeness. Reading: Huth and Ryan, Sections 1.4 COMP2411 Lecture 6: Soundness and Completeness Reading: Huth and Ryan, Sections 14 Arithmetic is useful in the world because it is an example of the diagram: symbols - symbolic manipulation -> symbols

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

Partial model checking via abstract interpretation

Partial model checking via abstract interpretation Partial model checking via abstract interpretation N. De Francesco, G. Lettieri, L. Martini, G. Vaglini Università di Pisa, Dipartimento di Ingegneria dell Informazione, sez. Informatica, Via Diotisalvi

More information

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

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science Fall 2018 Assignment 1. Solutions 1. For each of the following statements use a truth table to determine whether

More information

1 Completeness Theorem for Classical Predicate

1 Completeness Theorem for Classical Predicate 1 Completeness Theorem for Classical Predicate Logic The relationship between the first order models defined in terms of structures M = [M, I] and valuations s : V AR M and propositional models defined

More information

Propositions and Proofs

Propositions and Proofs Chapter 2 Propositions and Proofs The goal of this chapter is to develop the two principal notions of logic, namely propositions and proofs There is no universal agreement about the proper foundations

More information

Math 1312 Lesson 1: Sets, Statements, and Reasoning. A set is any collection of objects. These objects are called the elements of the set.

Math 1312 Lesson 1: Sets, Statements, and Reasoning. A set is any collection of objects. These objects are called the elements of the set. Math 1312 Lesson 1: Sets, Statements, and Reasoning A set is any collection of objects. hese objects are called the elements of the set. A is a subset of B, if A is "contained" inside B, that is, all elements

More information

Lecture 4. Algebra, continued Section 2: Lattices and Boolean algebras

Lecture 4. Algebra, continued Section 2: Lattices and Boolean algebras V. Borschev and B. Partee, September 21-26, 2006 p. 1 Lecture 4. Algebra, continued Section 2: Lattices and Boolean algebras CONTENTS 1. Lattices.... 1 1.0. Why lattices?... 1 1.1. Posets... 1 1.1.1. Upper

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2. CHAPTER 2 Review 2.1 Definitions in Chapter 2 2.1 Set; Element; Member; Universal Set 2.2 Subset 2.3 Proper Subset 2.4 The Empty Set, 2.5 Set Equality 2.6 Cardinality; Infinite Set 2.7 Complement 2.8 Intersection

More information

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS 1 Language There are several propositional languages that are routinely called classical propositional logic languages. It is due to the functional dependency

More information

Digital Logic Design: a rigorous approach c

Digital Logic Design: a rigorous approach c Digital Logic Design: a rigorous approach c Chapter 6: Propositional Logic Guy Even Moti Medina School of Electrical Engineering Tel-Aviv Univ. November 4, 2015 Book Homepage: http://www.eng.tau.ac.il/~guy/even-medina

More information

SEMANTICS OF INTUITIONISTIC PROPOSITIONAL LOGIC: HEYTING ALGEBRAS AND KRIPKE MODELS

SEMANTICS OF INTUITIONISTIC PROPOSITIONAL LOGIC: HEYTING ALGEBRAS AND KRIPKE MODELS SEMNTICS OF INTUITIONISTIC PROPOSITIONL LOGIC: HEYTING LGEBRS ND KRIPKE MODELS CHD E. BROWN bstract. We describe two well-known semantics for intuitionistic propositional logic: Heyting algebras and Kripke

More information

Section 1.1: Logical Form and Logical Equivalence

Section 1.1: Logical Form and Logical Equivalence Section 1.1: Logical Form and Logical Equivalence An argument is a sequence of statements aimed at demonstrating the truth of an assertion. The assertion at the end of an argument is called the conclusion,

More information

Propositional Logic: Equivalence

Propositional Logic: Equivalence Propositional Logic: Equivalence Alice Gao Lecture 5 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefler, and P. Van Beek 1/42 Outline Propositional Logic:

More information

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion CHAPTER 1 Relations 1. Relations and Their Properties 1.1. Definition of a Relation. Definition 1.1.1. A binary relation from a set A to a set B is a subset R A B. If (a, b) R we say a is Related to b

More information

1.3 Propositional Equivalences

1.3 Propositional Equivalences 1 1.3 Propositional Equivalences The replacement of a statement with another statement with the same truth is an important step often used in Mathematical arguments. Due to this methods that produce propositions

More information

Principles of AI Planning

Principles of AI Planning Principles of 5. Planning as search: progression and regression Malte Helmert and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 4th, 2010 Planning as (classical) search Introduction Classification

More information

2.2: Logical Equivalence: The Laws of Logic

2.2: Logical Equivalence: The Laws of Logic Example (2.7) For primitive statement p and q, construct a truth table for each of the following compound statements. a) p q b) p q Here we see that the corresponding truth tables for two statement p q

More information

UNIT-I: Propositional Logic

UNIT-I: Propositional Logic 1. Introduction to Logic: UNIT-I: Propositional Logic Logic: logic comprises a (formal) language for making statements about objects and reasoning about properties of these objects. Statements in a logical

More information

2.5.2 Basic CNF/DNF Transformation

2.5.2 Basic CNF/DNF Transformation 2.5. NORMAL FORMS 39 On the other hand, checking the unsatisfiability of CNF formulas or the validity of DNF formulas is conp-complete. For any propositional formula φ there is an equivalent formula in

More information

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra.

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra. Section 2.2 Set Operations Propositional calculus and set theory are both instances of an algebraic system called a Boolean Algebra. The operators in set theory are defined in terms of the corresponding

More information

Math 535: Topology Homework 1. Mueen Nawaz

Math 535: Topology Homework 1. Mueen Nawaz Math 535: Topology Homework 1 Mueen Nawaz Mueen Nawaz Math 535 Topology Homework 1 Problem 1 Problem 1 Find all topologies on the set X = {0, 1, 2}. In the list below, a, b, c X and it is assumed that

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Propositional Logic [1] Boolean algebras by examples U X U U = {a} U = {a, b} U = {a, b, c} {a} {b} {a, b} {a, c} {b, c}... {a} {b} {c} {a, b} {a} The arrows represents proper inclusion

More information

Properties of the Integers

Properties of the Integers Properties of the Integers The set of all integers is the set and the subset of Z given by Z = {, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, }, N = {0, 1, 2, 3, 4, }, is the set of nonnegative integers (also called

More information

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c. Properties of the Integers The set of all integers is the set and the subset of Z given by Z = {, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, }, N = {0, 1, 2, 3, 4, }, is the set of nonnegative integers (also called

More information

Equivalents of Mingle and Positive Paradox

Equivalents of Mingle and Positive Paradox Eric Schechter Equivalents of Mingle and Positive Paradox Abstract. Relevant logic is a proper subset of classical logic. It does not include among itstheoremsanyof positive paradox A (B A) mingle A (A

More information

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument. Mathematical Reasoning Rules of Inference & Mathematical Induction Example. If I take the day off it either rains or snows 2. When It rains, my basement floods 3. When the basement floods or it snows,

More information

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

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

Math 109 September 1, 2016

Math 109 September 1, 2016 Math 109 September 1, 2016 Question 1 Given that the proposition P Q is true. Which of the following must also be true? A. (not P ) or Q. B. (not Q) implies (not P ). C. Q implies P. D. A and B E. A, B,

More information

LOGIC OF CLASSICAL REFUTABILITY AND CLASS OF EXTENSIONS OF MINIMAL LOGIC

LOGIC OF CLASSICAL REFUTABILITY AND CLASS OF EXTENSIONS OF MINIMAL LOGIC Logic and Logical Philosophy Volume 9 (2001), 91 107 S. P. Odintsov LOGIC OF CLASSICAL REFUTABILITY AND CLASS OF EXTENSIONS OF MINIMAL LOGIC Introduction This article continues the investigation of paraconsistent

More information

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic CHAPTER 10 Gentzen Style Proof Systems for Classical Logic Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. By humans, not mentioning

More information