logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte Non-Monotonic Reasoning

Size: px
Start display at page:

Download "logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte Non-Monotonic Reasoning"

Transcription

1 Non-Monotonic Reasoning 1 Introduction logika je všude 2 Closed World Assumption 3 Completion logic is everywhere 4 Circumscription la lógica está por todas partes 5 Default Logic 6 Answer Set Programming Logika ada di mana-mana Hikmat har Jaga Hai logika je svuda Mantık her yerde la logica è dappertutto Logik ist überall Logica este peste tot lógica está em toda parte la logique est partout Non-Monotonic Reasoning 1

2 Introduction The Missionaries and Cannibals Puzzle Three missionaries and three cannibals come to a river. A rowboat that seats two is available. If the cannibals ever outnumber the missionaries on either bank of the river, the missionaries will be eaten. How shall the missionaries and the cannibals cross the river? Representation M CB, where M denotes the number of missionaries on the left bank of the river, C denotes the number of cannibals on the left bank of the river, and B denotes the number of rowboats on the left bank of the river. Solution (331, 220, 321, 300, 311, 110, 221, 020, 031, 010, 021, 000) Can it be derived as a logical consequence of a first order formalization? Non-Monotonic Reasoning 2

3 Problems Unless it can be deduced that an object is present, we conjecture that it is not present. Unless there is something wrong with the boat or something else prevents the boat from using it, it can be used to cross the river. Non-Monotonic Reasoning 3

4 Non-Monotonic Logics A logic A, L, = is said to be non-monotonic iff there exist K, K and G such that K = G and K K = G, where K and K are sets of formulas in L and G is a formula in L. Propositional and first order logic are monotonic Exercise Non-Monotonic Reasoning 4

5 Closed World Assumption Open world assumption (OWS): The only answers given to a query are those that can be obtained from proofs of the query, given the knowledge base. Closed world assumption (CWS): certain additional answers are admitted as a result of a failure to prove a result. Example K = {lectures(steffen, cl001), lectures(steffen, cl005), lectures(michael, cl002), lectures(michael, cl005), lectures(heiko, cl004), lectures(horst, cl003)}. query OWS CWS K = ( X) lectures(steffen, X) yes yes K = lectures(michael, cl006) no yes Non-Monotonic Reasoning 5

6 The Formal Theory Let A, L, = be a first order logic. Let K L be a satisfiable set of formulas. C(K) = {G K = G} is the theory or closure of K. Let K = { A A is a ground atom in L and K = A}. C CWA (K) = C(K K) is the theory of K under the closed world assumption. Non-Monotonic Reasoning 6

7 Satisfiability Is C CWA (K) satisfiable? Consider K = {leakyvalve puncturedtube} K = leakyvalve K = puncturedtube { leakyvalve, puncturedtube} K K K {leakyvalve puncturedtube, leakyvalve, puncturedtube} K K is unsatisfiable! Theorem 11.2 Let K be a satisfiable set of formulas in Skolem normal form. C CWA (K) is satisfiable iff K admits a least Herbrand model. Non-Monotonic Reasoning 7

8 Models and the Closed World Assumption Let M = (D, I) and M = (D, I ) be two models of K. Let R be the set of relation symbols in L and P R. M is a submodel of M wrt P (M P M ) iff D = D and I, I are identical except that for all q P we find q I q I. If P = R then we write M M instead of M P M. A model M of K is minimal iff for all models M of K we find that M M implies M = M. M M iff M M and M M. A model M of K is the least model of K iff for all models M of K we find M M implies M M. The closed world assumption eliminates non-least models! Non-Monotonic Reasoning 8

9 Remarks K = A cannot be decided in first-order logic! There are several extensions of the closed world assumption. Non-Monotonic Reasoning 9

10 Completion Can we add more complex formulas than negative ground atoms to a knowledge base? Consider F = {tweedy/0, john/0} and R = {penguin/1}. Let K = {penguin(tweedy)}. M 1 = {penguin(tweedy)} and M 2 = {penguin(tweedy), penguin(john)} are models for K. M 1 M 2. How can the least model be computed? Another example: K = {penguin(tweedy), penguin(john)}. And another one: K = {( X) ( fly(x) fly(x))}. Non-Monotonic Reasoning 10

11 Solitary Clauses An occurrence of a predicate symbol p/n in a clause C is said to be positive iff we find terms t i, 1 i n, such that p(t 1,..., t n ) C, negative iff we find terms t i, 1 i n, such that p(t 1,..., t n ) C. A set K of clauses is said to be solitary wrt p/n iff for each clause C K we find that if C contains a positive occurrence of p/n then C does not contain another occurrence of p/n. The clause [ fly(tweedy), fly(john), penguin(tweedy), penguin(john)] is solitary in fly/1 and not solitary in penguin/1. Non-Monotonic Reasoning 11

12 The Completion Algorithm Input A set K of clauses and a predicate symbol p/m. Output The completion formula C K,p of K with respect to p. 1 Replace each clause {L 1,..., L n, p(t 1,..., t m )} K by ( X)(( Y ) (X 1 t 1... X m t m L 1... L n ) p(x)), where X = X 1,..., X m is a sequence of new variables, Y is a sequence of those variables which occur in the clause, and all occurrences of double negation are removed. 2 Let {( X) (C i p(x)) 1 i k} be the set of all formulas where p occurs in the conclusion. Return the completion formula C K,p = ( X) (C 1... C k p(x)). Non-Monotonic Reasoning 12

13 An Example K = { penguin(y ) bird(y ), bird(tweedy), penguin(john) } K 1 = { ( X)(( Y ) (X Y penguin(y )) bird(x)), ( X) (X tweedy bird(x)), penguin(john) } ( X) (( Y ) (X Y penguin(y )) X tweedy bird(x)) C K,bird = ( X) (( Y )(X Y penguin(y )) X tweedy bird(x)) Non-Monotonic Reasoning 13

14 The Equational System E C E C = {( X, Y ) f(x) g(y ) f/n, g/m F and f g} {( X) t[x] X t X} {( X, Y ) ( n i=1 X i Y i f(x) f(y )) f/n F} {( X) X X} {( X, Y ) ( n i=1 X i Y i f(x) f(y )) f/n F} { ( n i=1 X i Y i p(x) p(y )) p/n R} Non-Monotonic Reasoning 14

15 Predicate Completion Let K be a set of formulas, which is solitary in p. The predicate completion C C (K, p) of p is defined as C C (K, p) = {G K {C K,p } E C = G}. Theorem 11.3 Let K be a set of clauses which is solitary in p. If K is satisfiable, then so is C C (K, p). Non-Monotonic Reasoning 15

16 Parallel Completion and Logic Programming K = {bird(tweedy), ( X) (bird(x) abnormal(x) fly(x))} Normal program clauses: p(t) A 1... A m A m+1... A n. A normal logic program is a set of normal program clauses. p/n is defined in the logic program K iff K contains a clause with p/n occurring in its head. Let R D be the set of defined predicate symbols. The completion C C (K) of a normal logic program K with defined predicate symbols R D is defined as C C (K) = {G K {C K,p p R D } E C {( X) p(x) p R \ R D } = G}. Non-Monotonic Reasoning 16

17 Stratified Logic Programs Consider R, F and V. A level mapping is a total mapping l : R N. l(p) is the level of p. A normal logic program K is stratified iff in each clause of the form p(t) p 1 (s 1 )... p m (s m ) p m+1 (s m+1 )... p n (s n ) of K we find l(p) l(p i ), 1 i m, and l(p) > l(p j ), m < j n. Theorem 11.4 Let K be a stratified normal logic programs. Then C C (K) is satisfiable. Non-Monotonic Reasoning 17

18 Negation as Failure We do not want to compute with the only-if parts and E C! { A A C(K)} = { A A C C (K)} Replace /1 by /1 called negation as failure. K = {bird(tweedy), fly(x) bird(x) abnormal(x)} Non-Monotonic Reasoning 18

19 Finitely Failed Search Trees A search tree is finitely failed iff it is finite and each leaf is labelled as a failure. K = { abnormal(x) broken wing(x), abnormal(x) ratite(x), ratite(x) ostrich(x), ratite(x) emu(x), ratite(x) kiwi(x) } abnormal(tweedy) broken wing(tweedy) ratite(tweedy) kiwi(tweedy) emu(tweedy) ostrich(tweedy) Non-Monotonic Reasoning 19

20 SLDNF-Resolution Let G be a goal clause consisting of positive and negative literals, K a normal logic program, L be the selected literal in G and A be a ground atom. If L is positive, then each SLD-resolvent of G using L and some new variant of a clause in K is also an SLDNF-resolvent. If L is a ground negative literal, i.e. L = A, and the query A finitely fails with respect to K and SLDNF-resolution, then the SLDNF-resolvent of G is obtained from G by deleting L. If L is a ground negative literal, i.e. L = A, and the query A suceeds with respect to K and SLDNF-resolution, then the SLDNF-derivation of G fails. If L is negative and non-ground, then without loss of generality we may assume that each literal in G is negative and non-ground. In this case G is said to be blocked. Theorem 11.5 Let K be a normal logic program. SLDNF-resolution is sound with respect to the completion of K. Non-Monotonic Reasoning 20

21 Classical Negation vs. Negation as Failure cross train cross train Non-Monotonic Reasoning 21

22 Circumscription All approaches mentioned so far cannot handle p(a) p(b) or ( X) green(x). How can we compute their minimal models? We want to conjecture that the tuples (X 1,..., X m ) which can be shown to satisfy a relation p/m are all the tuples satisfying p/m. In other words, we want to circumscribe p/m. G{p Q} is the string obtained from the formula G by replacing each occurrence of p/m by the predicate variable Q/m. The circumscription of p in G: Circ(G, p) = (G{p Q} ( X) (Q(X) p(x))) ( X)(p(X) Q(X)) Circ(G, p) is a schema. Non-Monotonic Reasoning 22

23 Example 1 Let G = isblock(a) isblock(b) isblock(c). Then Circ(G, isblock) = ((Q(a) Q(b) Q(c)) ( X) (Q(X) isblock(x))) ( X) (isblock(x) Q(X)). This schema can be instantiated replacing Q(X) by (X a X b X c), where /2 denotes syntactic equality. Let G be the corresponding instance of Circ(G, isblock). Note Q(a) = a a a b a c Q(b) = b a b b b c Q(c) = c a c b c c Non-Monotonic Reasoning 23

24 Example 1 Continued Remember G = isblock(a) isblock(b) isblock(c). Hence G ( X) (X a X b X c isblock(x)) ( X) (isblock(x) X a X b X c) Let I be a Herbrand-interpretation with I = {G, G }. [( X) (X a X b X c isblock(x)] I = iff for all t T (F) we find [t a t b t c isblock(t)] I =. ( ) case t {a, b, c} [t a t b t c] I = and [isblock(t)] I =, thus, ( ) holds. case t {a, b, c} [t a t b t c] I =, thus, ( ) holds. Therefore, we obtain {G, G } = ( X) (isblock(x) (X a X b X c)). Non-Monotonic Reasoning 24

25 Non-monotonicity Circumscription is non-monotonic. Reconsider Example 1. {G, G } = isblock(d). Now let H = G isblock(d). Then {H, Circ(H, isblock)} = isblock(d). Non-Monotonic Reasoning 25

26 Example 2 Let G = p(a) p(b). Then Circ(G, p) = ((Q(a) Q(b)) ( X) (Q(X) p(x))) ( X) (p(x) Q(X)). This schema can be instantiated replacing Q(X) by X a, where /2 denotes syntactic equality. We obtain G 1 = ((a a b a) ( X) (X a p(x))) ( X) (p(x) X a) ( X) (X a p(x)) ( X) (p(x) X a) p(a) ( X) (p(x) X a). Non-Monotonic Reasoning 26

27 Example 2 Continued Remember G = p(a) p(b) and G 1 p(a) ( X) (p(x) X a). Circ(G, p) can also be instantiated replacing Q(X) by X b and we obtain G 2 p(b) ( X) (p(x) X b). Note Hence {H 1 H 2, H 1 H 1, H 2 H 2 } = H 1 H 2. {G, G 1, G 2 } = ( X) (p(x) X a) ( X) (p(x) X b). Non-Monotonic Reasoning 27

28 The Main Result Theorem 11.6 Let G be an instance of Circ(G, p). G holds in all models of G which are minimal in {p/m}. Proof Consider (G{p Q} ( X) (Q(X) p(x))) ( X)(p(X) Q(X)). Let I be a model for G which is minimal in {p/m}. Let p /m be a predicate symbol such that [G{p p } ( X) (p (X) p(x))] I =. To show [( X)(p(X) p (X))] I =. Suppose [( X)(p(X) p (X))] I =. Hence p I p I. Because [( X) (p (X) p(x))] I = we find p I p I. We conclude p I p I. Because [G{p p }] I = we can construct a model I for G which is identical to I for all predicate letters different from p and with p I = p I. Because p I = p I p I this contradicts the minimality of I in {p/m}. Non-Monotonic Reasoning 28

29 Remarks G follows minimally from K with respect to p/m, written K = {p} G, iff G holds in all models of K which are minimal in {p/m}. Corollary 11.7 Let G be an instance of Circ(G, p). If {G, G } = H then {G} = {p} H. Circumscribing a predicate may lead to an unsatisfiable theory. Under certain circumstances circumscription can be reduced to first order reasoning. Many extensions are known. Non-Monotonic Reasoning 29

30 Default Logic Most objects of sort s have property p. Object o is of sort s. Does object o have property p? Most birds are flying. Tweedy is a bird. Does Tweedy fly? A first order formalization: ( X) (bird(x) penguin(x) ostrich(x)... fly(x). Problems We do not know all exceptions. We cannot conlude that Tweedy does not belong to one of the exceptions. Idea We would like to conclude the Tweedy flies by default. Non-Monotonic Reasoning 30

31 Default Reasoning Unless any information to the contrary is known we assume that exceptions are not logical consequences (CWA), we finitely failed to prove exceptions (NAF), it is consistent to assume that... (Default Logic). Default rules bird(x) : fly(x) / fly(x). Exceptions { ( X) (penguin(x) fly(x)), ( X) (ostrich(x) fly(x)),... } But how is consistency defined? Few objects of sort s have property p: man(x) : moon(x) / moon(x). Non-Monotonic Reasoning 31

32 Default Rules Let A, L, = be a first order logic. A default rule is any expression of the form G : G 1,..., G n / H or G : G 1,..., G n. H G is called prerequisite, G 1,..., G n are called justifications, H is called consequent. A default rule is said to be closed iff all formulas occurring in it are closed. It is said to be open iff it is not closed. It is a scheme representing the set of its ground instances. Non-Monotonic Reasoning 32

33 Default Rules Special Cases If G is missing, then G. If n = 0, then this is a rule in A, L, =. If n = 1 and G 1 = H, then the default rule is said to be normal. If n = 1 and G 1 = H H, then the default rule is said to be semi-normal. Non-Monotonic Reasoning 33

34 Default Knowledge Bases A default knowledge base is a pair K D, K W, where K D is a set of at most countably many default rules and K W is a set of at most countably many closed first order formulas over A. A default knowledge base is said to be closed iff all default rules occurring in it are closed. It is said to be open iff it is not closed. Example K D : spouse(x, Y ) htown(y ) Z : htown(x) Z / htown(x) Z, employer(x, Y ) location(y ) Z : htown(x) Z / htown(x) Z. K W : spouse(jane, john), htown(john) munich, employer(jane, tud), location(tud) dresden, ( X, Y, Z) (htown(x) Y htown(x) Z Y Z). Non-Monotonic Reasoning 34

35 Extensions Let K be a set of closed first-order formulas and K D, K W a closed default knowledge base. Intuitively, an extension K of K D, K w should have the properties: K W K, C(K) = K, K should be closed under the application of default rules. Let Γ(K) be the smallest set satisfying the following properties: 1. K W Γ(K). 2. C(Γ(K)) = Γ(K). 3. If G : G 1,..., G n / H K D, G Γ(K) and for all 1 j n we find that G j K then H Γ(K). K is said to be an extension of K D, K W iff Γ(K) = K. The set of extensions of K D, K W is a subset of the set of models for K W. Non-Monotonic Reasoning 35

36 Another Characterization of Extensions Theorem 11.7 Let K D, K W be a closed default knowledge base and K be a set of sentences. Define and for i 1: K 0 = K W K i+1 = C(K i ) {H G : G 1,..., G n / H K D, G K i and for all 1 j n G j K}. Then, K is an extension of K D, K W iff K = i=0 K i. We have to guess extensions! K D = { bird(x) : fly(x) / fly(x) } K W = { bird(tweedy) } K = C({bird(tweedy), fly(tweedy)}) is an extension. Non-Monotonic Reasoning 36

37 Another Example K D : spouse(x, Y ) htown(y ) Z : htown(x) Z / htown(x) Z, employer(x, Y ) location(y ) Z : htown(x) Z / htown(x) Z. K W : spouse(jane, john), htown(john) munich, employer(jane, tud), location(tud) dresden, ( X, Y, Z) (htown(x) Y htown(x) Z Y Z). Its extensions are: and C({spouse(jane, john), htown(john) munich, employer(jane, tud), location(tud) dresden, htown(jane) munich}) C({spouse(jane, john), htown(john) munich, employer(jane, tud), location(tud) dresden, htown(jane) dresden}). Non-Monotonic Reasoning 37

38 Credolous vs. Sceptical Reasoning G follows credolously from K D, K W, in symbols K D, K W = c G, iff there exists an extension K of K D, K W such that G K. G follows sceptically from K D, K W, in symbols K D, K W = s G, iff for all extensions K of K D, K W we find G K. Non-Monotonic Reasoning 38

39 Remarks Default logic is non-monotonic. Extensions are always satisfiable. Extensions may contain counter-intuitive facts. K W = {broken(left arm) broken(right arm)} K D = { : usable(x) broken(x) / usable(x)} There are many approaches extending default logic. Non-Monotonic Reasoning 39

40 Answer Set Programming Example Every student with a GPA of at least 3.8 is eligible. Every minority student with a GPA of at least 3.6 is eligible. No student with a GPA under 3.6 is eligible. The students whose eligibility is not determined by these rules are interviewed by the scholarship committee. K 1 = { eligible(x) highgpa(x), eligible(x) minority(x) fairgpa(x), eligible(x) fairgpa(x), interview(x) eligible(x) eligible(x) } K 2 = { fairgpa(john), highgpa(john) }. What happens with John? Non-Monotonic Reasoning 40

41 Rules and Programs Rules L 1... L k L k+1... L l L l+1... L m L m+1... L n L i are propositional literals. 0 k l m n. If k = l = 0 then rules are called constraints. A program is a set of rules. K 1 K 2. Non-Monotonic Reasoning 41

42 Answer Sets Remember rules: L 1... L k L k+1... L l L l+1... L m L m+1... L n. Let M be a satisfiable set of literals and K be a program where k = l and n = m, i.e., rules are of the form L 1... L k L l+1... L m. M is said to be closed under K if for every rule of K we find that {L 1,..., L k } M = whenever {L l+1,..., L m } M. M is said to be an answer set for K if M is minimal among the sets closed under K. Example K 3 = { s r, b r }. {s} and {r, b} are answer sets. What happens if we add the constraint s? Non-Monotonic Reasoning 42

43 Reducts and Answer Sets Let K be a program and M a satisfiable set of literals. The reduct K M of K relative to M is the set of rules such that L 1... L k L l+1... L m L 1... L k L k+1... L l L l+1... L m L m+1... L n occurs in K, {L k+1,..., L l } M and {L m+1,..., L n } M =. K M is a program without /1. M is said to be an answer set for K iff M is an answer set for K M. Examples {p q}, { p p}, {p p} {q p q, p, q } What happens if we delete q from the last example? Non-Monotonic Reasoning 43

44 Predicate Symbols, Constants and Variables We allow n-ary predicate symbols ranging over constants and variables. We view rules containing variable occurrences as schemas. K 1 = { eligible(x) highgpa(x), eligible(x) minority(x) fairgpa(x), eligible(x) fairgpa(x), interview(x) eligible(x) eligible(x) } K 2 = { fairgpa(john), highgpa(john) }. Its only answer set is: {fairgpa(john), highgpa(john), interview(john)}. What happens if we add minority(john)? Answer set programming is non-monotonic! Non-Monotonic Reasoning 44

45 Programming with Answer Sets A Hamiltonian cycle is a cyclic tour through a graph visiting each vertex exactly once. The problem of finding a Hamiltonian cycle is known to be NP-complete. Let G be a graph with vertices 0,..., n. Consider an alphabet with F = {0/0,..., n/0} and R = {reachable/1, /2}. Idea WLOG let 0 be the starting vertex of the tour. reachable(i) represents the fact that vertex i is reachable from 0. (i, j) represents the fact that the edge from i to j is in the cycle. Specify a program such that for each answer set M we find: { u, v (u, v) M} is the set of edges in the Hamiltonian cycle. Non-Monotonic Reasoning 45

46 Computing Hamiltonian Cycles Program {(u, v) (u, v) u, v G} { (u, v) (u, w) u, v, u, w G and v w} { (v, u) (w, u) v, u, w, u G and v w} {reachable(u) (0, u) 0, u G} {reachable(v) reachable(u) (u, v) u, v G} { reachable(u) 0 u n} You have to show that the answer sets of this program correspond to Hamiltonian cycles! Non-Monotonic Reasoning 46

47 Answer Set Planning Program: on(b, L, 0) on(b, L, 0) move (B, L, T ) move (B, L, T ) on(b, L, T + 1) move (B, L, T ) on(b, L, T + 1) on(b, L, T ) on(b, L, T + 1) on(b, L, T ) on(b, L, T ) (L L ) move (B, L, T ) on(b, B, T ) (B B ) move (B, B, T ) move (B, L, T ) (B B ) move (B, L, T ) move (B, L, T ) move (B, L, T ) B, L = B, L, B, L = B, L, B, L = B, L on(b, B, T ) on(b, B, T ) (B B ) supported(b, T ) on(b, tab, T) supported(b, T ) on(b, B, T ) supported(b, T ) supported(b, T ) Non-Monotonic Reasoning 47

48 Computing Answer Sets Paradigm shift Logic and constraint programming answer substitution. Answer set programming model, i.e., answer set. Quite successful in recent years. Systems Smodels Dlv DeReS Non-Monotonic Reasoning 48

logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte

logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte Simple Connectionist Systems Steffen Hölldobler logika je všude International Center for Computational Logic Technische Universität Dresden Germany logic is everywhere Connectionist Networks la lógica

More information

Section 5 Circumscription. Subsection 5.1 Introducing Circumscription. TU Dresden, WS 2017/18 Introduction to Nonmonotonic Reasoning Slide 128

Section 5 Circumscription. Subsection 5.1 Introducing Circumscription. TU Dresden, WS 2017/18 Introduction to Nonmonotonic Reasoning Slide 128 Section 5 Circumscription Subsection 5.1 Introducing Circumscription TU Dresden, WS 2017/18 Introduction to Nonmonotonic Reasoning Slide 128 Circumscription developed by John McCarthy, refined by Vladimir

More information

logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte

logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte Steffen Hölldobler logika je všude logic is everywhere la lógica está por todas partes Logika ada di mana-mana lógica está em toda parte la logique est partout Hikmat har Jaga Hai Human Reasoning, Logic

More information

Artificial Intelligence II

Artificial Intelligence II Artificial Intelligence II 2013/2014 - Prof: Daniele Nardi, Joachim Hertzberg Exercitation 2 - Roberto Capobianco Non-Monotonic Reasoning 1 Closed World Assumption (Recap) If something is not in the KB,

More information

Chapter 7. Negation: Declarative Interpretation

Chapter 7. Negation: Declarative Interpretation Chapter 7 1 Outline First-Order Formulas and Logical Truth The Completion semantics Soundness and restricted completeness of SLDNF-Resolution Extended consequence operator An alternative semantics: Standard

More information

INTRODUCTION TO NONMONOTONIC REASONING

INTRODUCTION TO NONMONOTONIC REASONING Faculty of Computer Science Chair of Automata Theory INTRODUCTION TO NONMONOTONIC REASONING Anni-Yasmin Turhan Dresden, WS 2017/18 About the Course Course Material Book "Nonmonotonic Reasoning" by Grigoris

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

A Brief Introduction to Nonmonotonic Reasoning

A Brief Introduction to Nonmonotonic Reasoning A Brief Introduction to Nonmonotonic Reasoning Gerhard Brewka, Stefan Woltran Computer Science Institute University of Leipzig [brewka,woltran]@informatik.uni-leipzig.de G. Brewka, S. Woltran (Leipzig)

More information

Default Reasoning - Motivation

Default Reasoning - Motivation Default Reasoning - Motivation The most what we know about the world is only almost always true. We never have total knowledge about the world. / Typically a bird can fly. Unless it is a penguin ostrich

More information

Predicate Logic - Semantic Tableau

Predicate Logic - Semantic Tableau CS402, Spring 2016 Informal Construction of a Valid Formula Example 1 A valid formula: x(p(x) q(x)) ( xp(x) xq(x)) ( x(p(x) q(x)) ( xp(x) xq(x))) x(p(x) q(x)), ( xp(x) xq(x)) x(p(x) q(x)), xp(x), xq(x)

More information

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

Answer Set Programming

Answer Set Programming Quick Summary Department of Applied Informatics Comenius University in Bratislava 2015/2016 Language Definition (Language of LP) constants a, b, c,... variables X, Y, Z,... function symbols f, g, h,...

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

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

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

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

Definite Logic Programs

Definite Logic Programs Chapter 2 Definite Logic Programs 2.1 Definite Clauses The idea of logic programming is to use a computer for drawing conclusions from declarative descriptions. Such descriptions called logic programs

More information

SLD-Resolution And Logic Programming (PROLOG)

SLD-Resolution And Logic Programming (PROLOG) Chapter 9 SLD-Resolution And Logic Programming (PROLOG) 9.1 Introduction We have seen in Chapter 8 that the resolution method is a complete procedure for showing unsatisfiability. However, finding refutations

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

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

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

More information

1 Introduction to Predicate Resolution

1 Introduction to Predicate Resolution 1 Introduction to Predicate Resolution The resolution proof system for Predicate Logic operates, as in propositional case on sets of clauses and uses a resolution rule as the only rule of inference. The

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

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

Handout Lecture 8: Non-monotonic logics

Handout Lecture 8: Non-monotonic logics Handout Lecture 8: Non-monotonic logics Xavier Parent and Leon van der Torre University of Luxembourg April 27, 2016 Abstract This handout is devoted to non-monotonic logics a family of logics devised

More information

Computational Logic. Standardization of Interpretations. Damiano Zanardini

Computational Logic. Standardization of Interpretations. Damiano Zanardini Computational Logic Standardization of Interpretations Damiano Zanardini UPM European Master in Computational Logic (EMCL) School of Computer Science Technical University of Madrid damiano@fi.upm.es Academic

More information

Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics

Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics 1 Towards Logic Programming Conclusion: resolution is a complete and effective deduction mechanism using: Horn clauses (related

More information

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

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

More information

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

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

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

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

First-Order Logic. Resolution

First-Order Logic. Resolution First-Order Logic Resolution 1 Resolution for predicate logic Gilmore s algorithm is correct and complete, but useless in practice. We upgrade resolution to make it work for predicate logic. 2 Recall:

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

Negation as failure (Normal logic programs)

Negation as failure (Normal logic programs) 491 Knowledge Representation Contents Negation as failure (NBF): Summary Negation as failure (Normal logic programs) Marek Sergot Department of Computing Imperial College, London January 2001; January

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

Strong AI vs. Weak AI Automated Reasoning

Strong AI vs. Weak AI Automated Reasoning Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories:

More information

First-Order Theorem Proving and Vampire

First-Order Theorem Proving and Vampire First-Order Theorem Proving and Vampire Laura Kovács 1,2 and Martin Suda 2 1 TU Wien 2 Chalmers Outline Introduction First-Order Logic and TPTP Inference Systems Saturation Algorithms Redundancy Elimination

More information

Essential facts about NP-completeness:

Essential facts about NP-completeness: CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions

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

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

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

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

Predicate Logic: Syntax

Predicate Logic: Syntax Predicate Logic: Syntax Alice Gao Lecture 12 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefler, and P. Van Beek 1/31 Outline Syntax of Predicate Logic Learning

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

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

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

More information

KE/Tableaux. What is it for?

KE/Tableaux. What is it for? CS3UR: utomated Reasoning 2002 The term Tableaux refers to a family of deduction methods for different logics. We start by introducing one of them: non-free-variable KE for classical FOL What is it for?

More information

Lloyd-Topor Completion and General Stable Models

Lloyd-Topor Completion and General Stable Models Lloyd-Topor Completion and General Stable Models Vladimir Lifschitz and Fangkai Yang Department of Computer Science The University of Texas at Austin {vl,fkyang}@cs.utexas.edu Abstract. We investigate

More information

From Constructibility and Absoluteness to Computability and Domain Independence

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

More information

Logic Programming Theory Lecture 7: The Closed World Assumption

Logic Programming Theory Lecture 7: The Closed World Assumption Logic Programming Theory Lecture 7: The Closed World Assumption Alex Simpson School of Informatics 8th November 2012 Negation as failure: problem 1 Prolog s treatment of negation as failure is a procedural

More information

signicant in view of the fact that in many applications existential queries are of main interest. It also plays an important role in the problem of nd

signicant in view of the fact that in many applications existential queries are of main interest. It also plays an important role in the problem of nd On the Relationship Between CWA, Minimal Model and Minimal Herbrand Model Semantics Michael Gelfond Halina Przymusinska Teodor Przymusinski March 3, 1995 Abstract The purpose of this paper is to compare

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

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

(A 3 ) (A 1 ) (1) COMPUTING CIRCUMSCRIPTION. Vladimir Lifschitz. Department of Computer Science Stanford University Stanford, CA

(A 3 ) (A 1 ) (1) COMPUTING CIRCUMSCRIPTION. Vladimir Lifschitz. Department of Computer Science Stanford University Stanford, CA COMPUTING CIRCUMSCRIPTION Vladimir Lifschitz Department of Computer Science Stanford University Stanford, CA 94305 Abstract Circumscription is a transformation of predicate formulas proposed by John McCarthy

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

Representation Results for Defeasible Logic

Representation Results for Defeasible Logic Representation Results for Defeasible Logic G. Antoniou, D. Billington, G. Governatori and M.J. Maher School of Computing and Information Technology, Griffith University Nathan, QLD 4111, Australia {ga,db,guido,mjm}@cit.gu.edu.au

More information

Joxan Jaffar*, Jean-Louis Lassez'

Joxan Jaffar*, Jean-Louis Lassez' COMPLETENESS OF THE NEGATION AS FAILURE RULE Joxan Jaffar*, Jean-Louis Lassez' and John Lloyd * Dept. of Computer Science, Monash University, Clayton, Victoria. Dept. of Computer Science, University of

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

Argumentation with Abduction

Argumentation with Abduction Argumentation with Abduction Neophytos Demetriou Dept. of Computer Science University of Cyprus Nicosia CY-1678, Cyprus nkd@cs.ucy.ac.cy Tel.: (+357) 22892673 Antonis Kakas Dept. of Computer Science University

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

First-Order Stable Model Semantics and First-Order Loop Formulas

First-Order Stable Model Semantics and First-Order Loop Formulas Journal of Artificial Intelligence Research 42 (2011) 125-180 Submitted 03/11; published 10/11 First-Order Stable Model Semantics and First-Order Loop Formulas Joohyung Lee Yunsong Meng School of Computing,

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

Nonmonotonic Logic. Daniel Bonevac. April 16, Accident victims who are cool to the touch may be in shock.

Nonmonotonic Logic. Daniel Bonevac. April 16, Accident victims who are cool to the touch may be in shock. Nonmonotonic Logic Daniel Bonevac April 16, 2012 We organize our thought with general principles: 1. 2. Acids are corrosive. 3. Handguns are dangerous. 4. Promises ought to be kept. 5. What goes up must

More information

Introduction to Metalogic

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

More information

CHAPTER 2. FIRST ORDER LOGIC

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

More information

Introduction to Answer Set Programming

Introduction to Answer Set Programming Introduction to Answer Set Programming François Gagnon Ph.D. Student fgagnon@sce.carleton.ca Network Management and Artificial Intelligence Laboratory www.sce.carleton.ca/netmanage Carleton University

More information

Logic and Inferences

Logic and Inferences Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional

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

arxiv: v1 [cs.lo] 8 Jan 2013

arxiv: v1 [cs.lo] 8 Jan 2013 Lloyd-Topor Completion and General Stable Models Vladimir Lifschitz and Fangkai Yang Department of Computer Science The University of Texas at Austin {vl,fkyang}@cs.utexas.edu arxiv:1301.1394v1 [cs.lo]

More information

Default Logic Autoepistemic Logic

Default Logic Autoepistemic Logic Default Logic Autoepistemic Logic Non-classical logics and application seminar, winter 2008 Mintz Yuval Introduction and Motivation Birds Fly As before, we are troubled with formalization of Non-absolute

More information

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

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

More information

INTRODUCTION TO LOGIC

INTRODUCTION TO LOGIC INTRODUCTION TO LOGIC 6 Natural Deduction Volker Halbach There s nothing you can t prove if your outlook is only sufficiently limited. Dorothy L. Sayers http://www.philosophy.ox.ac.uk/lectures/ undergraduate_questionnaire

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

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

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

More information

Predicate Calculus lecture 1

Predicate Calculus lecture 1 Predicate Calculus lecture 1 Section 1.3 Limitation of Propositional Logic Consider the following reasoning All cats have tails Gouchi is a cat Therefore, Gouchi has tail. MSU/CSE 260 Fall 2009 1 MSU/CSE

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

arxiv: v1 [math.lo] 8 Mar 2018

arxiv: v1 [math.lo] 8 Mar 2018 An interpolant in predicate Gödel logic arxiv:1803.03003v1 [math.lo] 8 Mar 2018 Matthias Baaz 1 baaz@logic.at, Mai Gehrke 2 mgehrke@unice.fr, Sam van Gool 3 samvangool@me.com 1 Institute of Discrete Mathematics

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

First Order Logic (FOL)

First Order Logic (FOL) First Order Logic (FOL) Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel based on slides by Prof. Ruzica Piskac, Nikolaj Bjorner, and others References Chpater 2 of Logic for

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

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k. Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time

More information

Answer Set Programming s Contributions to Classical Logic

Answer Set Programming s Contributions to Classical Logic Answer Set Programming s Contributions to Classical Logic An analysis of ASP methodology Marc Denecker, Joost Vennekens, Hanne Vlaeminck, Johan Wittocx, and Maurice Bruynooghe Department of Computer Science,

More information

Combining explicit Negation and. Negation by Failure via Belnap's Logic. Francois FAGES. Paul RUET. Laboratoire d'informatique, URA 1327 du CNRS

Combining explicit Negation and. Negation by Failure via Belnap's Logic. Francois FAGES. Paul RUET. Laboratoire d'informatique, URA 1327 du CNRS Combining explicit Negation and Negation by Failure via Belnap's Logic Francois FAGES Paul RUET Laboratoire d'informatique, URA 1327 du CNRS Departement de Mathematiques et d'informatique Ecole Normale

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

Logic (3A) Young W. Lim 12/5/13

Logic (3A) Young W. Lim 12/5/13 Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software

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

1 More finite deterministic automata

1 More finite deterministic automata CS 125 Section #6 Finite automata October 18, 2016 1 More finite deterministic automata Exercise. Consider the following game with two players: Repeatedly flip a coin. On heads, player 1 gets a point.

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

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1 Logic One reason for studying logic is that we need a better notation than ordinary English for expressing relationships among various assertions or hypothetical states of affairs. A solid grounding in

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

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

Answer Set Programming: an Introduction

Answer Set Programming: an Introduction Answer Set Programming: an Introduction Stefania Costantini Dipartimento di Informatica Universita degli Studi di L Aquila via Vetoio Loc. Coppito, I-67100 L Aquila (Italy) stefcost@di.univaq.it Example:

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

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey. Major results: (wrt propositional logic) How to reason correctly. How to reason efficiently. How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague,

More information