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

Size: px
Start display at page:

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

Transcription

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

2 Propositions Atomic propositions (atomic formulas or atoms) The sun is shining The vertex with number 17 is green TG925 is flying from Munich to Bangkok At the forth position of the DNA strand is the nucleotide C Abbreviations for Atoms p 1 the sun is shining p 2... Truth values true ( ) and false ( ) Interpretation Mapping from the set of propositions to {, } p 1 p 2 the proposition the sun is shining is true the proposition the vertex with number 17 is green is false A Little Logic 2

3 Complex Propositions Complex propositions (sentences or formulas) The sun is shining p 1 The sun is not shining p 1 The sun is shining or the sun is not shining (p 1 p 1 ) The sun is shining and the vertex with number 17 is green (p 1 p 2 ) If the sun is shining then the vertex with number 17 is green (p 1 p 2 ) Definition The set of (propositional) formulas is the smallest set satisfying the following conditions All atoms are formulas If F is a formula then so is F If F and G are formulas then so are (F G), (F G), and (F G) Example ( (p 1 p 2 ) (p 1 p 1 )) Notation We sometimes omit p and denote atoms by natural numbers A Little Logic 3

4 Subformulas Definition Let F be a propositional formula. The set of subformulas of F is the smallest set of formulas satisfying the following conditions F is a subformula of F If G is a subformula of F then so is G If (G 1 G 2 ) is a subformula of F then so are G 1 and G 2, where {,, } Example The set of subformulas of F = ((p 1 p 2 ) p 1 ) is { ((p 1 p 2 ) p 1 ), ((p 1 p 2 ) p 1 ), (p 1 p 2 ), p 1, p 2 } The set of variables occurring in F is {p 1, p 2 } A Little Logic 4

5 Interpretations and Models Remember interpretations are mappings from the set of propositions into {, } How are complex propositions interpreted? F F F G (F G) (F G) (F G) Example Consider an interpretation I with 1 and 2 then I( ( (1 2) (1 1))) = Definition An interpretation assigning to a formula F is called model for F A Little Logic 5

6 Satisfiability and other Relations Definition Let F be a formula F is satisfiable if there is an interpretation I with I(F ) = F is valid if for all interpretations I we find I(F ) = F is falsifiable if there is an interpretation I with I(F ) = F is unsatisfiable if for all interpretations I we find I(F ) = A Little Logic 6

7 Truth Tables How can we compute the value of a formula F under all possible interpretations? Computing a truth table 1 Let m be the number of subformulas of F 2 Let n be the number of variables occurring in F 3 Form a table with 2 n rows and m columns, where the first n columns are marked by the n propositional variables occurring in F, the last column is marked by F, and the remaining columns are marked by the other subformulas of F 4 Fill in the first n columns with und as follows: In the first column fill in alternating downwards..., in the second column..., in the third column..., etc 5 Calculate the values in the remaining columns using the known functions on the set of truth values A Little Logic 7

8 Working with Truth Tables Let F be a formula and T (F ) a corresponding truth table F is satisfiable iff T (F ) contains a row with in the last column F is valid iff all rows in T (F ) have in the last column F is falsifiable iff T (F ) contains a row with in the final column F is unsatisfiable iff all rows T (F ) have in the final column A Little Logic 8

9 Logical Consequences Definition A formula F is a logical consequence of a set of propositional formulas G, in symbols G = F, iff for every interpretation I we find: if I(H) = for all H G then I(F ) = Theorem Let F, F 1,..., F n be formulas. {F 1,..., F n} = F holds iff ((F 1... F n) F ) is valid Examples {p, (p q)} {p, ( q p)} {p, p}? = q? = q? = q A Little Logic 9

10 Satisfiability Problems Remember A formula F is satisfiable if there is an interpretation I with I(F ) = Definition A satisfiability problem consists of a formula F and is the question whether F is satisfiable Example Is F = ( (1 2) (1 1)) satisfiable? interpretations formula 1 2 F Observation If a formula contains n different atoms then there are 2 n different interpretations Remark The complexity theory was developed having the satisfiability problem in mind! A Little Logic 10

11 Applications Termination of programs Planning and scheduling Biocomputing Verification of hard- and software Cryptoanalysis Verification of signal systems Answer set programming A Little Logic 11

12 The Graph Coloring Problem Given A finite graph and a finite set of colors Goal An assignment of colors to vertices such that neighboring vertices have different colors Formally At least one color is assigned to each vertex At most one color is assigned to each vertex Neighboring vertices have different colors A Little Logic 12

13 Naive Encoding of the Graph Coloring Problem (1) Task For a given graph coloring program G find a propositional formula F such that each model for F is a solution for G Example We consider the set {1, 2, 3, 4} of colors and the graph Naive encoding of an assignment of colors to vertices 4 11 color 1 is assigned to vertex 1 12 color 2 is assigned to vertex 1 13 color 3 is assigned to vertex color 4 is assigned to vertex 4 A Little Logic 13

14 Naive Encoding of the Graph Coloring Problem (2) At least one color is assigned to each vertex ( )... ( ) At most one color is assigned to each vertex (11 12) (11 13) (11 14)... (43 44) Neighboring vertices have different colors (11 21) (12 22) (13 23)... (34 44) Claim Let F be the conjunction of these formulas Each model for F represents a solution to the graph coloring problem Example The interpretation mapping 11, 22, 33, and 44 to and all other atoms to is a model für F A Little Logic 14

15 Some Observations The formulas are quite large 10 7 different atoms and 10 8 conjuncts may appear easily in applications Hence, the size of the search space is 2 107! The formulas are difficult to understand We need help by machines This help is provided by SAT solver A Little Logic 15

16 A Better Encoding of the Graph Coloring Problem (1) Idea We order the colors: 1 < 2 < 3 < 4 Encoding of an assignment of colors to vertices 11 a color greater equal 1 is assigned to vertex 1 12 a color greater equal 2 is assigned to vertex a color greater equal 4 is assigned to vertex vertex 1 has color vertex 1 has color vertex 1 has color 3 14 vertex 1 has color vertex 4 has color 4 A Little Logic 16

17 A Better Encoding of the Graph Coloring Problem (2) At least one color is assigned to each vertex At most one color is assigned to each vertex ( 11 12) ( 12 13) ( 13 14)... ( 43 44) Neighboring vertices have different colors ( )... (34 44) Claim Let F be the conjunction of these formulas Each model for F represents a solution to the graph coloring problem Observation In experiments the runtimes are reduced by 10% on average A Little Logic 17

18 Conjunctive Normal Form (1) Usually, SAT solvers accept formulas only in a particular form Definition A literal is an atom or the negation of an atom Examples 11, 12, 13, 14 Definition A formula is in conjunctive normal form (CNF) if it is of the form where each L ij is a literal (L L 1n1 )... (L m1... L mnm ) Definition Two formulas F and G are equivalent, in symbols F G, if I(F ) = I(G) holds for all interpretations I Examples F F (F G) ( F G) (F G) ( F G) (F G) ( F G) A Little Logic 18

19 Conjunctive Normal Form (2) Theorem For each formula there is an equivalent formula in CNF Example ( 11 12) ( 11 13) ( 11 14)... ( 43 44) is an equivalent CNF of (11 12) (11 13) (11 14)... (43 44) Observation There are algorithms transforming a given formula into CNF A Little Logic 19

20 SAT Solvers There is a variety of freely available SAT solvers MiniSAT glucose riss They solve problems in CNF with up to 10 7 atoms and 10 8 conjuncts They are applied in industry There are yearly competitions for the best SAT solvers They are continuously improved The improvements concern the whole area of computer science from theory and applications to soft- and hardware A Little Logic 20

21 Solving the Graph Coloring Problem with Naive Encoding Input to a SAT solver p cnf nv nc where nv and nc are the numbers of atoms (variables) and conjuncts, resp. Possible output of a SAT solver A Little Logic 21

22 Sudoku Puzzles Let n N; a Sudoku puzzle consists of an n 2 n 2 grid made up of n n subgrids called blocks with some integers from [1, n 2 ] placed in some cells where some of these placements are predefined The problem is to assign i [1, n 2 ] to each cell of the grid such that each row, column, and block contains exactly one occurrence of each integer in [1, n 2 ] There are more than Sudoku puzzles Sudoku puzzles with n > 3 appear to be difficult to solve for humans A Little Logic 22

23 A Simple 3-Sudoku A Little Logic 23

24 Sudoku Exercise For a given 3-Sudoku S, specify a first order logic formula F such that each model for F is a solution for S. In particular, specify formulas for the following requirements Definedness Each cell contains one element of [1, 9] Uniqueness for Cells Uniqueness for Rows Uniqueness for Columns Uniqueness for Blocks Each cell has at most one value All numbers in [1, 9] must occur in every row All numbers in [1, 9] must occur in every column All numbers in [1, 9] must occur in every block Specify a propositional formula G corresponding to F Turn G into CNF Download a SAT solver from the internet Solve the given 3-Sudoku with the help of the SAT solver Extract the solution A Little Logic 24

25 First Order Logic Sentences like for each formula there is an equivalent formula in CNF cannot be expressed in the language of propositional logic The set of formulas is infinite Sentences like at most one color is assigned to each vertex can be expressed in the language of propositional logic if the set of colors as well as the graph is finite But the propositional representation is usually difficult to understand We need a more expressive language First order logic A Little Logic 25

26 Syntax of First Order Logic Definition An alphabet of (first order) logic consists of a finite or countably infinite set of relation symbols a finite or countably infinite set of function symbols a countably infinite set of variables the set {,,, } of connectives the set {, } of quantifiers the special characters (, ), and, A Little Logic 26

27 Syntax (Continued) is called universal quantifier is called existential quantifier An arity n N is assigned to each function and relation symbol Nullary function symbols are called constant symbols Notation p, q,... relation symbols g, h,... function symbols a, b,... constant symbols X, Y,... variables Agreement In the following we assume that the sets of relation symbols, function symbols, and variables are given A Little Logic 27

28 Terms Definition The set of terms is the smallest set satisfying the following conditions 1 Every variable is a term 2 If g is an n-ary function symbol and t 1,..., t n are terms then g(t 1,..., t n) is a term as well A term is closed or ground (instantiated) if it does not contain any variables Notation We write g instead of g() A Little Logic 28

29 First Order Logic Formulas Definition The set of atomic formulas (or atoms) is the set of strings of the form p(t 1,..., t n), where p is an n-ary relation symbol and t 1,..., t n are terms Notation We write p instead of p() Definition The set of (first order logic) formulas is the smallest set satisfying the following conditions Every atom is a formula If F is a formula then so is F If F and G are formulas then so are (F G), (F G), and (F G) If F is a formula, Q a quantifier, and X a variable then (QX) F is a formula as well Notation F, G, H (possibly indexed) denote formulas A Little Logic 29

30 Free and Bound Occurrences of Variables Definition The free occurrences of a variable in a formula are defined as follows The free occurrences of a variable in an atomic formula F are the occurrences of a variable in F The free occurrences of a variable in a formula F are the free occurrences of a variable in F The free occurrences of a variable in a formula (F 1 F 2 ) are the free occurrences of a variable in F 1 together with the free occurrences of a variable in F 2, where {,, } The free occurrences of a variable in a formula (QX) F are the free occurrences of a variable in F without the occurrences of X The occurrence of a variable is called bound if it is not free A Little Logic 30

31 Closed Terms and Formulas Remember A term is closed if it does not contain any occurrence of a variable Definition A closed formula (or sentence) is a formula where every occurrence of a variable is bound A Little Logic 31

32 Substitutions Definition A substitution is a mapping from the set of variables into the set of terms, where only a finite number of variables is not mapped to itself Let σ be a substitution σ can be represented by a finite set of pairs {X σ(x) X σ(x)} and vice versa If all variables are mapped to themselves, then σ is called empty substitution σ X = {Y t σ Y X} Instead of σ(x) we will write Xσ A Little Logic 32

33 Instances Definition A substitution σ is extended to a mapping σ from the set of terms and into the set of terms as follows { tσ if t is a variable t σ = f (t 1 σ,..., t n σ) if t is of the form f (t 1,..., t n) t σ is called instance of t under σ If t σ is closed, then t σ is called ground instance of t under σ, and σ is said to be a ground substitution for t Notation We usually omit ˆ and simply write σ A Little Logic 33

34 Applications of Substitutions to Formulas Definition Let σ be a substitution The application of a substitution to a formula is defined as follows p(t 1,..., t n)σ = p(t 1 σ,..., t nσ) for every atom of the form p(t 1,..., t n) ( F )σ = (F σ) (F 1 F 2 )σ = (F 1 σ F 2 σ), where {,, } ((QX) F )σ = (QX) (F σ X ), where Q {, } If F is a formula and F σ is closed, then F σ is called ground instance of F under σ, and σ is said to be a ground substitution for F A Little Logic 34

35 Semantics Relations and Functions Let D be a set Relations D 2 = D D = {(d 1, d 2 ) d 1 D and d 2 D} D n = D n 1 D = {(t, d n) t D n 1 and d n D} =: {(d 1,..., d n) d i D, 1 i n}, n > 2 D 1 = D =: {(d) d D} D 0 = = {( )} R D 2 R = {(n, m) n, m N and n < m} R D 3 R = {(x, y, z) x, y, z N and x 2 + y 2 = z 2 } R D 1 R = {(n) n N and n even} R D 0 R = or R = {( )} Notation Often d is written instead of (d) A Little Logic 35

36 Functions Remember Let D be a set D 2 = D D = {(d 1, d 2 ) d 1 D and d 2 D} D n = D n 1 D = {(t, d n) t D n 1 and d n D} =: {(d 1,..., d n) d i D, 1 i n}, n > 2 D 1 = D =: {(d) d D} D 0 = = {( )} Functions + : N 2 N +(2, 3) 5 s : N 1 N s(3) 4 0 : N 0 N 0( ) 0 A Little Logic 36

37 Interpretations Definition A predicate logic interpretation I consists of a non-empty set D and a mapping I satisfying the following conditions Every n-ary function symbol g is mapped to an n-ary function g I : D n D Every n-ary relation symbol p is mapped to an n-ary relation p I D n D is called domain of the interpretation A Little Logic 37

38 Variable Assignments What is the meaning of a variable? Definition A variable assignment wrt an interpretation I = (D, I ) is a mapping Z from the set of variables and into the domain D The image of a variable X under Z is denoted by X Z Let Z be a variable assignment and d D. {X d}z denotes the variable assignment, where { Y {X d}z d if Y = X = Y Z otherwise A Little Logic 38

39 Interpretation of Terms Definition Let I = (D, I ) be an interpretation and Z a variable assignment wrt I The meaning t I,Z of a term t is defined as follows For every variable X we have X I,Z = X Z For every term of the form g(t 1,..., t n) we have [g(t 1,..., t n)] I,Z = g I (t I,Z 1,..., t I,Z n ) where g is an n-ary function symbol and t 1,..., t n are terms A Little Logic 39

40 Example Let the set of function symbols consist of a constant symbol a, a unary function symbol h, and a binary function symbol g D 1 = N with successor function s and addition + D 2 = Z with predecessor function p and subtraction D 3 is set of words over Σ = {o, m} with functions add m which appends m to a word at the right conc which concatenates two words a h g X Z g(h(a), h(h(a))) g(h(x), g(h(a), h(x))) I 1 0 s I 2 1 p I 3 o add m conc omo omomm omomomomom A Little Logic 40

41 Interpretation of Formulas Definition Let I = (D, I ) be an interpretation and Z a variable assignment wrt I. I and Z assign to every formula F a truth value F I,Z as follows [p(t 1,..., t n)] I,Z = [ F ] I,Z = (F I,Z ) iff (t I,Z 1,..., tn I,Z ) p I [(F 1 F 2 )] I,Z = (F I,Z 1 F I,Z 2 ), where {,, } [( X) F ] I,Z = iff for all d D: F I,{X d}z = [( X) F ] I,Z = iff for some d D: F I,{X d}z = Observation If a formula F is closed, then its meaning under an interpretation I is independent of a variable assignment Z and we write F I instead of F I,Z A Little Logic 41

42 Models for Closed Formulas Definition Let I = (D, I ) be an interpretation and F be a closed formula I is called model for F, in symbols I = F, if F I = holds Many notions and results known from propositional logic can be extended to predicate logic. For example: Validity, satisfiability, falsifiability, unsatisfiability Logical consequence A Little Logic 42

4 Predicate / First Order Logic

4 Predicate / First Order Logic 4 Predicate / First Order Logic 4.1 Syntax 4.2 Substitutions 4.3 Semantics 4.4 Equivalence and Normal Forms 4.5 Unification 4.6 Proof Procedures 4.7 Implementation of Proof Procedures 4.8 Properties First

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

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

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

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

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

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

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

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

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

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

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

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

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

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

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

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

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

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

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

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

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

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

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

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

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

Predicate Logic. CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University

Predicate Logic. CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University Predicate Logic CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University http://www3.cs.stonybrook.edu/~pfodor/courses/cse595.html 1 The alphabet of predicate logic Variables Constants (identifiers,

More information

Lecture 4: Proposition, Connectives and Truth Tables

Lecture 4: Proposition, Connectives and Truth Tables Discrete Mathematics (II) Spring 2017 Lecture 4: Proposition, Connectives and Truth Tables Lecturer: Yi Li 1 Overview In last lecture, we give a brief introduction to mathematical logic and then redefine

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

Propositional and Predicate Logic

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

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

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

Equational Logic. Chapter Syntax Terms and Term Algebras

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

More information

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

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

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

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca October 4, 2015 These notes are a preliminary draft. Please use freely, but do not re-distribute

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

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

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 10, 2014 These notes are a preliminary draft. Please use freely, but do not re-distribute

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

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

Announcements CompSci 102 Discrete Math for Computer Science

Announcements CompSci 102 Discrete Math for Computer Science Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most

More information

Logic for Computer Scientists

Logic for Computer Scientists Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Winter Quarter 2011 Wright State University, Dayton, OH, U.S.A. [final version: 03/10/2011] Contents 1 Propositional

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

Logic for Computer Scientists

Logic for Computer Scientists Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Spring Quarter 2010 Wright State University, Dayton, OH, U.S.A. Final version. Contents 1 Propositional Logic

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

CSE 1400 Applied Discrete Mathematics Definitions

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

More information

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

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

Theoretical Foundations of the UML

Theoretical Foundations of the UML Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.

More information

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

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

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson Propositional Logic 1 / 33 Propositional

More information

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

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

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal

More information

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

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

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

Tautologies, Contradictions, and Contingencies

Tautologies, Contradictions, and Contingencies Section 1.3 Tautologies, Contradictions, and Contingencies A tautology is a proposition which is always true. Example: p p A contradiction is a proposition which is always false. Example: p p A contingency

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

SAT, NP, NP-Completeness

SAT, NP, NP-Completeness CS 473: Algorithms, Spring 2018 SAT, NP, NP-Completeness Lecture 22 April 13, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 57 Part I Reductions Continued Ruta (UIUC)

More information

An Introduction to SAT Solving

An Introduction to SAT Solving An Introduction to SAT Solving Applied Logic for Computer Science UWO December 3, 2017 Applied Logic for Computer Science An Introduction to SAT Solving UWO December 3, 2017 1 / 46 Plan 1 The Boolean satisfiability

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

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

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 19, 2013 This is a preliminary draft of these notes. Please do not distribute without

More information

Propositional Logic Not Enough

Propositional Logic Not Enough Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

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

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS 1 Language There are several propositional languages that are routinely called classical propositional logic languages. It is due to the functional dependency

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

1 Classical Propositional Logic [20 points]

1 Classical Propositional Logic [20 points] Homework 1 Solutions 15-414/614 : Bug Catching, Spring 2014 1 Classical Propositional Logic [20 points] Let x, y and z be three propositions. (a) (8 points) Show that the two propositional formulas, (x

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

Mathematical Foundations of Logic and Functional Programming

Mathematical Foundations of Logic and Functional Programming Mathematical Foundations of Logic and Functional Programming lecture notes The aim of the course is to grasp the mathematical definition of the meaning (or, as we say, the semantics) of programs in two

More information

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

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

More information

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

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

Review of Predicate Logic

Review of Predicate Logic Review of Predicate Logic Martin Held FB Computerwissenschaften Universität Salzburg A-5020 Salzburg, Austria held@cosy.sbg.ac.at 19. Jänner 2016 COMPUTERWISSENSCHAFTEN Legal Fine Print and Disclaimer

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

Predicate Calculus. CS 270 Math Foundations of Computer Science Jeremy Johnson

Predicate Calculus. CS 270 Math Foundations of Computer Science Jeremy Johnson Predicate Calculus CS 270 Math Foundations of Computer Science Jeremy Johnson Presentation uses material from Huth and Ryan, Logic in Computer Science: Modelling and Reasoning about Systems, 2nd Edition

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65 Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving

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

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

Introduction to Solving Combinatorial Problems with SAT

Introduction to Solving Combinatorial Problems with SAT Introduction to Solving Combinatorial Problems with SAT Javier Larrosa December 19, 2014 Overview of the session Review of Propositional Logic The Conjunctive Normal Form (CNF) Modeling and solving combinatorial

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

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

Linear Temporal Logic and Büchi Automata

Linear Temporal Logic and Büchi Automata Linear Temporal Logic and Büchi Automata Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 Yih-Kuen Tsay (SVVRL @ IM.NTU) Linear Temporal Logic and Büchi Automata

More information

When describing some state of affairs in the real world we often use declarative 1 sentences

When describing some state of affairs in the real world we often use declarative 1 sentences Chapter 1 Preliminaries 1.1 Logic Formulas When describing some state of affairs in the real world we often use declarative 1 sentences like: (i) Every mother loves her children (ii) Mary is a mother and

More information

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013 Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of

More information

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Valentin Stockholm University September 2016 Propositions Proposition:

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

Logic. Readings: Coppock and Champollion textbook draft, Ch

Logic. Readings: Coppock and Champollion textbook draft, Ch Logic Readings: Coppock and Champollion textbook draft, Ch. 3.1 3 1. Propositional logic Propositional logic (a.k.a propositional calculus) is concerned with complex propositions built from simple propositions

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

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