Foundations of Mathematics Worksheet 2

Similar documents
CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics

Chapter 1 : The language of mathematics.

Logic Part I: Classical Logic and Its Semantics

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Logic Synthesis and Verification

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

MATH 145 LECTURE NOTES. Zhongwei Zhao. My Lecture Notes for MATH Fall


Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

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

Chapter 1. Logic and Proof

Recall that the expression x > 3 is not a proposition. Why?

1 Introduction to Predicate Resolution

CSE Discrete Structures

An Introduction to Modal Logic V

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

Predicate Calculus - Syntax

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

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

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

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

1 Completeness Theorem for Classical Predicate

G52DOA - Derivation of Algorithms Predicate Logic

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Math 13, Spring 2013, Lecture B: Midterm

MATH1240 Definitions and Theorems

Week 4-5: Binary Relations

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Recitation 7: Existence Proofs and Mathematical Induction

Chapter 4: Classical Propositional Semantics

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.

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

.. Discrete Mathematics. Yi Li. June 9, Software School Fudan University. Yi Li (Fudan University) Discrete Mathematics June 9, / 15

Propositional Logic, Predicates, and Equivalence

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

Propositional Logic Not Enough

Discrete Mathematics

CHAPTER 2. FIRST ORDER LOGIC

Math 3336: Discrete Mathematics Practice Problems for Exam I

Foundation of proofs. Jim Hefferon.

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

INF3170 Logikk Spring Homework #8 For Friday, March 18

UNIVERSITY OF EAST ANGLIA. School of Mathematics UG End of Year Examination MATHEMATICAL LOGIC WITH ADVANCED TOPICS MTH-4D23

Week 4-5: Binary Relations

Lecture 1: Overview. January 24, 2018

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

Do not start until you are given the green signal

1.1 Language and Logic

Finite Fields. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

STRATEGIES OF PROBLEM SOLVING

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

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

Introduction to Proofs

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

CSE Discrete Structures

Rings of Residues. S. F. Ellermeyer. September 18, ; [1] m

DISCRETE MATH: FINAL REVIEW

Notes on Satisfiability-Based Problem Solving. First Order Logic. David Mitchell October 23, 2013

Logic and Proofs. (A brief summary)

Introduction to Sets and Logic (MATH 1190)

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

1 Take-home exam and final exam study guide

A1 Logic (25 points) Using resolution or another proof technique of your stated choice, establish each of the following.

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics

Propositional Logic Language

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

Logic for Computer Scientists

Logic for Computer Scientists

Chapter 1 Elementary Logic

Section 0. Sets and Relations

Compound Propositions

Topics in Logic and Proofs

MT181 Number Systems: Sheet 1. Attempt all numbered questions. To be handed in during the MT181 lecture on Thursday 11th October.

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler

Exercises for the Logic Course

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

Section Summary. Section 1.5 9/9/2014

Analysis 1. Lecture Notes 2013/2014. The original version of these Notes was written by. Vitali Liskevich

AAA615: Formal Methods. Lecture 2 First-Order Logic

Sets, Logic, Relations, and Functions

Table of mathematical symbols - Wikipedia, the free encyclopedia

Preliminaries to the Theory of Computation

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

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

CS 250/251 Discrete Structures I and II Section 005 Fall/Winter Professor York

Section A (not in the text) Which of the following are statements? Explain. 3. The President of the United States in 2089 will be a woman.

2k n. k=0. 3x 2 7 (mod 11) 5 4x 1 (mod 9) 2 r r +1 = r (2 r )

Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R.

COMP 409: Logic Homework 5

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

Transcription:

Foundations of Mathematics Worksheet 2 L. Pedro Poitevin June 24, 2007 1. What are the atomic truth assignments on {a 1,..., a n } that satisfy: (a) The proposition p = ((a 1 a 2 ) (a 2 a 3 ) (a n 1 a n ))? (b) The proposition q = (p (a n a 1 ))? (c) The proposition r = 1 i n 1 j n i j (a i a j )? Write down disjunctive normal forms for p, q, and r. 2. Consider the set of propositional variables P = {a 1,..., a n }. (a) Show that the following proposition is a tautology: ( ) (a i a j ) ( ) a j. 1 i<j n (b) Which atomic truth assignments on P make the following proposition false: ( ) a i ( ) a j? (c) Show that the preceding proposition is logically equivalent to ( a i ) a j. j i 3. ( ) A safe has n locks and can be opened only when all n of the locks are open. Five people, a, b, c, d, and e are to receive keys to some of the locks. Each key can be duplicated any number of times. Find the smallest value of n, and a corresponding distribution of keys to the five people, so that the safe can be opened if and only if at least one of the following situations applies: (a) a and b are present together; j i j i

(b) a, c and d are present together; (c) b, d, and e are present together. 4. The language L consists of a unary function symbol f and a binary function symbol g. Consider the following sentences: ϕ 6 : x y(f(g(x, y)) = f(x)) x y(f(g(x, y)) = f(x)) y x(f(g(x, y)) = f(x)) x y(f(g(x, y)) = f(x)) x y(f(g(x, y)) = f(x)) y x(f(g(x, y)) = f(x)). Consider the four structures whose underlying set is Z +, where g is interpreted by the map (m, n) m + n, and where f is interpreted respectively by (a) the constant map equal to 103; (b) the map n n mod 4; (c) the map n min(n 2 + 1, 19); (d) the map n { 1, if n = 1 the smallest prime divisor of n, if n > 1. For each of the six sentences, determine whether it is satisfied or not in each of the four structures. 5. The language L consists of a unary predicate symbol P and a binary predicate symbol R. Consider the following six sentences: ϕ 6 : x y z((p (x) R(x, y)) P (y) R(y, z)) x z((r(z, x) R(x, z)) yr(x, y)) y( z tr(t, z) x(r(x, y) R(x, y))) x y((p (y) R(y, x)) ( u(p (u) R(y, x)) R(x, y))) x y((p (x) R(x, y)) ((P (y) R(y, x)) z( R(z, x) R(y, z)))) z u x y((r(x, y) P (u)) (P (y) R(z, x))). For each of these sentences, determine whether or not it is satisfied in each of the three L-structures defined below: (a) The underlying set is N, the interpretation of R is the usual order relation, the interpretation of P is the set of even integers. (b) The underlying set is P(N) (the set of all subsets of N), the interpretation of R is the inclusion relation, and the interpretation of P is the collection of finite subsets of N. (c) The underlying set is R, the interpretation of R is the set of pairs (a, b) R 2 such that b = a 2, the interpretation of P is the subset of rational numbers. 2

6. The language L has two unary function symbols f and g. (a) Find three sentences σ 1, σ 2, σ 3 of L such that for every L-structure A = (A, f, g) we have A σ 1 if and only if f = g and f is a constant map; A σ 2 if and only if f(a) g(a); A σ 3 if and only if f(a) g(a) contains a single element. (b) Consider the following five L-sentences: xf(x) = g(x) x yf(x) = g(y) x yf(x) = g(y) x yf(x) = g(y) x yf(x) = g(y). Find a model for each of the following six sentences: a ϕ 1 ϕ 2 ; b ϕ 2 ; c ϕ 1 ϕ 3 ; d ϕ 1 ϕ 4 ; e ϕ 3 ϕ 4 ϕ 5 ; f ϕ 5. 7. Let L be a language and let A[x, y] be an arbitrary L-formula with two free variables. (a) Is the sentence x ya[x, y] y xa[x, y] satisfied in any L-structure? (b) Is the sentence y xa[x, y] x ya[x, y] satisfied in any L-structure? 8. Show that the following sets are 0-definable in the corresponding structures: (a) The ordering relation {(m, n) N 2 m < n} in (N, 0, +). (b) The set of prime numbers in the semiring N = (N, 0, 1, +, ). (c) The set {2 n n N} in the semiring N. (d) The set {a R f is continuous at a} in (R, <, f) where f : R R is any function. (e) The set {m Z : m 0} in the ring (Z, 0, 1,, +, ) 9. In all the of the languages considered in this exercise, R is a binary relation symbol, and are binary function symbols, and c and d are constant symbols. We will write x y and x y rather than xy and xy, respectively. We will also abbreviate x x by x 2. a In each of the following six cases (1 i 6), a language L i and two L i -structures A i and B i are given to you, and you are asked to find an L i -sentence that is true in A i and false in B i. 3

(a) L 1 = {R}, A 1 = (N, ), B 1 = (Z, ); (b) L 2 = {R}, A 2 = ((Q), ), B 2 = (Z, ); (c) L 3 = { }, A 3 = ((N), ), B 3 = (P(N), ); (d) L 4 = {c, }, A 4 = (N, 1, ), B 4 = (Z, 1, ); (e) L 5 = {c, d,, }, A 5 = ((R), 0, 1, +, ), B 5 = (Q, 0, 1, +, ); (f) L 6 = {R}, A 6 = ((Z), 2 ), B 6 = (Z, 3 ); (where and + denote the usual operations of multiplication and addition, denotes the operation of intersection, and p is the relation of congruence modulo p.) b For each of the following sentences of the language {c,,, R}, find a model of the sentence as well as a model of its negation. u v x( v = c u (v x) = c) u v w x( w = c u (v x) (w x 2 ) = c) x y z(r(x, x) ((R(x, y) R(y, z)) R(x, z)) (R(x, y) R(y, x))) x y z(r(x, y) R(x z, y z)) x y(r(x, y) R(y, x)). 10. The language L consists of a single binary relation symbol R. Consider the L- structure A whose underlying set is A = {n N n 2} and in which R is interpreted by the relation divides, i.e. R A is defined for all integers m, n 2 by the condition: (m, n) R A if and only if m divides n. a For each of the following L-formulas (with one free variable x), describe the set of elements of A that satisfy it. y(r(y, x) x = y) y z((r(y, x) R(z, x) (R(y, z) R(z, y))) y z(r(y, x) (R(z, y) R(x, z))) t y z(r(t, x) (R(y, t) R(z, y) R(t, z))). b Write an L-formula ψ[x, y, z, t] such that for all a, b, c, and d in A, the structure A satisfies ψ[a, b, c, d] if and only if d is the greatest common divisor of a, b, and c. 11. Let L be a language and let ϕ be an L-sentence. The spectrum of ϕ is the set of cardinalities of finite models of ϕ, i.e. it is the set of all natural numbers n for which ϕ is satisfied in some structure the underlying set of which has exactly n elements. a For each of the following subsets of N, exhibit, when it is possible, an example of a language L and an L-sentence ϕ whose spectrum is the subset in question. (a) ; (b) N; (c) Z + ; (d) {n Z + ( p N)(n = 2p)} 4

(e) {n Z + ( p N)(n = p 2 )}; (f) {3}; (g) {1, 2, 3, 4}; (h) N \ {0, 1,..., k}; (i) the set of non-zero composite natural numbers; (j) the set of prime numbers. b Show that any sentence whose spectrum is infinite has at least one infinite model. 5