Propositional and Predicate Logic

Size: px
Start display at page:

Download "Propositional and Predicate Logic"

Transcription

1 Formal Verification of Software Propositional and Predicate Logic Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU B. Beckert: Formal Verification of Software p.1

2 Propositional Logic: Syntax Special symbols ( ) B. Beckert: Formal Verification of Software p.2

3 Propositional Logic: Syntax Special symbols ( ) Signature Propositional variables Σ = {p 0, p 1,...} B. Beckert: Formal Verification of Software p.2

4 Propositional Logic: Syntax Special symbols ( ) Signature Propositional variables Σ = {p 0, p 1,...} Formulas The propositional variables p Σ are formulas If A, B are formulas, then A (A B) (A B) (A B) (A B) are formulas B. Beckert: Formal Verification of Software p.2

5 Propositional Logic: Unified Notation Introduced by Smullyan, 1968 B. Beckert: Formal Verification of Software p.3

6 Propositional Logic: Unified Notation Introduced by Smullyan, 1968 Conjunctive formulas Type α A (A B) (A B) (A B) B. Beckert: Formal Verification of Software p.3

7 Propositional Logic: Unified Notation Introduced by Smullyan, 1968 Conjunctive formulas Type α A (A B) (A B) (A B) Disjunctive formulas Type β (A B) (A B) (A B) B. Beckert: Formal Verification of Software p.3

8 Propositional Logic: Unified Notation Non-literal formulas and their corresponding logical sub-formulas α α 1 α 2 A B A B (A B) A B (A B) A B A A A B. Beckert: Formal Verification of Software p.4

9 Propositional Logic: Unified Notation Non-literal formulas and their corresponding logical sub-formulas α α 1 α 2 A B A B (A B) A B (A B) A B β β 1 β 2 (A B) A B A B A B A B A B A A A B. Beckert: Formal Verification of Software p.4

10 Propositional Logic: Semantics Interpretation Function I : Σ {true, false} B. Beckert: Formal Verification of Software p.5

11 Propositional Logic: Semantics Interpretation Function I : Σ {true, false} Valuation Extension of interpretation to formulas as follows: val I (p) = I(p) val I ( p) = true false if I(p) = false if I(p) = true B. Beckert: Formal Verification of Software p.5

12 Propositional Logic: Semantics val I (α) = true false if val I (α 1 ) = true and val I (α 2 ) = true if val I (α 1 ) = false or val I (α 2 ) = false B. Beckert: Formal Verification of Software p.6

13 Propositional Logic: Semantics val I (α) = val I (β) = true false true false if val I (α 1 ) = true and val I (α 2 ) = true if val I (α 1 ) = false or val I (α 2 ) = false if val I (β 1 ) = true or val I (β 2 ) = true if val I (β 1 ) = false and val I (β 2 ) = false B. Beckert: Formal Verification of Software p.6

14 Propositional Logic: Semantics val I (A B) = true false if val I (A) = val I (B) if val I (A) val I (B) B. Beckert: Formal Verification of Software p.7

15 Predicate Logic: Syntax Additional special symbols, B. Beckert: Formal Verification of Software p.8

16 Predicate Logic: Syntax Additional special symbols, Object variables Var = {x 0, x 1,...} B. Beckert: Formal Verification of Software p.8

17 Predicate Logic: Syntax Additional special symbols, Object variables Var = {x 0, x 1,...} Signature Triple Σ = F Σ, P Σ, α Σ consisting of set F Σ of functions symbols set P Σ of predicate symbols function α Σ : F Σ P Σ N assigning aritys to function and predicate symbols B. Beckert: Formal Verification of Software p.8

18 Predicate Logic: Syntax Terms variables x Var are terms if f F Σ, α Σ ( f ) = n, and t 1,..., t n terms, then f (t 1,..., t n ) is a term B. Beckert: Formal Verification of Software p.9

19 Predicate Logic: Syntax Terms variables x Var are terms if f F Σ, α Σ ( f ) = n, and t 1,..., t n terms, then f (t 1,..., t n ) is a term Atoms If p P Σ, α Σ (p) = n, and t 1,..., t n terms, then p(t 1,..., t n ) is an atom B. Beckert: Formal Verification of Software p.9

20 Predicate Logic: Syntax Formulas Atoms are formulas If A, B are formulas, x Var, then A, (A B), (A B), (A B), (A B), xa, xa are formulas B. Beckert: Formal Verification of Software p.10

21 Predicate Logic: Syntax Formulas Atoms are formulas If A, B are formulas, x Var, then A, (A B), (A B), (A B), (A B), xa, xa are formulas Literals If A is an atom, then A and A are literals B. Beckert: Formal Verification of Software p.10

22 Example Signature Σ = {0, a, b, f }, {in_iv, leq}, α with α(0) = α(a) = α(b) = 0 α( f ) = 1 α(leq) = 2 α(in_iv) = 3 (in interval) B. Beckert: Formal Verification of Software p.11

23 Example Signature Σ = {0, a, b, f }, {in_iv, leq}, α with α(0) = α(a) = α(b) = 0 α( f ) = 1 α(leq) = 2 α(in_iv) = 3 (in interval) Formula φ = leq(y, x) }{{} Atom z ( leq(z, x) leq(y, z)) }{{} Scope of z B. Beckert: Formal Verification of Software p.11

24 Predicate Logic: Unified Notation Extension of unified notation for propositional logic Universal formulas Type γ xa xa B. Beckert: Formal Verification of Software p.12

25 Predicate Logic: Unified Notation Extension of unified notation for propositional logic Universal formulas Type γ xa xa Existential formulas Type δ xa xa B. Beckert: Formal Verification of Software p.12

26 Predicate Logic: Unified Notation γ- and δ-formulas and their corresponding logical sub-formulas γ γ 1 (x) δ δ 1 (x) xa(x) A(x) xa(x) A(x) xa(x) A(x) xa(x) A(x) B. Beckert: Formal Verification of Software p.13

27 Predicate Logic: Semantics Interpretation A pair D = D, I where D an arbitrary non-empty set, the universe I an interpretation function for f F Σ : I( f ) : D α( f ) D for p P Σ : I(p) : D α(p) {true, false} B. Beckert: Formal Verification of Software p.14

28 Predicate Logic: Semantics Interpretation A pair D = D, I where D an arbitrary non-empty set, the universe I an interpretation function for f F Σ : I( f ) : D α( f ) D for p P Σ : I(p) : D α(p) {true, false} Variable assignment A function λ : Var D B. Beckert: Formal Verification of Software p.14

29 Predicate Logic: Semantics Valuation Extension of interpretation and variable assignment to formulas val D,λ (x) = λ(x) for x Var val D,λ ( f (t 1,..., t n )) = I( f )(val D,λ (t 1 ),..., val D,λ (t n )) B. Beckert: Formal Verification of Software p.15

30 Predicate Logic: Semantics Valuation Extension of interpretation and variable assignment to formulas val D,λ (x) = λ(x) for x Var val D,λ ( f (t 1,..., t n )) = I( f )(val D,λ (t 1 ),..., val D,λ (t n )) val D,λ (p(t 1,..., t n )) = I(p)(val D,λ (t 1 ),..., val D,λ (t n )) true if val D,λ d val D,λ ( xa) = x (A) = true for all d D false otherwise true if val D,λ d val D,λ ( xa) = x (A) = true for some d D false otherwise val D,λ defined for propositional operators in the same way as val I. B. Beckert: Formal Verification of Software p.15

31 Predicate Logic: Semantics Example D = R I(0) = 0 I(a) = 1 I(b) = 1 I( f ) = R R x x 2 I(leq) = true iff x R y I(in_iv) = true iff x [a, b] B. Beckert: Formal Verification of Software p.16

32 Predicate Logic: Semantics Model An interpretation D is model of a set Φ of formulas iff val D,λ (A) = true for all λ and all A Φ. Notation: D Φ B. Beckert: Formal Verification of Software p.17

33 Predicate Logic: Semantics Model An interpretation D is model of a set Φ of formulas iff val D,λ (A) = true for all λ and all A Φ. Notation: D Φ Satisfiable Φ ist satisfiable iff there are an interpretation D and a variable assignment λ s.t. val D,λ (A) = true for all A Φ B. Beckert: Formal Verification of Software p.17

34 Predicate Logic: Semantics Model An interpretation D is model of a set Φ of formulas iff val D,λ (A) = true for all λ and all A Φ. Notation: D Φ Satisfiable Φ ist satisfiable iff there are an interpretation D and a variable assignment λ s.t. val D,λ (A) = true for all A Φ Validity A is valid iff all interpretations are a model of A B. Beckert: Formal Verification of Software p.17

35 Predicate Logic: Semantics Consequence A formula A is a consequence of Φ iff all models of Φ are models of A as well Notation: Φ A B. Beckert: Formal Verification of Software p.18

36 Predicate Logic: Semantics Consequence A formula A is a consequence of Φ iff all models of Φ are models of A as well Notation: Φ A Equivalent formulas Two formulas are equivalent iff they are consequences of each other B. Beckert: Formal Verification of Software p.18

37 Predicate Logic: Semantics Consequence A formula A is a consequence of Φ iff all models of Φ are models of A as well Notation: Φ A Equivalent formulas Two formulas are equivalent iff they are consequences of each other Satisfiability equivalent formulas Two formulas are satisfiability equivalent iff they are either both satisfiable or both unsatisfiable B. Beckert: Formal Verification of Software p.18

38 Substitutions Substitution Function σ : Var Term Written as: {x 1 t 1,..., x n t n } where σ(x) = t i x if x = x i for 1 i n otherwise B. Beckert: Formal Verification of Software p.19

39 Substitutions Substitution Function σ : Var Term Written as: {x 1 t 1,..., x n t n } where σ(x) = t i x if x = x i for 1 i n otherwise Extension to terms and formulas By replacing all free occurrences of variables x by σ(x) B. Beckert: Formal Verification of Software p.19

40 Substitutions Example: φ = leq(y, x) z( leq(z, x) leq(y, z)) σ = {x a, y w, z c} φσ = leq(w, a) z( leq(z, a) leq(w, z)) B. Beckert: Formal Verification of Software p.20

41 Substitutions Example: φ = leq(y, x) z( leq(z, x) leq(y, z)) σ = {x a, y w, z c} φσ = leq(w, a) z( leq(z, a) leq(w, z)) Note Substitution forbidden in cases such as: φ as above and σ = {y f (z)} B. Beckert: Formal Verification of Software p.20

42 Typed Signatures Definition A typed Signature is a tuple Σ = (S,, F, P, α), where S is a finite set of types (or sorts) is a partial ordering on S F, P are sets of function and predicate symbols (as before) α : F P S assigns argument and domain types to function and predicate symbols B. Beckert: Formal Verification of Software p.21

43 Typed Signatures The function α α( f ) = Z 1... Z n Z means: f is a symbol for functions assigning to n-tuples of elements of type Z 1... Z n an element of type Z α(p) = Z 1,..., Z n means: p is a symbol for relations on n-tuples of elements of types Z 1,..., Z n B. Beckert: Formal Verification of Software p.22

44 Typed Signatures The function α α( f ) = Z 1... Z n Z means: f is a symbol for functions assigning to n-tuples of elements of type Z 1... Z n an element of type Z α(p) = Z 1,..., Z n means: p is a symbol for relations on n-tuples of elements of types Z 1,..., Z n Variables are typed as well For each type Z S there is an infinite set of variables of type Z B. Beckert: Formal Verification of Software p.22

45 Typed Signatures: Terms If x is a variable of type Z, then x is a term of type Z If t 1,..., t n are terms of types Y 1,..., Y n f is a functions symbol with α( f ) = Z 1 Z n Z Y i Z i for all 1 i n then f (t 1,..., t n ) is a term of type Z. B. Beckert: Formal Verification of Software p.23

46 Typed Signatures: Formulas If t 1,..., t n are terms with types Y 1,..., Y n p is a predicate symbol α(p) = Z 1 Z n Y i Z i for all 1 i n then p(t 1,..., t n ) is a typed (or well-sorted) formula B. Beckert: Formal Verification of Software p.24

47 Typed Signatures: Formulas If t 1,..., t n are terms with types Y 1,..., Y n p is a predicate symbol α(p) = Z 1 Z n Y i Z i for all 1 i n then p(t 1,..., t n ) is a typed (or well-sorted) formula If t, s are terms of sorts X and Y with X Y or Y X, then t. = s is a typed formula B. Beckert: Formal Verification of Software p.24

48 Typed Signatures: Formulas If t 1,..., t n are terms with types Y 1,..., Y n p is a predicate symbol α(p) = Z 1 Z n Y i Z i for all 1 i n then p(t 1,..., t n ) is a typed (or well-sorted) formula If t, s are terms of sorts X and Y with X Y or Y X, then t. = s is a typed formula If A, B are typed formulas, then so are A (A B) (A B) (A B) B. Beckert: Formal Verification of Software p.24

49 Typed Signatures: Formulas If t 1,..., t n are terms with types Y 1,..., Y n p is a predicate symbol α(p) = Z 1 Z n Y i Z i for all 1 i n then p(t 1,..., t n ) is a typed (or well-sorted) formula If t, s are terms of sorts X and Y with X Y or Y X, then t. = s is a typed formula If A, B are typed formulas, then so are A (A B) (A B) (A B) If A is a typed formula and x is a typed variable, then are typed formulas xa xa B. Beckert: Formal Verification of Software p.24

50 Typed Interpretations Given a signature Σ = (S,, F, P, α) Interpretation A pair (D, I) such that {D Z Z S} is a family of non-empty sets with D = S {D Z Z S} D Z1 D Z2 if Z 1 Z 2 I( f ) : D Z1 D Zn D Z if α( f ) = Z 1 Z n Z I(p) D Z1 D Zn if α(p) = Z 1 Z n B. Beckert: Formal Verification of Software p.25

51 Typed Substitutions Typed substitution A substitution is well-sorted if for each variable x, the type of the term σ(x) is a sub-type of the type of x B. Beckert: Formal Verification of Software p.26

52 Special Type Structures A type structure (S, ) is discrete, in case Z 1 Z 2 only if Z 1 = Z 2 B. Beckert: Formal Verification of Software p.27

53 Special Type Structures A type structure (S, ) is discrete, in case Z 1 Z 2 only if Z 1 = Z 2 a tree structure, in case U Z 1 and U Z 2 implies Z 2 Z 1 oder Z 1 Z 2 B. Beckert: Formal Verification of Software p.27

54 Special Type Structures A type structure (S, ) is discrete, in case Z 1 Z 2 only if Z 1 = Z 2 a tree structure, in case U Z 1 and U Z 2 implies Z 2 Z 1 oder Z 1 Z 2 a lattice, in case that for any two sorts Z 1, Z 2 there is an infimum U, i.e. U Z 1 and U Z 2 W U for every sort W S with W Z 1 and W Z 2 B. Beckert: Formal Verification of Software p.27

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

Fundamentals of Software Engineering

Fundamentals of Software Engineering Fundamentals of Software Engineering First-Order Logic Ina Schaefer Institute for Software Systems Engineering TU Braunschweig, Germany Slides by Wolfgang Ahrendt, Richard Bubel, Reiner Hähnle (Chalmers

More information

Fundamentals of Software Engineering

Fundamentals of Software Engineering Fundamentals of Software Engineering First-Order Logic Ina Schaefer Institute for Software Systems Engineering TU Braunschweig, Germany Slides by Wolfgang Ahrendt, Richard Bubel, Reiner Hähnle (Chalmers

More information

Software Engineering using Formal Methods

Software Engineering using Formal Methods Software Engineering using Formal Methods First-Order Logic Wolfgang Ahrendt 26th September 2013 SEFM: First-Order Logic 130926 1 / 53 Install the KeY-Tool... KeY used in Friday s exercise Requires: Java

More information

First-Order Predicate Logic. Basics

First-Order Predicate Logic. Basics First-Order Predicate Logic Basics 1 Syntax of predicate logic: terms A variable is a symbol of the form x i where i = 1, 2, 3.... A function symbol is of the form fi k where i = 1, 2, 3... und k = 0,

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2006 Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction

More information

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation Outline Formale Methoden der Informatik First-Order Logic for Forgetters Uwe Egly Vienna University of Technology Institute of Information Systems Knowledge-Based Systems Group Motivation Syntax of PL1

More information

First-Order Logic. Chapter Overview Syntax

First-Order Logic. Chapter Overview Syntax Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts

More information

A Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming

A Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming A Little Logic International Center for Computational Logic Technische Universität Dresden Germany Propositional Logic Satisfiability Problems Solving Sudokus First Order Logic Logic Programming A Little

More information

Formal Methods for Java

Formal Methods for Java Formal Methods for Java Lecture 12: Soundness of Sequent Calculus Jochen Hoenicke Software Engineering Albert-Ludwigs-University Freiburg June 12, 2017 Jochen Hoenicke (Software Engineering) Formal Methods

More information

Introduction to first-order logic:

Introduction to first-order logic: Introduction to first-order logic: First-order structures and languages. Terms and formulae in first-order logic. Interpretations, truth, validity, and satisfaction. Valentin Goranko DTU Informatics September

More information

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

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

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

Formal Methods for Java

Formal Methods for Java Formal Methods for Java Lecture 20: Sequent Calculus Jochen Hoenicke Software Engineering Albert-Ludwigs-University Freiburg January 15, 2013 Jochen Hoenicke (Software Engineering) Formal Methods for Java

More information

First Order Logic (FOL) 1 znj/dm2017

First Order Logic (FOL) 1   znj/dm2017 First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.

More information

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted

More information

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω 1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the

More information

Introduction to Artificial Intelligence. Logical Agents

Introduction to Artificial Intelligence. Logical Agents Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledge-based

More information

07 Equational Logic and Algebraic Reasoning

07 Equational Logic and Algebraic Reasoning CAS 701 Fall 2004 07 Equational Logic and Algebraic Reasoning Instructor: W. M. Farmer Revised: 17 November 2004 1 What is Equational Logic? Equational logic is first-order logic restricted to languages

More information

Predicate Calculus - Semantics 1/4

Predicate Calculus - Semantics 1/4 Predicate Calculus - Semantics 1/4 Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1 Introduction to predicate calculus (1/2) Propositional logic (sentence logic) dealt quite satisfactorily with sentences

More information

GS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen Anthony Hall

GS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen   Anthony Hall GS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen www.cs.ucl.ac.uk/staff/j.bowen/gs03 Anthony Hall GS03 W1 L3 Predicate Logic 12 January 2007 1 Overview The need for extra structure

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

First-Order Logic (FOL)

First-Order Logic (FOL) First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary

More information

1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology

More information

Comp487/587 - Boolean Formulas

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

More information

Introduction to Logic in Computer Science: Autumn 2007

Introduction to Logic in Computer Science: Autumn 2007 Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Tableaux for First-order Logic The next part of

More information

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2) Syntax of FOL Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam The syntax of a language defines the way in which

More information

Notes. Corneliu Popeea. May 3, 2013

Notes. Corneliu Popeea. May 3, 2013 Notes Corneliu Popeea May 3, 2013 1 Propositional logic Syntax We rely on a set of atomic propositions, AP, containing atoms like p, q. A propositional logic formula φ Formula is then defined by the following

More information

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

Notes on Satisfiability-Based Problem Solving. First Order Logic. David Mitchell October 23, 2013 Notes on Satisfiability-Based Problem Solving First Order Logic David Mitchell mitchell@cs.sfu.ca October 23, 2013 Preliminary draft. Please do not distribute. Corrections and suggestions welcome. In this

More information

AAA615: Formal Methods. Lecture 2 First-Order Logic

AAA615: Formal Methods. Lecture 2 First-Order Logic AAA615: Formal Methods Lecture 2 First-Order Logic Hakjoo Oh 2017 Fall Hakjoo Oh AAA615 2017 Fall, Lecture 2 September 24, 2017 1 / 29 First-Order Logic An extension of propositional logic with predicates,

More information

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4 INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4 Neil D. Jones DIKU 2005 Some slides today new, some based on logic 2004 (Nils Andersen), some based on kernebegreber (NJ 2005) PREDICATE LOGIC:

More information

Reasoning with Quantified Boolean Formulas

Reasoning with Quantified Boolean Formulas Reasoning with Quantified Boolean Formulas Martina Seidl Institute for Formal Models and Verification Johannes Kepler University Linz 1 What are QBF? Quantified Boolean formulas (QBF) are formulas of propositional

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

ECE473 Lecture 15: Propositional Logic

ECE473 Lecture 15: Propositional Logic ECE473 Lecture 15: Propositional Logic Jeffrey Mark Siskind School of Electrical and Computer Engineering Spring 2018 Siskind (Purdue ECE) ECE473 Lecture 15: Propositional Logic Spring 2018 1 / 23 What

More information

CS156: The Calculus of Computation Zohar Manna Winter 2010

CS156: The Calculus of Computation Zohar Manna Winter 2010 Page 3 of 35 Page 4 of 35 quantifiers CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 2: First-Order Logic (FOL) existential quantifier x. F [x] there exists an x such that F [x] Note:

More information

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam Logic and Modelling Introduction to Predicate Logic Jörg Endrullis VU University Amsterdam Predicate Logic In propositional logic there are: propositional variables p, q, r,... that can be T or F In predicate

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

Web Science & Technologies University of Koblenz Landau, Germany. Models in First Order Logics

Web Science & Technologies University of Koblenz Landau, Germany. Models in First Order Logics Web Science & Technologies University of Koblenz Landau, Germany Models in First Order Logics Overview First-order logic. Syntax and semantics. Herbrand interpretations; Clauses and goals; Datalog. 2 of

More information

CS 730/730W/830: Intro AI

CS 730/730W/830: Intro AI CS 730/730W/830: Intro AI 1 handout: slides 730W journal entries were due Wheeler Ruml (UNH) Lecture 9, CS 730 1 / 16 Logic First-Order Logic The Joy of Power Wheeler Ruml (UNH) Lecture 9, CS 730 2 / 16

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

Automated Synthesis of Tableau Calculi

Automated Synthesis of Tableau Calculi Automated Synthesis of Tableau Calculi Renate A. Schmidt 1 and Dmitry Tishkovsky 1 School of Computer Science, The University of Manchester Abstract This paper presents a method for synthesising sound

More information

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

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

More information

Part 2: First-Order Logic

Part 2: First-Order Logic Part 2: First-Order Logic First-order logic formalizes fundamental mathematical concepts is expressive (Turing-complete) is not too expressive (e. g. not axiomatizable: natural numbers, uncountable sets)

More information

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate

More information

02 Propositional Logic

02 Propositional Logic SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or

More information

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

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1 Přednáška 12 Důkazové kalkuly Kalkul Hilbertova typu 11/29/2006 Hilbertův kalkul 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: A. a language B. a set of axioms C. a set of

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

Language of Propositional Logic

Language of Propositional Logic Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called

More information

CSE507. Satisfiability Modulo Theories. Computer-Aided Reasoning for Software. Emina Torlak

CSE507. Satisfiability Modulo Theories. Computer-Aided Reasoning for Software. Emina Torlak Computer-Aided Reasoning for Software CSE507 Satisfiability Modulo Theories courses.cs.washington.edu/courses/cse507/18sp/ Emina Torlak emina@cs.washington.edu Today Last lecture Practical applications

More information

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas)

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas) FOL Query Evaluation Giuseppe De Giacomo Università di Roma La Sapienza Corso di Seminari di Ingegneria del Software: Data and Service Integration Laurea Specialistica in Ingegneria Informatica Università

More information

First Order Logic: Syntax and Semantics

First Order Logic: Syntax and Semantics CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday

More information

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. Motivation 1. Variables, quantifiers and predicates 2. Syntax 1. Terms and formulas 2. Quantifiers, scope

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

Chapter 4: Classical Propositional Semantics

Chapter 4: Classical Propositional Semantics Chapter 4: Classical Propositional Semantics Language : L {,,, }. Classical Semantics assumptions: TWO VALUES: there are only two logical values: truth (T) and false (F), and EXTENSIONALITY: the logical

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 Resolution Part 1. Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence

Propositional Resolution Part 1. Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence SYNTAX dictionary Literal any propositional VARIABLE a or negation of a variable a, a VAR, Example

More information

Computer-Aided Verification

Computer-Aided Verification Computer-Aided Verification CS745/ECE745 Dr. Borzoo Bonakdarpour University of Waterloo (Fall 2013) Predicate Logic and Theorem Proving (Some Slides Adapted from Nancy Day s Lectures) Computer-Aided Verification

More information

CTL-RP: A Computational Tree Logic Resolution Prover

CTL-RP: A Computational Tree Logic Resolution Prover 1 -RP: A Computational Tree Logic Resolution Prover Lan Zhang a,, Ullrich Hustadt a and Clare Dixon a a Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK E-mail: {Lan.Zhang,

More information

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig. 22c:145 Artificial Intelligence First-Order Logic Readings: Chapter 8 of Russell & Norvig. Einstein s Puzzle in Logic We used propositinal variables to specify everything: x 1 = house #1 is red ; x 2 =

More information

Resolution for mixed Post logic

Resolution for mixed Post logic Resolution for mixed Post logic Vladimir Komendantsky Institute of Philosophy of Russian Academy of Science, Volkhonka 14, 119992 Moscow, Russia vycom@pochtamt.ru Abstract. In this paper we present a resolution

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

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Propositional Resolution Introduction

Propositional Resolution Introduction Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cesare Tinelli tinelli@cs.uiowa.edu Department of Computer Science The University of Iowa Report No. 02-03 May 2002 i Cooperation

More information

A Schütte-Tait style cut-elimination proof for first-order Gödel logic

A Schütte-Tait style cut-elimination proof for first-order Gödel logic A Schütte-Tait style cut-elimination proof for first-order Gödel logic Matthias Baaz and Agata Ciabattoni Technische Universität Wien, A-1040 Vienna, Austria {agata,baaz}@logic.at Abstract. We present

More information

Propositional and Predicate Logic - II

Propositional and Predicate Logic - II Propositional and Predicate Logic - II Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - II WS 2016/2017 1 / 16 Basic syntax Language Propositional logic

More information

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cesare Tinelli (tinelli@cs.uiowa.edu) Department of Computer Science The University of Iowa Iowa City, IA, USA Abstract. We propose

More information

A Tableau Calculus for Minimal Modal Model Generation

A Tableau Calculus for Minimal Modal Model Generation M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model

More information

Theory of Computer Science

Theory of Computer Science Theory of Computer Science B3. Predicate Logic I Malte Helmert University of Basel March 7, 2016 Motivation Limits of Propositional Logic group axioms for G, and neutral element e: 1 For all x, y, z G,

More information

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees Karsten Lehmann a, Rafael Peñaloza b a Optimisation Research Group, NICTA Artificial Intelligence Group, Australian National

More information

Reasoning Under Uncertainty: Introduction to Probability

Reasoning Under Uncertainty: Introduction to Probability Reasoning Under Uncertainty: Introduction to Probability CPSC 322 Lecture 23 March 12, 2007 Textbook 9 Reasoning Under Uncertainty: Introduction to Probability CPSC 322 Lecture 23, Slide 1 Lecture Overview

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Chapter 2: Basic Notions of Predicate Logic

Chapter 2: Basic Notions of Predicate Logic 2. Basic Notions of Predicate Logic 2-1 Deductive Databases and Logic Programming (Winter 2009/2010) Chapter 2: Basic Notions of Predicate Logic Signature, Formula Interpretation, Model Implication, Consistency,

More information

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26)

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26) Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/26) Propositional Logic - algorithms Complete calculi for deciding logical

More information

A Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35

A Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35 EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2014 A Logic Primer Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 144/244,

More information

Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics

Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics Introduction Arnd Poetzsch-Heffter Software Technology Group Fachbereich Informatik Technische Universität Kaiserslautern Sommersemester 2010 Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich

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

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

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19 PROPOSITIONAL LOGIC VL Logik: WS 2018/19 (Version 2018.2) Martina Seidl (martina.seidl@jku.at), Armin Biere (biere@jku.at) Institut für Formale Modelle und Verifikation BOX Game: Rules 1. The game board

More information

Deductive Verification

Deductive Verification Deductive Verification Mooly Sagiv Slides from Zvonimir Rakamaric First-Order Logic A formal notation for mathematics, with expressions involving Propositional symbols Predicates Functions and constant

More information

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) First-Order Theorem Proving and Vampire Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) Outline Introduction First-Order Logic and TPTP Inference Systems

More information

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims Introduction INTRODUCTION TO LOGIC 2 Syntax and Semantics of Propositional Logic Volker Halbach In what follows I look at some formal languages that are much simpler than English and define validity of

More information

CHAPTER 10. Predicate Automated Proof Systems

CHAPTER 10. Predicate Automated Proof Systems CHAPTER 10 ch10 Predicate Automated Proof Systems We define and discuss here a Rasiowa and Sikorski Gentzen style proof system QRS for classical predicate logic. The propositional version of it, the RS

More information

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

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19. Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

More information

Logic: Propositional Logic (Part I)

Logic: Propositional Logic (Part I) Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.

More information

A Logic Primer. Stavros Tripakis University of California, Berkeley

A Logic Primer. Stavros Tripakis University of California, Berkeley EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2015 A Logic Primer Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 144/244,

More information

Propositional and Predicate Logic - V

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

More information

Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST

Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST moonzoo@cs.kaist.ac.kr http://pswlab.kaist.ac.kr/courses/cs402-07 1 Formal construction is explained in two steps

More information

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Description Logics. Foundations of Propositional Logic.   franconi. Enrico Franconi (1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge

More information

Normal Forms of Propositional Logic

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

More information

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

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

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

More information

Predicate Calculus - Syntax

Predicate Calculus - Syntax Predicate Calculus - Syntax Lila Kari University of Waterloo Predicate Calculus - Syntax CS245, Logic and Computation 1 / 26 The language L pred of Predicate Calculus - Syntax L pred, the formal language

More information

An Abstract Decision Procedure for a Theory of Inductive Data Types

An Abstract Decision Procedure for a Theory of Inductive Data Types An Abstract Decision Procedure for a Theory of Inductive Data Types lark Barrett Igor Shikanian Department of omputer Science ourant Institute of Mathematical Sciences New York University esare Tinelli

More information

Reasoning Under Uncertainty: Introduction to Probability

Reasoning Under Uncertainty: Introduction to Probability Reasoning Under Uncertainty: Introduction to Probability CPSC 322 Uncertainty 1 Textbook 6.1 Reasoning Under Uncertainty: Introduction to Probability CPSC 322 Uncertainty 1, Slide 1 Lecture Overview 1

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 2009/2010 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2009/10

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