Logic and Probability Lecture 3: Beyond Boolean Logic

Size: px
Start display at page:

Download "Logic and Probability Lecture 3: Beyond Boolean Logic"

Transcription

1 Logic and Probability Lecture 3: Beyond Boolean Logic Wesley Holliday & Thomas Icard UC Berkeley & Stanford August 13, 2014 ESSLLI, Tübingen Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 1

2 Overview Last time: Nonmonotonic logic, Bayes nets, graphical models,... Today: Stochastic lambda calculus Probabilistic First-Order Logic Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 2

3 Part I: Stochastic Lambda Calculus Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 3

4 Stochastic Lambda Calculus Probabilistic programming languages give rise to more general formalisms for defining probability distributions, with graphical models as a basic special case. Stochastic Lambda Calculus: a perspicuous, simple formalism. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 4

5 Stochastic Lambda Calculus Review of basic Lambda Calculus The λ-terms are given by a set of variables V and defined inductively: Each variable x V is a λ-term. If M and N are λ-terms, then so is M(N). If x V and M is a λ-term, then λx.m is a λ-term. Main reduction rule, β-conversation: (λx.m)(n) β M[N/x] Let β be the reflexive, transitive closure of β. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 5

6 Stochastic Lambda Calculus Church-Rosser for β M N Q Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 6

7 Stochastic Lambda Calculus Church-Rosser for β M N Q R Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 7

8 Stochastic Lambda Calculus Corollary If a λ-term has a β-normal form, it is unique. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 8

9 Stochastic Lambda Calculus Boolean Logic in Lambda Calculus λx.λy.x λx.λy.y and λa.λb.bab if then else λa.λb.λc.abc not λa. a For M a boolean function of v 1,..., v n, and T 1,..., T n {, }: (λv 1... λv n.m)(t 1 )... (T n ) β { depending on whether the boolean formula is true or false with this input. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 9

10 Stochastic Lambda Calculus Numbers in Lambda Calculus 0 λf.λx.x 1 λf.λx.f (x) 2 λf.λx.f (f (x)). n λf.λx.f n (x) succ λn.λf.λx.f (n(f (x))) And so on... Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 10

11 Stochastic Lambda Calculus Fixed-Point Combinators Θ ( λx.λy.y(xxy) )( λx.λy.y(xxy) ) Turing s combinator Θ has the feature that, for any term M, ΘM β M(ΘM). This allows great flexibility, e.g., in defining recursive functions. But it also means trouble for logic, viz. Curry s Paradox. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 11

12 Stochastic Lambda Calculus Curry s Paradox Suppose we devise a proof system in λ-calculus with the following rules: A B B A ( A (A B) ) (A B) A A = β B B Define M λx.x (x ), and let N ΘM. It is easy to show But then we can evidently prove : N = β N (N ). 1. ( N (N )) (N ) 2. N (N ) 3. N 4. N 5. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 12

13 Stochastic Lambda Calculus Adding Probability Stochastic lambda calculus adds to lambda calculus a new operator: M N with intended interpretation of probabilistic choice between M and N. Write M p N for: M reduces to normal form N with probability p. In particular, then, M N M and M N normal form, and more generally, 1 2 p 1 M N p Stochastic λ-terms are themselves random variables! 1 2 N if M and N are in Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 13

14 Stochastic Lambda Calculus Evidently, this allows us to define term denoting a 50/50 coin flip : flip What about other types of coin flips, i.e., Bernoulli variables? Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 14

15 Stochastic Lambda Calculus Theorem (von Neumann) Suppose p [0, 1] is computable, i.e., there is a λ-term N such that { if the k th digit in the binary expansion of p is 1 N(k) β if the k th digit is 0 Then there is a stochastic λ-term M such that: M p and M 1 p. Proof. Define E to be the following term: ( E λe.λk.flip N(k) e ( succ(k) ) ) ( N(k) e ( succ(k) )). and let M ΘE, which returns with probability p and with 1 p. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 15

16 Stochastic Lambda Calculus Theorem (von Neumann) The same result holds for arbitrary domains, not just and. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 16

17 Stochastic Lambda Calculus Defining Graphical Models For exposition, assume we are working with binary variables, and let T p be a term that returns with probably p, and with probability 1 p. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 17

18 Stochastic Lambda Calculus Defining Graphical Models P(X ) = 0.1 X Y P(Y ) = 0.2 Z P(Z X, Y ) = 0.9 P(Z X, Y ) = 0.8 P(Z X, Y ) = 0.6 P(Z X, Y ) = 0.2 Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 18

19 Stochastic Lambda Calculus Defining Graphical Models X := T 0.1 Y := T 0.2 Z := if (X and Y ) then T 0.9 elif (X and not Y ) then T 0.8 elif (not X and Y ) then T 0.6 elif (not X and not Y ) then T 0.2 Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 19

20 Stochastic Lambda Calculus PCFGs S := NP, VP VP := if T 0.75 then V, NP else V, NP, PP NP := if T 0.7 then det, N else NP, PP PP := P, NP. N := if T 0.02 then cat else... Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 20

21 Stochastic Lambda Calculus Given (meta-)variable names for programs, X 1,..., X n, which we can think of as random variables, we can ask questions such as: P(X i = v)? P(X i = v Y 1 = u 1,..., Y m = u m )?... for an extremely general class of random variables. In principle one could import the same tools on probability-preserving deduction of Suppes, Adams, etc., from Lecture 1 to this setting. But one must be careful, witness Curry s Paradox, etc. (N.B. For more on actual programming languages based on these ideas, viz. Church, etc., see Noah Goodman s class next week.) Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 21

22 Part II: Probabilistic First-Order Logic Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 22

23 Let L be a first-order logical language, given by: a set C of individual constants ; a set V of individual variables, a set P of predicate variables. Terms and formulas of L are defined as usual: ϕ ::= R(t 1,..., t n ) ϕ ϕ ϕ x ϕ x ϕ Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 23

24 Define S L to be the set of sentences of L, i.e., formulas with no free variables, and SL 0 to be the set of quantifier-free sentences of L. As before, a probability on L S L is a function P : L [0, 1], with P(ϕ) = 1, for any first-order tautology ϕ ; P(ϕ ψ) = P(ϕ) + P(ψ), whenever (ϕ ψ). Question: Given a probability P : SL 0 [0, 1], is there a natural extension of P to all of S L, including quantified sentences? (Cf. Markov Logic.) Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 24

25 Question: Given a probability P : SL 0 [0, 1], is there a natural extension of P to all of S L, including quantified sentences? If there are only finitely many constants c such that P ( R(c) ) > 0, then: P ( xr(x) ) = P ( R(c) ) What about in the case where the number of c is infinite? Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 25

26 Example Consider a simple first-order arithmetical language L, with a constant n for each n N +. Let R(x) be a one-place predicate. Define a probability function P : SL 0 [0, 1] on the quantifier-free sentences as follows: P ( R(n) ) = 1/2 n+1, for all n N ; P ( i k R(n i ) ) = i k P ( R(n i ) ). Then, intuitively, P ( xp(x) ) = 1 n=2 2 n = 1 2. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 26

27 Definition (Gaifman s Condition) A probability P : S L [0, 1] satisfies the Gaifman condition if for all formulas with one free variable ϕ(x): or equivalently, P ( x ϕ(x) ) = sup {P ( n ϕ(c i ) ) c 1,..., c n C}, i=1 P ( x ϕ(x) ) = inf {P ( n ϕ(c i ) ) c 1,..., c n C}. i=1 Theorem (Gaifman 1964) Given P : S 0 L [0, 1], there is exactly one extension P of P to all of S L that satisfies the Gaifman condition. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 27

28 Probabilities on Models So far we have been focusing on probability functions P defined on a language L. But we can also start with a probability measure µ over models and induce a probability on formulas. Recall models of first-order languages: M = D, I, γ D is a set of individuals I is a function interpreting predicates, constants, etc. γ is an assignment function for variables. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 28

29 Consider a set of models M = i I {M i }, and σ-algebra E on M. We will require that each set M ϕ := {M M : M = ϕ}, for ϕ S L is measurable, i.e, an element of E. We can define a measure µ : E [0, 1], which induces an obvious probability P µ : S L [0, 1] on our first-order language L: P µ (ϕ) = µ(m ϕ ). It is then easy to show that P µ is a probability in our previous sense. Question: Does P µ always satisfy the Gaifman condition? Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 29

30 Suppose that every element of every domain of every model is named by a constant, according to all interpretation functions. Then: Fact Given µ, the probability P µ satisfies the Gaifman condition. Proof. P µ ( x ϕx) = µ ( {M M : M = x ϕx} ) = µ ( {M M : M = ϕ(c), for some c C} ) = sup {µ{m M : M = } ϕ(c i )} c 1,..., c n C i n ( = sup {P µ ϕ(c i ) ) } c 1,..., c n C i n Note that one may need to use countable additivity in this argument! Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 30

31 First-Order Probability Logic Add probability operators to the first-order language: π(ϕ) and corresponding atomic formulas, for a, b, c,... R, e.g.: aπ(ϕ) 2 + bπ(ψ) = c Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 31

32 We can also express, e.g., certain facts about conditional probability: π(ϕ ψ) 2/3 3π(ϕ ψ) 2π(ψ). Models of this language are tuples: M, E, µ, M M is a set of models with E a σ-algebra over M ; (M, E, µ) is a probability space ; M M is a distinguished model in M. But note that in the background there are also real numbers! Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 32

33 Note on Terminology Beware, we now have three different types of probabilities. We have mostly been using the following terminology: µ(e ) measure of event E, as part of a probability space P(ϕ) meta-language symbol for probability of a sentence ϕ π(ϕ) object language symbol for probability of a sentence ϕ Tomorrow we will add a sentence forming modal operator P r > object language, where P r > ϕ is not a term but a sentence. in the Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 33

34 Language and Interpretation Two sorts of variables: object variables x, y, z,..., and field variables x, y, z,.... Plus field constants 0 and 1 and plus and times. Field terms: t ::= x y 0 1 π(ϕ) t t t + t Then the language is given as follows: ϕ ::= P(x 1,..., x n ) x = y t 1 = t 2 ϕ ϕ ϕ x ϕ x ϕ Interpretation of field terms: [[π(ϕ)]] M,E,µ,M = µ({m M : M = ϕ}) Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 34

35 This is clearly a very expressive language. For instance, all of the probability axioms come out as validities in the object language. If Γ ϕ in this language, that means any probability distribution that satisfies all the probabilistic (and other) requirements in Γ, also satisfies whatever requirement ϕ specifies. One might also like to study maximum entropy inference in this setting. See, e.g., Plaskin (2002). Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 35

36 Complexity In general, the problem of determining validity in this language is undecidable. Indeed, the theory of models in this language is not even axiomatizable. (See Abadi & Halpern 1989.) However, if we assume the domain is finite, it is possible to give an axiomatization, and prove decidability. One can also obtain a complete axiomatization by allowing non-standard reals (see Bacchus 1988). Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 36

37 Axiomatization The axioms and rules of classical first-order logic. The axioms for real closed fields, e.g., that multiplication and addition are commutative and associated, that every odd degree polynomial has a root, etc. (Tarski) ϕ ( π(ϕ) = 1 ), provided the only predicate symbols occurring in ϕ occur only as subformulas of some π(ψ). π(ϕ) 0 π(ϕ) = π(ϕ ψ) + π(ϕ ψ) From ϕ ψ, infer π(ϕ) = π(ψ) x 1... x n y ( y = x 1... y = x n ) Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 37

38 Theorem (Halpern 1990) This logic is sound and complete with respect to probability models of domain size at most n. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 38

39 Another way of curtailing complexity: Still add probability operators to the first-order language: π(ϕ) but corresponding atomic formulas, for a 1,..., a n, b R: a 1 π(ϕ 1 ) a n π(ϕ n ) > b Abbreviations: π(ϕ) π(ψ) > b π(ϕ) + ( 1)π(ψ) > b π(ϕ) > π(ψ) π(ϕ) π(ψ) > 0 π(ϕ) b ( π(ϕ) > b ) π(ϕ) b ( 1)π(ϕ) b ( ) ( ) π(ϕ) = b π(ϕ) b π(ϕ) b Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 39

40 Then the language is given as follows: ϕ ::= P(x 1,..., x n ) a 1 π(ϕ) a n π(ϕ) > b a = b x = y ϕ ϕ ϕ x ϕ x ϕ The crucial truth clause: M, E, µ, M = a 1 π(ϕ 1 ) a n π(ϕ n ) > b iff [[a 1 ]] µ([[ϕ 1 ]]) + + [[a 1 ]] µ([[ϕ n ]]) > b in R Theorem (Halpern 2003) Adding axioms for linear inequalities gives a sound and complete axiomatization for this language. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 40

41 Measures on the Domain This language seem ill-suited for reasoning about what might be called a chance setup, e.g., the probability that a randomly chosen student in Tübingen being German is high. E.g., we should not expect this formula to have high probability: x ( StudentTbg(x) German(x) ) To deal with these kinds of statements, Bacchus (1988) proposed a slightly different language, with operators π x ( ϕ(x) ) > b, meaning, roughly, the probability of a randomly chosen x satisfying ϕ is greater than b. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 41

42 Otherwise the language is just the same as before. Models, however, are simpler: M = D, I, ν D, γ with ν : D [0, 1] a map such that d D ν(d) = 1. The interpretation of a probability subformula π x (ϕ) is given as: [[π x (ϕ)]] M = ν ( {d D : M[d/x] = ϕ} ) The rest of interpretation is as before. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 42

43 Complexity This logic, too, is undecidable and unaxiomatizable (Abadi & Halpern 1989). However, once again, by restricting to models of bounded size, the class becomes axiomatizable. Alternatively, we can restrict the language to linear inequalities and include a truth clause: M = a 1 π x (ϕ 1 ) a n π x (ϕ n ) > b iff [[a 1 ]] [[π x (ϕ 1 )]] + + [[a n ]] [[π x (ϕ n )]] > b in R This system is again axiomatizable. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 43

44 Theorem (Halpern 1990) This class of models of size at most n is axiomatized by the principles and rules of first order logic, those of real closed fields, and: x ϕ ( π x (ϕ) = 1 ) π x (ϕ) 0 π x (ϕ) = π x (ϕ ψ) + π x (ϕ ψ) π x (ϕ) = π y (ϕ[y/x]) From ϕ ψ, infer π x (ϕ) = π x (ψ) x 1... x n y ( y = x 1... y = x n ). Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 44

45 Of course, these two languages (and classes of models) can also be combined, so that one can reason, e.g., about such statements: ( ( ) 1 ) π π x German(x) StudentTbg(x) Combining the two axiomatizations gives completeness for the combined language, again for models of bounded size. See Halpern (1990) for details. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 45

46 Summary and Preview Untyped lambda calculus with a coin flip operation provides a representation language for defining a very rich class of probabilistic processes and models, even if it does not straightforwardly give rise to a logical system as we would typically think of it. There is a canonical way of extending a measure on the quantifier free sentences of a first-order language to all sentences. An important theme is the difference between defining a probability P on a logical language and defining a measure µ on a class of logical models. Today we focused on the latter, including rich first-order languages for talking about these measures. These logics are highly complex. Tomorrow and Friday we will look at much simpler languages for logical reasoning about probability. Wesley Holliday & Thomas Icard: Logic and Probability, Lecture 3: Beyond Boolean Logic 46

Modal Probability Logic

Modal Probability Logic Modal Probability Logic ESSLLI 2014 - Logic and Probability Wes Holliday and Thomas Icard Berkeley and Stanford August 14, 2014 Wes Holliday and Thomas Icard: Modal Probability 1 References M. Fattorosi-Barnaba

More information

Logic and Probability Lecture 1: Probability as Logic

Logic and Probability Lecture 1: Probability as Logic Logic and Probability Lecture 1: Probability as Logic Wesley Holliday & Thomas Icard UC Berkeley & Stanford August 11, 2014 ESSLLI, Tübingen Wesley Holliday & Thomas Icard: Logic and Probability, Lecture

More information

Logic: The Big Picture

Logic: The Big Picture Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving

More information

Part II Logic and Set Theory

Part II Logic and Set Theory Part II Logic and Set Theory Theorems Based on lectures by I. B. Leader Notes taken by Dexter Chua Lent 2015 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

More information

Propositional and Predicate Logic - VII

Propositional and Predicate Logic - VII Propositional and Predicate Logic - VII Petr Gregor KTIML MFF UK WS 2015/2016 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - VII WS 2015/2016 1 / 11 Theory Validity in a theory A theory

More information

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem Michael Beeson The hypotheses needed to prove incompleteness The question immediate arises whether the incompleteness

More information

PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2

PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2 PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 12 September, 2005 Some slides today new, some based on logic 2004 (Nils

More information

Origin in Mathematical Logic

Origin in Mathematical Logic Lambda Calculus Origin in Mathematical Logic Foundation of mathematics was very much an issue in the early decades of 20th century. Cantor, Frege, Russel s Paradox, Principia Mathematica, NBG/ZF Origin

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

03 Review of First-Order Logic

03 Review of First-Order Logic CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of

More information

Basic Algebraic Logic

Basic Algebraic Logic ELTE 2013. September Today Past 1 Universal Algebra 1 Algebra 2 Transforming Algebras... Past 1 Homomorphism 2 Subalgebras 3 Direct products 3 Varieties 1 Algebraic Model Theory 1 Term Algebras 2 Meanings

More information

CHAPTER 2. FIRST ORDER LOGIC

CHAPTER 2. FIRST ORDER LOGIC CHAPTER 2. FIRST ORDER LOGIC 1. Introduction First order logic is a much richer system than sentential logic. Its interpretations include the usual structures of mathematics, and its sentences enable us

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

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

Reasoning with Probabilities. Eric Pacuit Joshua Sack. Outline. Basic probability logic. Probabilistic Epistemic Logic.

Reasoning with Probabilities. Eric Pacuit Joshua Sack. Outline. Basic probability logic. Probabilistic Epistemic Logic. Reasoning with July 28, 2009 Plan for the Course Day 1: Introduction and Background Day 2: s Day 3: Dynamic s Day 4: Reasoning with Day 5: Conclusions and General Issues Probability language Let Φ be a

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

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

185.A09 Advanced Mathematical Logic

185.A09 Advanced Mathematical Logic 185.A09 Advanced Mathematical Logic www.volny.cz/behounek/logic/teaching/mathlog13 Libor Běhounek, behounek@cs.cas.cz Lecture #1, October 15, 2013 Organizational matters Study materials will be posted

More information

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 14 September, 2005 Some slides today new, some based on logic 2004 (Nils Andersen) OUTLINE,

More information

Restricted truth predicates in first-order logic

Restricted truth predicates in first-order logic Restricted truth predicates in first-order logic Thomas Bolander 1 Introduction It is well-known that there exist consistent first-order theories that become inconsistent when we add Tarski s schema T.

More information

Logic Part I: Classical Logic and Its Semantics

Logic Part I: Classical Logic and Its Semantics Logic Part I: Classical Logic and Its Semantics Max Schäfer Formosan Summer School on Logic, Language, and Computation 2007 July 2, 2007 1 / 51 Principles of Classical Logic classical logic seeks to model

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

Introduction to Model Theory

Introduction to Model Theory Introduction to Model Theory Charles Steinhorn, Vassar College Katrin Tent, University of Münster CIRM, January 8, 2018 The three lectures Introduction to basic model theory Focus on Definability More

More information

Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers:

Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers: Bound and Free Variables More valid formulas involving quantifiers: xp(x) x P(x) Replacing P by P, we get: x P(x) x P(x) Therefore x P(x) xp(x) Similarly, we have xp(x) x P(x) x P(x) xp(x) i(i 2 > i) is

More information

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions

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

Propositional and Predicate Logic - XIII

Propositional and Predicate Logic - XIII Propositional and Predicate Logic - XIII Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - XIII WS 2016/2017 1 / 22 Undecidability Introduction Recursive

More information

Herbrand Theorem, Equality, and Compactness

Herbrand Theorem, Equality, and Compactness CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order

More information

Final Exam (100 points)

Final Exam (100 points) Final Exam (100 points) Honor Code: Each question is worth 10 points. There is one bonus question worth 5 points. In contrast to the homework assignments, you may not collaborate on this final exam. You

More information

Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction)

Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction) Overview Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction) Jeremy Avigad Department of Philosophy Carnegie Mellon University avigad@cmu.edu http://andrew.cmu.edu/

More information

Relational Reasoning in Natural Language

Relational Reasoning in Natural Language 1/67 Relational Reasoning in Natural Language Larry Moss ESSLLI 10 Course on Logics for Natural Language Inference August, 2010 Adding transitive verbs the work on R, R, and other systems is joint with

More information

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s Summary Summary Last Lecture Computational Logic Π 1 Γ, x : σ M : τ Γ λxm : σ τ Γ (λxm)n : τ Π 2 Γ N : τ = Π 1 [x\π 2 ] Γ M[x := N] Georg Moser Institute of Computer Science @ UIBK Winter 2012 the proof

More information

20.1 2SAT. CS125 Lecture 20 Fall 2016

20.1 2SAT. CS125 Lecture 20 Fall 2016 CS125 Lecture 20 Fall 2016 20.1 2SAT We show yet another possible way to solve the 2SAT problem. Recall that the input to 2SAT is a logical expression that is the conunction (AND) of a set of clauses,

More information

2. Introduction to commutative rings (continued)

2. Introduction to commutative rings (continued) 2. Introduction to commutative rings (continued) 2.1. New examples of commutative rings. Recall that in the first lecture we defined the notions of commutative rings and field and gave some examples of

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

Part I: Propositional Calculus

Part I: Propositional Calculus Logic Part I: Propositional Calculus Statements Undefined Terms True, T, #t, 1 False, F, #f, 0 Statement, Proposition Statement/Proposition -- Informal Definition Statement = anything that can meaningfully

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

Lecture 1: The arithmetic hierarchy

Lecture 1: The arithmetic hierarchy MODEL THEORY OF ARITHMETIC Lecture 1: The arithmetic hierarchy Tin Lok Wong 8 October, 2014 [These theorems] go a long way to explaining why recursion theory is relevant to the study of models of arithmetic.

More information

Abstract model theory for extensions of modal logic

Abstract model theory for extensions of modal logic Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for

More information

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P. First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable

More information

Completeness for FOL

Completeness for FOL Completeness for FOL Overview Adding Witnessing Constants The Henkin Theory The Elimination Theorem The Henkin Construction Lemma 12 This lemma assures us that our construction of M h works for the atomic

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

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

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

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

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1 CS 70 Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1 Course Outline CS70 is a course on "Discrete Mathematics and Probability for Computer Scientists." The purpose of the course

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

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

Propositional logic. First order logic. Alexander Clark. Autumn 2014 Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and

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

Properties of Relational Logic

Properties of Relational Logic Computational Logic Lecture 8 Properties of Relational Logic Michael Genesereth Autumn 2011 Programme Expressiveness What we can say in First-Order Logic And what we cannot Semidecidability and Decidability

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

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

Recursion Theory. Joost J. Joosten

Recursion Theory. Joost J. Joosten Recursion Theory Joost J. Joosten Institute for Logic Language and Computation University of Amsterdam Plantage Muidergracht 24 1018 TV Amsterdam Room P 3.26, +31 20 5256095 jjoosten@phil.uu.nl www.phil.uu.nl/

More information

CS 4110 Programming Languages & Logics. Lecture 16 Programming in the λ-calculus

CS 4110 Programming Languages & Logics. Lecture 16 Programming in the λ-calculus CS 4110 Programming Languages & Logics Lecture 16 Programming in the λ-calculus 30 September 2016 Review: Church Booleans 2 We can encode TRUE, FALSE, and IF, as: TRUE λx. λy. x FALSE λx. λy. y IF λb.

More information

Logical Closure Properties of Propositional Proof Systems

Logical Closure Properties of Propositional Proof Systems of Logical of Propositional Institute of Theoretical Computer Science Leibniz University Hannover Germany Theory and Applications of Models of Computation 2008 Outline of Propositional of Definition (Cook,

More information

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ Model Theory MARIA MANZANO University of Salamanca, Spain Translated by RUY J. G. B. DE QUEIROZ CLARENDON PRESS OXFORD 1999 Contents Glossary of symbols and abbreviations General introduction 1 xix 1 1.0

More information

Introduction to Metalogic

Introduction to Metalogic Introduction to Metalogic Hans Halvorson September 21, 2016 Logical grammar Definition. A propositional signature Σ is a collection of items, which we call propositional constants. Sometimes these propositional

More information

An Introduction to Modal Logic V

An Introduction to Modal Logic V An Introduction to Modal Logic V Axiomatic Extensions and Classes of Frames Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, November 7 th 2013

More information

Modal logics: an introduction

Modal logics: an introduction Modal logics: an introduction Valentin Goranko DTU Informatics October 2010 Outline Non-classical logics in AI. Variety of modal logics. Brief historical remarks. Basic generic modal logic: syntax and

More information

Modal and temporal logic

Modal and temporal logic Modal and temporal logic N. Bezhanishvili I. Hodkinson C. Kupke Imperial College London 1 / 83 Overview Part II 1 Soundness and completeness. Canonical models. 3 lectures. 2 Finite model property. Filtrations.

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

Positive provability logic

Positive provability logic Positive provability logic Lev Beklemishev Steklov Mathematical Institute Russian Academy of Sciences, Moscow November 12, 2013 Strictly positive modal formulas The language of modal logic extends that

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy Reasoning in First Order Logic FBK-IRST, Trento, Italy April 12, 2013 Reasoning tasks in FOL Model checking Question: Is φ true in the interpretation I with the assignment a? Answer: Yes if I = φ[a]. No

More information

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT I LL TALK ABOUT Propositional Logic Terminology, Satisfiability, Decision Procedure First-Order Logic Terminology, Background Theories Satisfiability

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

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

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

Large Numbers, Busy Beavers, Noncomputability and Incompleteness Large Numbers, Busy Beavers, Noncomputability and Incompleteness Food For Thought November 1, 2007 Sam Buss Department of Mathematics U.C. San Diego PART I Large Numbers, Busy Beavers, and Undecidability

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

The Countable Henkin Principle

The Countable Henkin Principle The Countable Henkin Principle Robert Goldblatt Abstract. This is a revised and extended version of an article which encapsulates a key aspect of the Henkin method in a general result about the existence

More information

1 PSPACE-Completeness

1 PSPACE-Completeness CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic

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

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them: Completeness in the Monadic Predicate Calculus We have a system of eight rules of proof. Let's list them: PI At any stage of a derivation, you may write down a sentence φ with {φ} as its premiss set. TC

More information

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics

More information

Classical First-Order Logic

Classical First-Order Logic Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09

More information

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

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014 John Nachbar Washington University December 26, 2014 Logic and Proofs 1 1 Overview. These notes provide an informal introduction to some basic concepts in logic. For a careful exposition, see, for example,

More information

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University Formal Epistemology: Lecture Notes Horacio Arló-Costa Carnegie Mellon University hcosta@andrew.cmu.edu Logical preliminaries Let L 0 be a language containing a complete set of Boolean connectives, including

More information

Neighborhood Semantics for Modal Logic Lecture 3

Neighborhood Semantics for Modal Logic Lecture 3 Neighborhood Semantics for Modal Logic Lecture 3 Eric Pacuit ILLC, Universiteit van Amsterdam staff.science.uva.nl/ epacuit August 15, 2007 Eric Pacuit: Neighborhood Semantics, Lecture 3 1 Plan for the

More information

Lecture 1: Logical Foundations

Lecture 1: Logical Foundations Lecture 1: Logical Foundations Zak Kincaid January 13, 2016 Logics have two components: syntax and semantics Syntax: defines the well-formed phrases of the language. given by a formal grammar. Typically

More information

Algebras with finite descriptions

Algebras with finite descriptions Algebras with finite descriptions André Nies The University of Auckland July 19, 2005 Part 1: FA-presentability A countable structure in a finite signature is finite-automaton presentable (or automatic)

More information

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method Overview CS389L: Automated Logical Reasoning Lecture 7: Validity Proofs and Properties of FOL Agenda for today: Semantic argument method for proving FOL validity Işıl Dillig Important properties of FOL

More information

Categories, Proofs and Programs

Categories, Proofs and Programs Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories

More information

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

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

FINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS

FINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS FINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS ARTEM CHERNIKOV 1. Intro Motivated by connections with computational complexity (mostly a part of computer scientice today).

More information

5. Peano arithmetic and Gödel s incompleteness theorem

5. Peano arithmetic and Gödel s incompleteness theorem 5. Peano arithmetic and Gödel s incompleteness theorem In this chapter we give the proof of Gödel s incompleteness theorem, modulo technical details treated in subsequent chapters. The incompleteness theorem

More information

Lecture 2. Lambda calculus. Iztok Savnik, FAMNIT. March, 2018.

Lecture 2. Lambda calculus. Iztok Savnik, FAMNIT. March, 2018. Lecture 2 Lambda calculus Iztok Savnik, FAMNIT March, 2018. 1 Literature Henk Barendregt, Erik Barendsen, Introduction to Lambda Calculus, March 2000. Lambda calculus Leibniz had as ideal the following

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

Lecture 3. Lambda calculus. Iztok Savnik, FAMNIT. October, 2015.

Lecture 3. Lambda calculus. Iztok Savnik, FAMNIT. October, 2015. Lecture 3 Lambda calculus Iztok Savnik, FAMNIT October, 2015. 1 Literature Henk Barendregt, Erik Barendsen, Introduction to Lambda Calculus, March 2000. Lambda calculus Leibniz had as ideal the following

More information

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

CMPSCI 601: Tarski s Truth Definition Lecture 15. where @ CMPSCI 601: Tarski s Truth Definition Lecture 15! "$#&%(') *+,-!".#/%0'!12 43 5 6 7 8:9 4; 9 9 < = 9 = or 5 6?>A@B!9 2 D for all C @B 9 CFE where ) CGE @B-HI LJKK MKK )HG if H ; C if H @ 1 > > > Fitch

More information

Origin in Mathematical Logic

Origin in Mathematical Logic Lambda Calculus Origin in Mathematical Logic Foundation of mathematics was very much an issue in the early decades of 20th century. Cantor, Frege, Russel s Paradox, Principia Mathematica, NBG/ZF The Combinatory

More information

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION KRIPKE S THEORY OF TRUTH RICHARD G HECK, JR 1. INTRODUCTION The purpose of this note is to give a simple, easily accessible proof of the existence of the minimal fixed point, and of various maximal fixed

More information

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:

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: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

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

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic Introduction to EF-games Inexpressivity results for first-order logic Normal forms for first-order logic Algorithms and complexity for specific classes of structures General complexity bounds Preliminaries

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

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents

More information

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

CS 2800: Logic and Computation Fall 2010 (Lecture 13) CS 2800: Logic and Computation Fall 2010 (Lecture 13) 13 October 2010 1 An Introduction to First-order Logic In Propositional(Boolean) Logic, we used large portions of mathematical language, namely those

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg

More information