MATH 1090 Problem Set #3 Solutions March York University

Similar documents
York University. Faculty of Science and Engineering MATH 1090, Section M Final Examination, April NAME (print, in ink): Instructions, remarks:

Predicate Logic: Syntax

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

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

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

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

Supplementary Logic Notes CSE 321 Winter 2009

Section 1.1 Propositions

Chapter 1. Logic and Proof

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Lecture 11: Measuring the Complexity of Proofs

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

03 Review of First-Order Logic

Propositional Logic Language

Math 10850, fall 2017, University of Notre Dame

Marie Duží

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

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

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11)

Informal Statement Calculus

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.

Some Applications of MATH 1090 Techniques

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.

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

02 Propositional Logic

Introduction to Metalogic

Practice Test III, Math 314, Spring 2016

The predicate calculus is complete

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

Propositional Logic: Models and Proofs

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

Manual of Logical Style

Predicate Calculus - Syntax

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.

2. Use quantifiers to express the associative law for multiplication of real numbers.

A Little Deductive Logic

Rules Build Arguments Rules Building Arguments

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK

CSC Discrete Math I, Spring Propositional Logic

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

Part I: Propositional Calculus

A Little Deductive Logic

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

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

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

First order Logic ( Predicate Logic) and Methods of Proof

Discrete Mathematics and Its Applications

Logic, Sets, and Proofs

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

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

First Order Logic: Syntax and Semantics

Logic Part I: Classical Logic and Its Semantics

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Proof Worksheet 2, Math 187 Fall 2017 (with solutions)

Sets, Logic, Relations, and Functions

MATH 318/Fall, 2007 Notes on reading formulas and Skolem functions

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

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Predicate Logic & Quantification

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

An Introduction to Modal Logic III

Formal (Natural) Deduction for Predicate Calculus

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

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

MAI0203 Lecture 7: Inference and Predicate Calculus

1 Completeness Theorem for Classical Predicate

Logic and Proofs. (A brief summary)

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

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

Technische Universität München Summer term 2011 Theoretische Informatik Prof. Dr. Dr. h.c J. Esparza / M. Luttenberger / R.

MATHS 315 Mathematical Logic

Notes on induction proofs and recursive definitions

1.1 Language and Logic


Maximal Introspection of Agents

Chapter 1 Elementary Logic

Logic. Propositional Logic: Syntax. Wffs

Section 1.2: Propositional Logic

Predicate Logic. Andreas Klappenecker

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

1.1 Language and Logic

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

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

Language of Propositional Logic

Propositional Logics and their Algebraic Equivalents

Logic for Computer Science - Week 5 Natural Deduction

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

Announcements. Today s Menu

Math 267a - Propositional Proof Complexity. Lecture #1: 14 January 2002

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

Notation for Logical Operators:

Propositional Logic: Syntax

Transcription:

York University Faculties of Science and Engineering, Arts, Atkinson MATH 1090. Problem Set #3 Solutions Section M 1. Use Resolution (possibly in combination with the Deduction Theorem, Implication as Disjunction, and/or Double Negation, but NOT Post s Theorem) to prove (A B C) (A B) (C B) ANSWER:By the Deduction Theorem, what we want to prove is equivalent to (A B C) (A B) (C B). Using implication as disjunction these become (A B C) ( A B) ( C B), which is the same as (A B C), ( A B), ( C B) false By De Morgan and Double Negation, ( C B) is the same as (C B), so what we want finally is (A B C), ( A B), C, B false Now we apply resolution as follows: A B C A B C B B C B false Page 1

NOTE TO MARKER: Show some leniency based on the fact that I forgot to explicitly mention De Morgan s laws as an allowed technique; similarly on prob 2. Also, on prob 1, on the step that combines A B C with A B to get B C, idempotency of is implicitly used; that is, what you would really get is B B C. If anyone did everything up to that point correctly, but got stuck on that point, please give him or her full credit. 2. Use Resolution (possibly in combination with the other allowed tools from Problem 1) to prove A ( B C) (B A) ANSWER: As before we transform to A ( B C) (B A), note that B A is the same as B A, transform to A ( B C), ( B A) false, use De Morgan and Double Negation to make it A ( B C), B A false, which is the same as A ( B C), B, A false We now proceed to prove this by Resolution: A ( B C) B A false B C B C 3. This problem is to be done in the context of Boolean Logic, not Predicate Logic. Suppose Γ is a set of assumptions, and A, B are (Boolean) WFFs. We know that A B is equivalent to A B. Suppose Γ A B. Is it necessarily the case that either Γ A, or Γ B? Page 2

If so, prove it (remember that your proof must work for any Γ, A, B as above). If not, find Γ, A, B that give a counterexample (remember the Soundness Theorem). ANSWER: No. Let Γ be the empty set, and let A and B both equal p. Then certainly p p (for example, by Post s theorem). However neither p nor p is true, because neither p nor p is a tautology, and if (say) p were true, then p would have to be a tautology by the Soundness Theorem. (Same for p.) 4. Find the results of the following substitutions. For item (a), work it out according to the inductive definition; for the others, just give the answer and explain the reasons for anything unexpected-looking): (a) g(f(x), f(y))[x := 7] (where f is a unary function symbol, g is a binary function symbol, and 7 is a non-logical constant symbol. Note that in the style of the notes, this should technically be written gfxfy[x := 7], but we re ignoring that.) ANSWER: g(f(x), f(y))[x := 7] = g(f(x)[x := 7], f(y)[x := 7)) = g(f(x[x := 7]), f(y[x := 7])) = g(f(7), f(y)) (b) (f(x) < 7)[x := 7] (as above, plus we have a non-logical binary predicate symbol <, which again we should technically put before its arguments, but we won t.) ANSWER: (f(7) < 7). (c) (( x)(f(x) < 7))[x := 7] ANSWER: (( x)(f(x) < 7)). COMMENT: x is not a free variable, so substituting for it has no effect. (d) (( y)(f(x) < 7))[x := 7] ANSWER: (( y)(f(7) < 7)). COMMENT: we substitute for the free variable x; the quantifier ( y) does not interfere. (e) (( x)( y)(f(7) < g(x, y))[z := g(y, 7)] ANSWER:( x)( y)(f(7) < g(x, y)) COMMENT: z does not occur free; substituting for it has no effect. (f) (( x)( y)(f(z) < g(x, y))[z := g(y, 7)] ANSWER: illegal. COMMENT: z occurs free, but substituting for it causes the variable y in g(y, 7) to be captured by the quantifier ( y). Page 3

(g) (( x)( y)( z)(f(z) < g(x, y))[z := g(y, 7)] ANSWER: (( x)( y)( z)(f(z) < g(x, y)). COMMENT: z does not occur free; substituting for it has no effect. 5. Prove by induction on the complexity of A that if x does not occur free in A, then A[x := t] equals A, for any term t. ANSWER: The base case is when A has complexity 0; that is, A is an atomic formula. In that case A is one of four things: A Boolean variable, say p. Then clearly p[x := t] = p. A Boolean constant, either true or false. Same as above. s 1 = s 2, where s 1 and s 2 are terms not containing x (since otherwise x would occur free in A). Then (s 1 = s 2 )[x := t] equals s 1 [x := t] = s 2 [x := t] equals s 1 = s 2 (since s 1 and s 2 do not contain x). φ(s 1,..., s n ), where φ is an n-ary predicate symbol, and s 1,..., s n are terms not containing x (since otherwise x would occur free). As in the previous case. Now suppose A has complexity n > 0, and the result holds for all formulae of lesser complexity. Then A is one of the following: B, where x does not occur free in B (otherwise, it would occur free in A). Then A[x := t] = (B[x := t]) = B( by induction hypothesis ) = A B C, where is one of,,,, and x does not occur free in B or C (same reason as above). Then A[x := t] = B[x := t] C[x := t] = B C (induction hyp) = A ( y)b, where y is some variable different from x, and x does not occur free in B (same reason). Then A[x := t] = (( y)b)[x := t] = ( y)(b[x := t]) = ( y)b (ind hyp) = A ( x)b, where this time it is possible that x occurs free in B (any free occurrences of x in B will become bound when you add the ( x) quantifier). Then Page 4

A[x := t] = (( x)b)[x := t] = ( x)b (by defn of substitution, not the induction hypothesis) = A 6. Consider the following formula, in a language with a non-logical constant symbol 5: ( x)(x = 5) (( x)(x = 5)) (a) What is the abstraction of this formula into Boolean logic? ANSWER: p p. (b) Is the abstraction a tautology? Why? ANSWER: Yes (one-line proof; A A is an axiom). (c) Whether or not the abstraction is a tautology, can you prove the original formula ( x)(x = 5) (( x)(x = 5)), in predicate logic? ANSWER: Yes. All axioms of Boolean logic are axioms of predicate logic, so again it s a one-line proof. 7. Consider the following formula, in a language with a non-logical function symbol S: ( x) ((x = Sx) (Sx = SSx)) (a) What is the abstraction of this formula into Boolean logic? ANSWER: p. Everything is inside the scope of a quantifier, so all we can do is assign a Boolean variable to it. (b) Is the abstraction a tautology? Why? ANSWER: No. Given a state in which v(p) = f, obviously p is false in that state, so not every state makes p true. (c) Whether or not the abstraction is a tautology, can you prove the original formula ( x) ((x = Sx) (Sx = SSx)), in predicate logic? ANSWER: Yes. I will give two proofs, both using techniques not discussed in class in time to use them for the assignment. (NOTE TO MARKER: It is possible to give a direct proof from the axioms, but I did not realize at the time I assigned the problem how difficult that was. Therefore, please accept any answer that makes a good guess as to the form of Axiom 6 to be used, or otherwise makes meaningful progress to a solution.) Page 5

FIRST PROOF, using Generalisation: (1) x = Sx (x = Sx Sx = SSx) < Ax. 6, where t = x, s = Sx, A = (x = Sx) > (2) x = Sx Sx = SSx < Post s theorem: A (A B) = A B, so A (A B) A B where A = (x = Sx), B = (Sx = SSx) > (3) ( x)(x = Sx Sx = SSx) < Generalisation > SECOND PROOF, using the Deduction Theorem and Generalisation: First we show x = Sx Sx = SSx. Assume x = Sx. Now: (1) x = Sx < Assumption > (2) x = Sx (x = Sx Sx = SSx) < Ax. 6, where t = x, s = Sx, A = (x = Sx) > (3) x = Sx Sx = SSx < Modus Ponens, (1), (2) > (4) Sx = SSx < Eqn, (1), (3) > Thus x = Sx Sx = SSx, so (x = Sx) (Sx = SSx), by the Deduction Theorem. Now ( x)((x = Sx) (Sx = SSx)), by Generalisation. Page 6