Theory of Languages and Automata

Size: px
Start display at page:

Download "Theory of Languages and Automata"

Transcription

1 Theory of Languages and Automata Chapter 0 - Introduction Sharif University of Technology

2 References Main Reference M. Sipser, Introduction to the Theory of Computation, 3 nd Ed., Cengage Learning, Additional References P. Linz, An Introduction to Formal Languages and Automata, 3 rd Ed., Jones and Barlett Publishers, Inc., J.E. Hopcroft, R. Motwani and J.D. Ullman, Introduction to Automata Theory, Languages, and Computation, 2 nd Ed., Addison-Wesley, P.J. Denning, J.B. Dennnis, and J.E. Qualitz, Machines, Languages, and Computation, Prentice-Hall, Inc., P.J. Cameron, Sets, Logic and Categories, Springer-Verlag, London limited, Theory of Languages and Automata Prof. Movaghar 2

3 Grading Policy Assignments 30% First Quiz 15% Second Quiz 15% Final Exam 40% Theory of Languages and Automata Prof. Movaghar 3

4 Main Topics Complexity Theory Computability Theory Automata Theory Mathematical Notions Alphabet Strings Languages Theory of Languages and Automata Prof. Movaghar 4

5 Complexity Theory The scheme for classifying problems according to their computational difficulty ptions: Alter the problem to a more easily solvable one by understanding the root of difficulty Approximate the perfect solution Use a procedure that occasionally is slow but usually runs quickly Consider alternatives, such as randomized computation Applied area: Cryptography Theory of Languages and Automata Prof. Movaghar 5

6 Computability Theory Determining whether a problem is solvable by Computers Classification of problems as solvable ones and unsolvable ones Theory of Languages and Automata Prof. Movaghar 6

7 Automata Theory Definitions and properties of mathematical models of computation Finite automaton Usage: Text Processing, Compilers, Hardware Design Context-free grammar Usage: Programming Languages, Artificial Intelligence Theory of Languages and Automata Prof. Movaghar 7

8 Logic The science of the formal principles of reasoning Theory of Languages and Automata Prof. Movaghar 8

9 History of Logic Logic was known as 'dialectic' or 'analytic' in Ancient Greece. The word 'logic' (from the Greek logos, meaning discourse or sentence) does not appear in the modern sense until the commentaries of Alexander of Aphrodisias, writing in the third century A.D. While many cultures have employed intricate systems of reasoning, and logical methods are evident in all human thought, an explicit analysis of the principles of reasoning was developed only in three traditions: those of China, India, and Greece. Theory of Languages and Automata Prof. Movaghar 9

10 History of Logic (cont.) Although exact dates are uncertain, particularly in the case of India, it is possible that logic emerged in all three societies by the 4 th century BC. The formally sophisticated treatment of modern logic descends from the Greek tradition, particularly Aristotelian logic, which was further developed by Islamic Logicians and then medieval European logicians. The work of Frege in the 19th century marked a radical departure from the Aristotlian leading to the rapid development of symbolic logic, later called mathematical logic. Theory of Languages and Automata Prof. Movaghar 10

11 Modern Logic Descartes proposed using algebra, especially techniques for solving for unknown quantities in equations, as a vehicle for scientific exploration. The idea of a calculus of reasoning was also developed by Leibniz. He was the first to formulate the notion of a broadly applicable system of mathematical logic. Frege in his 1879 work extended formal logic beyond propositional logic to include quantification to represent the "all", "some" propositions of Aristotelian logic. Theory of Languages and Automata Prof. Movaghar 11

12 Modern Logic (cont.) A logic is a language of formulas. A formula is a finite sequence of symbols with a syntax and semantics. A logic can have a formal system. A formal system consists of a set of axioms and rules of inference. Theory of Languages and Automata Prof. Movaghar 12

13 Logic Types of Interest Propositional Logic Predicate Logic Theory of Languages and Automata Prof. Movaghar 13

14 Syntax of Propositional Logic Let {p0, p1,..} be a countable set of propositional variables, {,,,, } be a finite set of connectives, Also, there are left and right brackets, A propositional variable is a formula, If φ and ψ are formulas, then so are ( φ), (φ ψ), (φ ψ), (φ ψ), and (φ ψ). Theory of Languages and Automata Prof. Movaghar 14

15 Semantics of Propositional Logic Any formula, which involves the propositional variables p 0,...,p n, can be used to define a function of n variables, that is, a function from the set {T, F} n to {T, F}. This function is often represented as the truth table of the formula and is defined to be the semantics of that formula. Theory of Languages and Automata Prof. Movaghar 15

16 Examples ψ φ ( φ) (φ ψ) (φ ψ) (φ ψ) (φ ψ) T T F T T T T F T F F T F F T F T F T T F F F T F F T T Theory of Languages and Automata Prof. Movaghar 16

17 ther Definitions A formulae is a tautology if it is always true. (P ( P)) is a tautology. A formulae is a contradiction if it is never true. (P ( P)) is a contradiction. A formulae is a contingency if it is sometimes true. (P ( P)) is a contingency. Theory of Languages and Automata Prof. Movaghar 17

18 Formal System A formal system includes the following: An alphabet A, a set of symbols. A set of formulae, each of which is a string of symbols from A. A set of axioms, each axiom being a formula. A set of rules of inference, each of which takes as input a finite sequence of formulae and produces as output a formula. Theory of Languages and Automata Prof. Movaghar 18

19 Proof A proof in a formal system is just a finite sequence of formulae such that each formula in the sequence either is an axiom or is obtained from earlier formulae by applying a rule of inference. Theory of Languages and Automata Prof. Movaghar 19

20 Theorem A theorem of the formal system is just the last formula in a proof. Example: For any formula φ, the formula (φ φ) is a theorem of the propositional logic. Theory of Languages and Automata Prof. Movaghar 20

21 A Formal System for Propositional Logic There are three schemes of axioms, namely: (A1) (φ (ψ φ)) (A2) (φ (ψ θ)) ((φ ψ) (φ θ)) (A3) ((( φ) ( ψ)) (ψ φ)) Each of these formulas is an axiom, for all choices of formulae φ, ψ, θ. There is only one rule of inference, namely Modus Ponens: From φ and (φ ψ), infer ψ. Theory of Languages and Automata Prof. Movaghar 21

22 Example of a Proof Using (A2), taking φ, ψ, θ to be φ, (φ φ) and φ respectively ((φ ((φ φ) φ)) ((φ (φ φ)) (φ φ))) Using (A1), taking φ, ψ to be φ and (φ φ) respectively (φ ((φ φ) φ)) Using Modus Ponens ((φ (φ φ)) (φ φ)) Using (A1), taking φ, ψ to be φ and φ respectively (φ (φ φ)) Using Modus Ponens (φ φ) Theory of Languages and Automata Prof. Movaghar 22

23 Soundness & Completeness A formal system is said to be sound if all theorems in that system are tautology. A formal system is said to be complete if all tautologies in that system are theorems. Theory of Languages and Automata Prof. Movaghar 23

24 Predicate A proposition involving some variables, functions and relations Example P(x) = x > 3 Q(x,y,z) = x 2 + y 2 = z 2 Theory of Languages and Automata Prof. Movaghar 24

25 Quantifier Universal: for all x P(x) P(x 1 ) P(x 2 ) P(x 3 ) Existential: there exists x P(x) P(x 1 ) P(x 2 ) P(x 3 ) Combinations: x y y > x Theory of Languages and Automata Prof. Movaghar 25

26 Quantifiers: Negation ( x P(x)) x P(x) ( x P(x)) x P(x) x y P(x,y) x y P(x,y) x y P(x,y) x y P(x,y) Theory of Languages and Automata Prof. Movaghar 26

27 Rules of Inference 1. Direct Proof 2. Indirect Proof 3. Proof by Contradiction 4. Proof by Cases 5. Induction Theory of Languages and Automata Prof. Movaghar 27

28 Direct Proof If the two propositions (premises) p and p q are theorems, we may deduce that the proposition q is also a theorem. This fundamental rule of inference is called modus ponens by logicians. p q p q Theory of Languages and Automata Prof. Movaghar 28

29 Indirect Proof Proves p q by instead proving the contrapositive, ~q ~p p q ~q ~p Theory of Languages and Automata Prof. Movaghar 29

30 Proof by Contradiction The rule of inference used is that from theorems p and q p, we may deduce theorem q. p ~q ~p q Theory of Languages and Automata Prof. Movaghar 30

31 Proof by Cases You want to prove p q P can be decomposed to some cases: p p 1 ν p 2 ν ν p n Independently prove the n implications given by p i q for 1 i n. Theory of Languages and Automata Prof. Movaghar 31

32 Proof by Induction To prove xp ( x ) 1. Proof P(0), 2. Proof x [ P( x) P( x 1)] Theory of Languages and Automata Prof. Movaghar 32

33 Constructive Existence Proof Want to prove that x P(x) Find an a and then prove that P(a) is true Theory of Languages and Automata Prof. Movaghar 33

34 Non-Constructive Existence Proof Want to prove that x P(x) You cannot find an a that P(a) is true Then, you can use proof by contradiction: ~ x P( x) x ~ P( x) F Theory of Languages and Automata Prof. Movaghar 34

35 Intuitive (Naïve) Set Theory There are three basic concepts in set theory: Membership Extension Abstraction Theory of Languages and Automata Prof. Movaghar 35

36 Membership Membership is a relation that holds between a set and an object x A to mean the object x is a member of the set A, or x belongs to A. The negation of this assertion is written x A as an abbreviation for the proposition (x A) ne way to specify a set is to list its elements. For example, the set A = {a, b, c} consists of three elements. For this set A, it is true that a A but d A Theory of Languages and Automata Prof. Movaghar 36

37 Extension The concept of extension is that two sets are identical if and if only if they contain the same elements. Thus we write A=B to mean x [x A x B] Theory of Languages and Automata Prof. Movaghar 37

38 Abstraction Each property defines a set, and each set defines a property If p(x) is a property then we can define a set A A = {x p(x)} If A is a set then we can define a predicate p(x) p(x) = x A Theory of Languages and Automata Prof. Movaghar 38

39 Intuitive versus axiomatic set theory The theory of set built on the intuitive concept of membership, extension, and abstraction is known as intuitive (naïve) set theory. As an axiomatic theory of sets, it is not entirely satisfactory, because the principle of abstraction leads to contradictions when applied to certain simple predicates. Theory of Languages and Automata Prof. Movaghar 39

40 Russell s Paradox Let p(x) be a predicate defined as P(X) = (X X) Define set R as R={X P(X)} Is P(R) true? Is P(R) false? Theory of Languages and Automata Prof. Movaghar 40

41 Gottlob Frege s Comments The logician Gottlob Frege was the first to develop mathematics on the foundation of set theory. He learned of Russell Paradox while his work was in press, and wrote, A scientist can hardly meet with anything more undesirable than to have the foundation give way just as the work is finished. In this position I was put by a letter from Mr. Bertrand Russell as the work was nearly through the press. Theory of Languages and Automata Prof. Movaghar 41

42 Power Set The set of all subsets of a given set A is known as the power set of A, and is denoted by P(A): P(A) = {B B A} Theory of Languages and Automata Prof. Movaghar 42

43 Set peration-union The union of two sets A and B is A B = {x (x A) (x B)} and consists of those elements in at least one of A and B. If A 1,, A n constitute a family of sets, their union is = (A 1 A n ) = {x x A i for some i, 1 i n} Theory of Languages and Automata Prof. Movaghar 43

44 Set peration-intersection The intersection of two sets A and B is A B = {x (x A) (x B)} and consists of those elements in at least one of A and B. If A 1,, A n constitute a family of sets, their intersection is = (A 1 A n ) = {x x A i for all i, 1 i n} Theory of Languages and Automata Prof. Movaghar 44

45 Set peration-complement The complement of a set A is a set A c defined as: A c = {x x A} The complement of a set B with respect to A, also denoted as A-B, is defined as: A-B = {x A x B} Theory of Languages and Automata Prof. Movaghar 45

46 rdered Pairs and n-tuples An ordered pair of elements is written (x,y) where x is known as the first element, and y is known as the second element. An n-tuple is an ordered sequence of elements (x 1, x 2,, x n ) And is a generalization of an ordered pair. Theory of Languages and Automata Prof. Movaghar 46

47 rdered Sets and Set Products By Cartesian product of two sets A and B, we mean the set A B = {(x,y) x A, y B} Similarly, A 1 A 2 A n = {x 1 A 1, x 2 A 2,, x n A n } Theory of Languages and Automata Prof. Movaghar 47

48 Relations A relation ρ between sets A and B is a subset of A B: ρ A B The domain of ρ is defined as D ρ = {x A for some y B, (x,y) ρ} The range of ρ is defined as R ρ = {y B for some x A, (x,y) ρ} If ρ A A, then ρ is called a relation on A. Theory of Languages and Automata Prof. Movaghar 48

49 Types of Relations on Sets A relation ρ is reflexive if (x,x) ρ, for each x A A relation ρ is symmetric if, for all x,y A (x,y) ρ implies (y,x) ρ A relation ρ is antisymmetric if, for all x,y A (x,y) ρ and (y,x) ρ implies x=y A relation ρ is transitive if, for all x,y,z A (x,y) ρ and (y,z) ρ implies (x,z) ρ Theory of Languages and Automata Prof. Movaghar 49

50 Partial rder and Equivalence Relations A relation ρ on a set A is called a partial ordering of A if ρ is reflexive, anti-symmetric, and transitive. A relation ρ on a set A is called an equivalence relation if ρ is reflexive, symmetric, and transitive. Theory of Languages and Automata Prof. Movaghar 50

51 Total rdering A relation ρ on a set A is a total ordering if ρ is a partial ordering and, for each pair of elements (x,y) in A A at least one of (x,y) ρ or (y,x) ρ is true. Theory of Languages and Automata Prof. Movaghar 51

52 Inverse Relation For any relation ρ A B, the inverse of ρ is defined by ρ -1 = {(y,x) (x,y) ρ} If D ρ and R ρ are the domain and range of ρ, then D ρ-1 = R ρ and R ρ-1 = D ρ Theory of Languages and Automata Prof. Movaghar 52

53 Equivalence Let ρ A A be an equivalence relation on A. The equivalence class of an element x is defined as [x] = {y A (x,y) ρ} An equivalence relation on a set partitions the set. Theory of Languages and Automata Prof. Movaghar 53

54 Functions A relation f A B is a function if it has the property: for all x,y,z, (x,y) f and (x,z) f implies y = z If f A B is a function, we write f: A B and say that f maps A into B. We use the common notation to mean (x,y) f. Y = f(x) Theory of Languages and Automata Prof. Movaghar 54

55 Functions (cont.) As before, the domain of f is the set D f = {x A for some y B, (x,y) f} and the range of f is the set R f = {y B for some x A, (x,y) f} If D f A, we say the function is a partial function; if D f = A, we say that f is a total function. Theory of Languages and Automata Prof. Movaghar 55

56 Functions (cont.) If x D f, we say that f is defined at x; otherwise f is undefined at x. If R f = B, we say that f maps D f onto B. If a function f has the property for all x,y,z, f(x) = z and f(y) = z implies x = y then f is a one-to-one function. If f: A B is a one-to-one function, f gives a one-to one correspondence between elements of its domain and range. Theory of Languages and Automata Prof. Movaghar 56

57 Functions (cont.) Let X be a set and suppose A X. Define function C A : X {0,1} such that C A (x) = 1, if x A; C A (x) = 0, otherwise. C A (x) is called the characteristic function of set A with respect to set X. If f A B is a function, then the inverse of f is the set f --1 = {(y,x) (x,y) f} f --1 is a function if and only if f is one-to-one. Theory of Languages and Automata Prof. Movaghar 57

58 Functions (cont.) Let f: A B be a function, and suppose that X A. Then the set Y = f(x) = {y B y = f(x) for some x X} is known as the image of X under f. Similarly, the inverse image of a set Y included in the range of f is f -1 (Y) = {x A y = f(x) for some y Y} Theory of Languages and Automata Prof. Movaghar 58

59 Cardinality Two sets A and B are of equal cardinality, written as A = B if and only if there is a one-to-one function f: A B that maps A onto B. We write A B if B includes a subset C such that A = C. If A B and A B, then A has cardinality less than that of B, and we write A < B Theory of Languages and Automata Prof. Movaghar 59

60 Cardinality (cont.) Let J = {1, 2, } and J n = {1, 2,, n}. A sequence on a set X is a function f: J X. A sequence may be written as f(1), f(2), f(3), However, we often use the simpler notation x 1, x 2, x 3,., x i X A finite sequence of length n on X is a function f: J n X, usually written as x 1, x 2, x 3,., x n, x i X The sequence of length zero is the function f: X. Theory of Languages and Automata Prof. Movaghar 60

61 Finite and Infinite Sets A set A is finite if A = J n for some integer n 0, in which case we say that A has cardinality n. A set is infinite if it is not finite. A set X is denumerable if X = J. A set is countable if it is either finite or denumerable. A set is uncountable if it is not countable. Theory of Languages and Automata Prof. Movaghar 61

62 Some Properties Proposition: Every subset of J is countable. Consequently, each subset of any denumerable set is countable. Proposition: A function f: J Y has a countable range. Hence any function on a countable domain has a countable range. Proposition: The set J J is denumerable. Therefore, A B is countable for arbitrary countable sets A and B. Theory of Languages and Automata Prof. Movaghar 62

63 Some Properties (cont.) Proposition: The set A B is countable whenever A and B are countable sets. Proposition: Every infinite set X is at least denumerable ; that is X J. Proposition: The set of all infinite sequence on {0, 1} is uncountable. Theory of Languages and Automata Prof. Movaghar 63

64 Some Properties (cont.) Proposition: (Schröder-Bernestein Theorem) For any set A and B, if A B and B A, then A = B. Proposition: (Cantor s Theorem) For any set X, X < P(X). Theory of Languages and Automata Prof. Movaghar 64

65 1-1 correspondence Q N Proof (dove-tailing): Theory of Languages and Automata Prof. Movaghar 65

66 Countable Sets Any subset of a countable set The set of integers, algebraic/rational numbers The union of two/finite number of countable sets Cartesian product of a finite number of countable sets The set of all finite subsets of N Set of binary strings Theory of Languages and Automata Prof. Movaghar 66

67 Diagonal Argument Theory of Languages and Automata Prof. Movaghar 67

68 Uncountable Sets R, R 2, P(N) The intervals [0,1), [0, 1], (0, 1) The set of all real numbers The set of all functions from N to {0, 1} The set of functions N N Any set having an uncountable subset Theory of Languages and Automata Prof. Movaghar 68

69 Transfinite Cardinal Numbers Cardinality of a finite set is simply the number of elements in the set. Cardinalities of infinite sets are not natural numbers, but are special objects called transfinite cardinal numbers. 0 : N, is the first transfinite cardinal number. continuum hypothesis claims that R = 1, the second transfinite cardinal. Theory of Languages and Automata Prof. Movaghar 69

70 Alphabet A finite and nonempty set of symbols (usually shown by or Г). Example: = {,,,, } Theory of Languages and Automata Prof. Movaghar 70

71 Strings A finite list of symbols from an alphabet Example: house If ω is a string over, the length of ω, written ω, is the number of symbols that it contains. The empty string (ε or λ) is the string of length zero. εω = ωε = ω String z is a substring of ω if z appears consecutively within ω. Theory of Languages and Automata Prof. Movaghar 71

72 perations on Strings Reverse of a string: w = a 1 a 2 a n ababaaabbb w R = a n a 2 a 1 bbbaaababa Concatenation: w = a 1 a 2 a n abba v = b 1 b 2 b m bbbaaa wv = a 1 a 2 a n b 1 b 2 b m abbabbbaaa wv = w + v Theory of Languages and Automata Prof. Movaghar 72

73 perations on Alphabet * : The set of all strings that can be produced from. + : The set of all strings, excluding λ, that can be produced from. Suppose that λ={λ}. Then: Theory of Languages and Automata Prof. Movaghar 73

74 Languages A set of strings Any language on the alphabet is a subset of *. Examples: Theory of Languages and Automata Prof. Movaghar 74

75 perations on Languages Languages are a special kind of sets and operations on sets can be defined on them as well. Union Intersection Relative Complement Complement λ, b, aa, ab, bb, aaa, } Theory of Languages and Automata Prof. Movaghar 75

76 perations on Languages (cont.) Reverse of a language Example: Theory of Languages and Automata Prof. Movaghar 76

77 perations on Languages (cont.) Concatenation Example: Theory of Languages and Automata Prof. Movaghar 77

78 perations on Languages (cont.) *: Kleene * The set of all strings that can be produced by concatenation of strings of a language. Example: +: The set of all strings, excluding λ, that can be produced by concatenation of strings of a language. Theory of Languages and Automata Prof. Movaghar 78

79 Gödel Numbering Let be an alphabet containing n objects. Let h: J n be an arbitrary one-to-one correspondence. Define function f as: f: * N such that f(ε) =0; f(w.v) = n f(w) + h(v), for w * and v. f is called a Gödel Numbering of *. Proposition: * is denumerable. Proposition: Any language on an alphabet is countable. Theory of Languages and Automata Prof. Movaghar 79

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

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

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

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

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin Chapter 0 Introduction Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin October 2014 Automata Theory 2 of 22 Automata theory deals

More information

HANDOUT AND SET THEORY. Ariyadi Wijaya

HANDOUT AND SET THEORY. Ariyadi Wijaya HANDOUT LOGIC AND SET THEORY Ariyadi Wijaya Mathematics Education Department Faculty of Mathematics and Natural Science Yogyakarta State University 2009 1 Mathematics Education Department Faculty of Mathematics

More information

Axiomatic set theory. Chapter Why axiomatic set theory?

Axiomatic set theory. Chapter Why axiomatic set theory? Chapter 1 Axiomatic set theory 1.1 Why axiomatic set theory? Essentially all mathematical theories deal with sets in one way or another. In most cases, however, the use of set theory is limited to its

More information

CSE 1400 Applied Discrete Mathematics Definitions

CSE 1400 Applied Discrete Mathematics Definitions CSE 1400 Applied Discrete Mathematics Definitions Department of Computer Sciences College of Engineering Florida Tech Fall 2011 Arithmetic 1 Alphabets, Strings, Languages, & Words 2 Number Systems 3 Machine

More information

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

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

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

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

Theory of Computation

Theory of Computation Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 1: Introducing Formal Languages Motivation I This course is about the study of a fascinating

More information

CA320 - Computability & Complexity

CA320 - Computability & Complexity CA320 - Computability & Complexity David Sinclair Overview In this module we are going to answer 2 important questions: Can all problems be solved by a computer? What problems be efficiently solved by

More information

Handbook of Logic and Proof Techniques for Computer Science

Handbook of Logic and Proof Techniques for Computer Science Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives

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

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

CS 208: Automata Theory and Logic

CS 208: Automata Theory and Logic CS 208: Automata Theory and Logic b a a start A x(la(x) y.(x < y) L b (y)) B b Department of Computer Science and Engineering, Indian Institute of Technology Bombay. 1 of 19 Logistics Course Web-page:

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

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

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

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

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic: x NOT ~x x y AND x /\ y x y OR x \/ y Figure 1: Types of gates in a digital circuit. CS2742 midterm test 2 study sheet Boolean circuits: Boolean circuits is a generalization of Boolean formulas in which

More information

With Question/Answer Animations. Chapter 2

With Question/Answer Animations. Chapter 2 With Question/Answer Animations Chapter 2 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Sequences and Summations Types of

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

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications Chapter 1: Foundations: Sets, Logic, and Algorithms Discrete Mathematical Structures: Theory and Applications Learning Objectives Learn about sets Explore various operations on sets Become familiar with

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

Foundations of Mathematics

Foundations of Mathematics Foundations of Mathematics Andrew Monnot 1 Construction of the Language Loop We must yield to a cyclic approach in the foundations of mathematics. In this respect we begin with some assumptions of language

More information

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

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) (2011 Admission Onwards) I Semester Core Course FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK 1) If A and B are two sets

More information

AN EXTENSION OF THE PROBABILITY LOGIC LP P 2. Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2

AN EXTENSION OF THE PROBABILITY LOGIC LP P 2. Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2 45 Kragujevac J. Math. 33 (2010) 45 62. AN EXTENSION OF THE PROBABILITY LOGIC LP P 2 Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2 1 University of Kragujevac, Faculty of Science,

More information

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

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 Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.7, 5.5) TOPICS Sets and Functions Propositional and Predicate Logic Logical Operators and Truth Tables Logical Equivalences and Inference

More information

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws Index absolute value, 135 141 additive identity, 254 additive inverse, 254 aleph, 465 algebra of sets, 245, 278 antisymmetric relation, 387 arcsine function, 349 arithmetic sequence, 208 arrow diagram,

More information

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Section 2.1 Introduction Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Important for counting. Programming languages have set operations. Set theory

More information

Intro to Logic and Proofs

Intro to Logic and Proofs Intro to Logic and Proofs Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples: It is raining today. Washington

More information

Lecture 11: Measuring the Complexity of Proofs

Lecture 11: Measuring the Complexity of Proofs IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 11: Measuring the Complexity of Proofs David Mix Barrington and Alexis Maciel July

More information

The Limit of Humanly Knowable Mathematical Truth

The Limit of Humanly Knowable Mathematical Truth The Limit of Humanly Knowable Mathematical Truth Gödel s Incompleteness Theorems, and Artificial Intelligence Santa Rosa Junior College December 12, 2015 Another title for this talk could be... An Argument

More information

Undecidability. Andreas Klappenecker. [based on slides by Prof. Welch]

Undecidability. Andreas Klappenecker. [based on slides by Prof. Welch] Undecidability Andreas Klappenecker [based on slides by Prof. Welch] 1 Sources Theory of Computing, A Gentle Introduction, by E. Kinber and C. Smith, Prentice-Hall, 2001 Automata Theory, Languages and

More information

Automata Theory for Presburger Arithmetic Logic

Automata Theory for Presburger Arithmetic Logic Automata Theory for Presburger Arithmetic Logic References from Introduction to Automata Theory, Languages & Computation and Constraints in Computational Logic Theory & Application Presented by Masood

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

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

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO

More information

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

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

2.2 Lowenheim-Skolem-Tarski theorems

2.2 Lowenheim-Skolem-Tarski theorems Logic SEP: Day 1 July 15, 2013 1 Some references Syllabus: http://www.math.wisc.edu/graduate/guide-qe Previous years qualifying exams: http://www.math.wisc.edu/ miller/old/qual/index.html Miller s Moore

More information

Preliminaries to the Theory of Computation

Preliminaries to the Theory of Computation Preliminaries to the Theory of Computation 2 In this chapter, we explain mathematical notions, terminologies, and certain methods used in convincing logical arguments that we shall have need of throughout

More information

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.

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. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets

More information

Class 29 - November 3 Semantics for Predicate Logic

Class 29 - November 3 Semantics for Predicate Logic Philosophy 240: Symbolic Logic Fall 2010 Mondays, Wednesdays, Fridays: 9am - 9:50am Hamilton College Russell Marcus rmarcus1@hamilton.edu Class 29 - November 3 Semantics for Predicate Logic I. Proof Theory

More information

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3

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

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction Copyright & License Copyright c 2007 Jason Underdown Some rights reserved. statement sentential connectives negation conjunction disjunction implication or conditional antecedant & consequent hypothesis

More information

Analysis I. Classroom Notes. H.-D. Alber

Analysis I. Classroom Notes. H.-D. Alber Analysis I Classroom Notes H-D Alber Contents 1 Fundamental notions 1 11 Sets 1 12 Product sets, relations 5 13 Composition of statements 7 14 Quantifiers, negation of statements 9 2 Real numbers 11 21

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

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 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

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

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary) Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations

More information

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

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte Handout on Logic, Axiomatic Methods, and Proofs MATH 3181 001 Spring 1999 David C. Royster UNC Charlotte January 18, 1999 Chapter 1 Logic and the Axiomatic Method 1.1 Introduction Mathematicians use a

More information

Propositional Logic, Predicates, and Equivalence

Propositional Logic, Predicates, and Equivalence Chapter 1 Propositional Logic, Predicates, and Equivalence A statement or a proposition is a sentence that is true (T) or false (F) but not both. The symbol denotes not, denotes and, and denotes or. If

More information

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR 1 Introduction Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Comments on Alan Turing s Paper "On Computable Numbers, with an Application to the Entscheidungs

More information

FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling

FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling Note: You are expected to spend 3-4 hours per week working on this course outside of the lectures and tutorials. In this time you are expected to review

More information

Contents Propositional Logic: Proofs from Axioms and Inference Rules

Contents Propositional Logic: Proofs from Axioms and Inference Rules Contents 1 Propositional Logic: Proofs from Axioms and Inference Rules... 1 1.1 Introduction... 1 1.1.1 An Example Demonstrating the Use of Logic in Real Life... 2 1.2 The Pure Propositional Calculus...

More information

BASIC MATHEMATICAL TECHNIQUES

BASIC MATHEMATICAL TECHNIQUES CHAPTER 1 ASIC MATHEMATICAL TECHNIQUES 1.1 Introduction To understand automata theory, one must have a strong foundation about discrete mathematics. Discrete mathematics is a branch of mathematics dealing

More information

Fuzzy and Rough Sets Part I

Fuzzy and Rough Sets Part I Fuzzy and Rough Sets Part I Decision Systems Group Brigham and Women s Hospital, Harvard Medical School Harvard-MIT Division of Health Sciences and Technology Aim Present aspects of fuzzy and rough sets.

More information

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY Gödel s Proof Victoria Gitman and Thomas Johnstone New York City College of Technology, CUNY vgitman@nylogic.org http://websupport1.citytech.cuny.edu/faculty/vgitman tjohnstone@citytech.cuny.edu March

More information

Gödel s Incompleteness Theorems

Gödel s Incompleteness Theorems Seminar Report Gödel s Incompleteness Theorems Ahmet Aspir Mark Nardi 28.02.2018 Supervisor: Dr. Georg Moser Abstract Gödel s incompleteness theorems are very fundamental for mathematics and computational

More information

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

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................

More information

COMP 2600: Formal Methods for Software Engineeing

COMP 2600: Formal Methods for Software Engineeing COMP 2600: Formal Methods for Software Engineeing Dirk Pattinson Semester 2, 2013 What do we mean by FORMAL? Oxford Dictionary in accordance with convention or etiquette or denoting a style of writing

More information

Classical Propositional Logic

Classical Propositional Logic The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,

More information

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

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017 Economics 04 Summer/Fall 07 Lecture Monday July 7, 07 Section.. Methods of Proof We begin by looking at the notion of proof. What is a proof? Proof has a formal definition in mathematical logic, and a

More information

Infinite constructions in set theory

Infinite constructions in set theory VI : Infinite constructions in set theory In elementary accounts of set theory, examples of finite collections of objects receive a great deal of attention for several reasons. For example, they provide

More information

Introduction to Proofs

Introduction to Proofs Introduction to Proofs Notes by Dr. Lynne H. Walling and Dr. Steffi Zegowitz September 018 The Introduction to Proofs course is organised into the following nine sections. 1. Introduction: sets and functions

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

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015) 18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015) 1. Introduction The goal for this course is to provide a quick, and hopefully somewhat gentle, introduction to the task of formulating

More information

This section will take the very naive point of view that a set is a collection of objects, the collection being regarded as a single object.

This section will take the very naive point of view that a set is a collection of objects, the collection being regarded as a single object. 1.10. BASICS CONCEPTS OF SET THEORY 193 1.10 Basics Concepts of Set Theory Having learned some fundamental notions of logic, it is now a good place before proceeding to more interesting things, such as

More information

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

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati Important 1. No questions about the paper will be entertained during

More information

CS 455/555: Mathematical preliminaries

CS 455/555: Mathematical preliminaries CS 455/555: Mathematical preliminaries Stefan D. Bruda Winter 2019 SETS AND RELATIONS Sets: Operations: intersection, union, difference, Cartesian product Big, powerset (2 A ) Partition (π 2 A, π, i j

More information

CSE 1400 Applied Discrete Mathematics Proofs

CSE 1400 Applied Discrete Mathematics Proofs CSE 1400 Applied Discrete Mathematics Proofs Department of Computer Sciences College of Engineering Florida Tech Fall 2011 Axioms 1 Logical Axioms 2 Models 2 Number Theory 3 Graph Theory 4 Set Theory 4

More information

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

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares

More information

Sets, Logic, Relations, and Functions

Sets, Logic, Relations, and Functions Sets, Logic, Relations, and Functions Andrew Kay September 28, 2014 Abstract This is an introductory text, not a comprehensive study; these notes contain mainly definitions, basic results, and examples.

More information

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability Chapter 2 1 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability Sequences and Summations Types of Sequences Summation

More information

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

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

More information

The Process of Mathematical Proof

The Process of Mathematical Proof 1 The Process of Mathematical Proof Introduction. Mathematical proofs use the rules of logical deduction that grew out of the work of Aristotle around 350 BC. In previous courses, there was probably an

More information

A Guide to Proof-Writing

A Guide to Proof-Writing A Guide to Proof-Writing 437 A Guide to Proof-Writing by Ron Morash, University of Michigan Dearborn Toward the end of Section 1.5, the text states that there is no algorithm for proving theorems.... Such

More information

Introduction to Logic and Axiomatic Set Theory

Introduction to Logic and Axiomatic Set Theory Introduction to Logic and Axiomatic Set Theory 1 Introduction In mathematics, we seek absolute rigor in our arguments, and a solid foundation for all of the structures we consider. Here, we will see some

More information

CSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators.

CSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators. CSE 311: Foundations of Computing I Autumn 014 Practice Final: Section X YY ZZ Name: UW ID: Instructions: Closed book, closed notes, no cell phones, no calculators. You have 110 minutes to complete the

More information

MAGIC Set theory. lecture 1

MAGIC Set theory. lecture 1 MAGIC Set theory lecture 1 David Asperó University of East Anglia 15 October 2014 Welcome Welcome to this set theory course. This will be a 10 hour introduction to set theory. The only prerequisite is

More information

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary) Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations

More information

Gödel s Completeness Theorem

Gödel s Completeness Theorem A.Miller M571 Spring 2002 Gödel s Completeness Theorem We only consider countable languages L for first order logic with equality which have only predicate symbols and constant symbols. We regard the symbols

More information

Predicate Logic. Andreas Klappenecker

Predicate Logic. Andreas Klappenecker Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

CSCI3390-Lecture 6: An Undecidable Problem

CSCI3390-Lecture 6: An Undecidable Problem CSCI3390-Lecture 6: An Undecidable Problem September 21, 2018 1 Summary The language L T M recognized by the universal Turing machine is not decidable. Thus there is no algorithm that determines, yes or

More information

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets Today s topics Introduction to Set Theory ( 1.6) Sets Definitions Operations Proving Set Identities Reading: Sections 1.6-1.7 Upcoming Functions A set is a new type of structure, representing an unordered

More information

Axioms of Kleene Algebra

Axioms of Kleene Algebra Introduction to Kleene Algebra Lecture 2 CS786 Spring 2004 January 28, 2004 Axioms of Kleene Algebra In this lecture we give the formal definition of a Kleene algebra and derive some basic consequences.

More information

Meta-logic derivation rules

Meta-logic derivation rules Meta-logic derivation rules Hans Halvorson February 19, 2013 Recall that the goal of this course is to learn how to prove things about (as opposed to by means of ) classical first-order logic. So, we will

More information

Logic via Algebra. Sam Chong Tay. A Senior Exercise in Mathematics Kenyon College November 29, 2012

Logic via Algebra. Sam Chong Tay. A Senior Exercise in Mathematics Kenyon College November 29, 2012 Logic via Algebra Sam Chong Tay A Senior Exercise in Mathematics Kenyon College November 29, 2012 Abstract The purpose of this paper is to gain insight to mathematical logic through an algebraic perspective.

More information

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

CHAPTER 6. Copyright Cengage Learning. All rights reserved. CHAPTER 6 SET THEORY Copyright Cengage Learning. All rights reserved. SECTION 6.4 Boolean Algebras, Russell s Paradox, and the Halting Problem Copyright Cengage Learning. All rights reserved. Boolean Algebras,

More information

Practice Test III, Math 314, Spring 2016

Practice Test III, Math 314, Spring 2016 Practice Test III, Math 314, Spring 2016 Dr. Holmes April 26, 2016 This is the 2014 test reorganized to be more readable. I like it as a review test. The students who took this test had to do four sections

More information

Exercises for Unit VI (Infinite constructions in set theory)

Exercises for Unit VI (Infinite constructions in set theory) Exercises for Unit VI (Infinite constructions in set theory) VI.1 : Indexed families and set theoretic operations (Halmos, 4, 8 9; Lipschutz, 5.3 5.4) Lipschutz : 5.3 5.6, 5.29 5.32, 9.14 1. Generalize

More information

Digital Logic Design: a rigorous approach c

Digital Logic Design: a rigorous approach c Digital Logic Design: a rigorous approach c Chapter 1: Sets and Functions Guy Even Moti Medina School of Electrical Engineering Tel-Aviv Univ. October 25, 2017 Book Homepage: http://www.eng.tau.ac.il/~guy/even-medina

More information

Topics in Logic and Proofs

Topics in Logic and Proofs Chapter 2 Topics in Logic and Proofs Some mathematical statements carry a logical value of being true or false, while some do not. For example, the statement 4 + 5 = 9 is true, whereas the statement 2

More information

Section 0. Sets and Relations

Section 0. Sets and Relations 0. Sets and Relations 1 Section 0. Sets and Relations NOTE. Mathematics is the study of ideas, not of numbers!!! The idea from modern algebra which is the focus of most of this class is that of a group

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