First Order Logic CSL 302 ARTIFICIAL INTELLIGENCE SPRING 2014

Size: px
Start display at page:

Download "First Order Logic CSL 302 ARTIFICIAL INTELLIGENCE SPRING 2014"

Transcription

1 First Order Logic CSL 302 ARTIFICIAL INTELLIGENCE SPRING 2014

2 Propositional Logic Declarative - pieces of syntax correspond to facts Allows partial/disjunctive/negated information Compositional (B 11 P 12 is derived from B 11 and P 12 ) Context independent Unambiguous Very limited expressive power ocannot say pits cause breeze in adjacent squares, have to list this for each square. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 2

3 Propositional vs. First Order Logic PL: Deals with facts and propositions that can be true or false op 21 - there is a pit in [2, 1] FOPL: closer to natural language, assumes the world contains objects and relations oobjects - Narayanan, AICourse, 302Student1 orelations - Person Narayanan, Person 302Student1, Teach Narayanan, AICourse, CSStudent 302Student1, Student AICourse, 302Student1, SleepsInTheClass( ) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 3

4 Working Example 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 4

5 FOL - Syntax Definitions Constant Symbols: Name of a specific object John, Richard, Crown, Predicate Symbols: Properties of relationships between objects otakes the value true or false oargument includes one or more objects King, Sibling, Person, > Function Symbols: relations where there is only value for a given input omapping from objects to object Left_Leg_of, Brother_of, 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 5

6 FOL - Syntax Definitions Terms: logical expression that refers to an object f t 1, t 2,, t n, t i is a specific object. Brother_of(John), Left_Leg_of(John) Variables: Refer to an object without naming it x, y, z1, Connectives: Logical connectives to form complex sentences,,,,, = Quantifiers: express properties of entire collection of objects, instead of exhaustive enumeration, 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 6

7 FOL - Quantifiers - For all - Universal Quantifier ostatements about every object in the world without naming it o x P P is true for every object x oall kings are persons x King x Person(x) oall students in the AI class are smart x AIS x S(x) - There exists - Existential Quantifier ostatement about some object in the world without naming it o x P P is true for some object x ojohn has a crown on his head x Crown x OnHead x, John othere is smart student in the AI class x AIS x S x 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 7

8 Quantifier-Connective interaction x AIS x S x All AI students are smart x AIS x S(x) Everything is a smart AI student x AIS x S x There exists an object that is either smart, or not a AI student at all x AIS x S(x) There exists a smart AI student AIS(x) - x is an AI student S(x) - x is smart 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 8

9 Nested Quantifiers x y is same as y x x y is same as y x x y is not same as y x Every monkey has a tail m t has(m, t) Every body loves somebody x y loves(x, y) Every monkey shares a tail t m has(m, t) Somebody is loved by everybody y x loves(x, y) x Crown x x Brother Richard, x The rule is that the variable belongs to the innermost quantifier that mentions it, it will not then be subjected to any other quantification 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 9

10 Connections between and De Morgan s Laws x P x x P(x) x P(x) x P(x) x P(x) x P(x) x P x x P(x) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 10

11 FOL - Semantics Semantics - What the arrangement of the symbols means in the world. Propositional Logic obasic elements are propositional variables e.g., P 11 opossible worlds - mappings from variables to T/F First order logic obasic elements are terms e.g., Richard, Father_of(Richard) ointerpretations: mappings from terms to real-world elements 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 11

12 Example Interpretations map syntactic tokens to model elements Constants: Richard, John Functions: LeftLeg(p) Relations: On(x, y), King(p) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 12

13 Example Interpretations map syntactic tokens to model elements Constants: Richard, John Functions: LeftLeg(p) Relations: On(x, y), King(p) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 13

14 How many interpretations? Two constants and 5 objects in the world orichard, John (objects: R, J, crown, RL, JL) o5 2 = 25 object mappings One unary relation oking(x): x - infinite number of values; infinite number of mappings osuppose x {R, J, Crown, RL, JL }, 2 5 = 32 truth values Two binary relations oleg(x, y); On(x, y) oif we restrict x and y to 5 objects each, yields mappings for each binary relation. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 14

15 Satisfiability, Validity and Entailment S is valid if is true in all interpretations S is satisfiable if it is true in some interpretation S is unsatisfiable if it is false in all interpretations S 1 S 2 for all interpretations where S 1 is true, S 2 is also true. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 15

16 PL vs FOL PL FOL Ontology Facts (P, Q, ) objects, relations, functions Syntax Atomic sentences connectives variables, quantifications, terms, Semantics truth tables interpretations inference algorithm complexity WalkSAT, DPLL NP-Complete unification, forward/backward chaining, theorem proving semi-decidable, may run forever when no entailment 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 16

17 Examples All men are mortal Socrates is a man Socrates is mortal All purple mushrooms are poisonous A mushroom is poisonous only if it is purple No purple mushroom is poisonous There is exactly one mushroom No human enjoys Golf Some professor who is not a historian writes programs Every boy owns a dog 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 17

18 FOL for Wumpus World Objects osquares, Wumpus, agent ogold, pits, stench, breeze Relations osquare topology(adjacency) opits/breezes owumpus/stench 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 18

19 Wumpus World - Squares Each square as an object osquare 11, Square 12, Square 13,, Square 44 Adjacency relation oadjacent(square 11, Square 12 ), oadjacent(square 34, Square 44 ) Better: Squares as lists o[1, 1], [1, 2],,[4, 4] Square topology relations o x, y, a, b: Adjacent x, y, a, b a, b x + 1, y, x 1, y, x, y + 1, x, y 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 19

20 Wumpus World - Pits Each pit has an object opit 11, Pit 21,, Pit 44 oproblem? Not all squares have pits. List only the pits we have opit 31, Pit 33, Pit 44 ono reason to distinguish between the pits Pit as a unary predicate opit x, Pit 3, 1 will be true. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 20

21 Wumpus World Breeze: Represent breezes like pits - unary predicate obreezy x, returns true for squares that are breezy squares adjacent to pits are breezy o a, b, c, d: Pit a, b Adjacent a, b, c, d Breezy c, d Agent s locations: changes over time oat Agent, s, t - agent is in square s at time t. If the agent is at a square and perceives a breeze, then the square is breezy o s, t At Agent, s, t Breeze t Breezy s 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 21

22 Wumpus World Breezy implies possible pits in adjacent squares o s Breezy s r Adjacent s, r Pit r Wumpus - Wumpus as an object owumpus The home square of the Wumpus as a unary predicate owumpusin x Better: Wumpus s home as a function ohome Wumpus references Wumpus s home square. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 22

23 Reasoning and Inference in FOL Instantiation Techniques opropositionalization ounification oforward Chaining obackward Chaining oresolution 3/10/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 23

24 Universal Instantiation Universally quantified sentence oall students in the AI class are smart x AIS x S(x) Intuitively, x can be anything: oais Tom S Tom oais Chair S Chair oais LeftLeg John Formally: x Subst S LeftLeg John S x/p, S ox is replaced with p (ground term) in S, and the quantifier is removed. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 24

25 Existential Instantiation Existentially Quantified sentence othere is smart student in the AI class x AIS x S x Intuitively, x must name something. But what? ocan we conclude:ais Tom S Tom??? ono! The sentence might not be true for Tom! Instead, Use a Skolem constant and draw the conclusion, Formally x S Subst x/k, S ok is called a Skolem constant and is a completely new symbol you created. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 25

26 Inference I: Propositionalization Suppose KB contains just the following: x King x Greedy x Evil(x) King(John) Greedy(John) Brother(Richard, John) Instantiating will result in King John Greedy John Evil John King Richard Greedy Richard Evil Richard King John Greedy John Brother(Richard, John) The new KB is now propositionalized. What are the proposition symbols? 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 26

27 Inference I: Propositionalization Suppose KB contains just the following: x King x Greedy x Evil(x) King(John) Greedy(Richard) Brother(Richard, John) Instantiating will result in King John Greedy John Evil John King Richard Greedy Richard Evil Richard King John Greedy John Brother(Richard, John) The new KB is now propositionalized. What are the proposition symbols? King John, Greedy John, King Richard, 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 27

28 Propositionalization contd. Every FOL KB and query can be propositionalized in such a way that entailment is preserved. opropositionalize the KB and query oapply resolution! Problems can occur with Function Symbols. oe.g., Father Father John Herbrand Theorem: If a sentence α is entailed by a FOL KB, it is entailed by a finite subset of the propositionalized KB. Idea: For n = 0 to do ocreate a propositional KB by instantiating with depth nterms. osee if α is entailed by this KB. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 28

29 Propositionalization contd. Every FOL KB and query can be propositionalized in such a way that entailment is preserved. opropositionalize the KB and query oapply resolution! Problems can occur with Function Symbols. oe.g., Father Father John Herbrand Theorem: If a sentence α is entailed by an FOL KB, it is entailed by a finite subset of the propositional KB. Idea: For n = 0 to do ocreate a propositional KB by instantiating with depth nterms. osee if α is entailed by this KB. Works fine if α is entailed, but loops otherwise. Similar to halting problem in Turning machines - Semidecidable. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 29

30 Problems with Propositionalization Can generate lot of irrelevant sentences e.g., suppose we have x King x Greedy x Evil x King John y Greedy y Brother(Richard, John) It seems obvious that Evil John, but propositionalization produces lots of facts such as Greedy Richard that are irrelevant With p k-ary predicates and n constants there are p n k instantiations With function symbols, it gets much much worse!! 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 30

31 Propositionalization contd. What if we want to use modus ponens from propositional logic? α β, α β γ γ In FOL? x AIS x S(x) AIS Ram???? Must unify x with Ram: oneed to substitute x/ram in AIS x S(x)to infer S(Ram) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 31

32 Unification Going back, suppose we have x King x Greedy x Evil x King John Greedy John Brother(Richard, John) We can get the inference immediately if we can find a substitution θ such that oking(x) and Greedy(x) match with King(John) and Greedy John oθ = x/john works 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 32

33 Unification Going back, suppose we have x King x Greedy x Evil x King John y Greedy y Brother(Richard, John) We can still find a substitution θ such that King(x) and Greedy(x) match King(John) and Greedy y θ = x/john, y/john works UNIFY α, β = θ if αθ = βθ 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 33

34 Unification - Most General Unifier Match up expressions by finding variable values that make the expressions identical Unify AIS x and AIS(Ram) using {x/ram} Unify(a, b) returns the most general unifier. othat places fewest restrictions on values of variables Unify Knows Ram, x, Knows y, z returns { y Ram, x/z} or y Ram, x Ram, z Ram MGU Unification vs Substitution? 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 34

35 Unification Examples Unify Knows John, x, Knows John, Jane Unify Brother x, John, Brother Richard, y Unify Brother x, x, Brother(John, Richard) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 35

36 Unification Examples Unify Knows John, x, Knows John, Jane Unify Brother x, John, Brother Richard, y Unify Brother x, x, Brother(John, Richard) otwo sentences happen to use the same variable ostandardizing apart - renaming the variables in one of the sentences to avoid name clashes. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 36

37 Unification Examples Unify Knows John, x, Knows John, Jane Unify Brother x, John, Brother Richard, y Unify Brother x, x, Brother(John, Richard) Unify f g x, dog, y, f g cat, y, dog Unify f g x, f(x) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 37

38 Unification Examples Unify Knows John, x, Knows John, Jane Unify Brother x, John, Brother Richard, y Unify Brother x, x, Brother(John, Richard) Unify f g x, dog, y, f g cat, y, dog Unify f g x, f(x) oa variable may not contain itself in a substitution ooccur-check 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 38

39 Unification Examples Unify Knows John, x, Knows John, Jane Unify Brother x, John, Brother Richard, y Unify Brother x, x, Brother(John, Richard) Unify f g x, dog, y, f g cat, y, dog Unify f g x, f(x) Unify f g cat, y, y, f x, dog Unify f g y, f x 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 39

40 Generalized Modus Ponens (GMP) AIS Ram x AIS x S(x)???? Unify x with Ram - x/ram in AIS x S(x) Apply MP to infer S(Ram) Generalized Modus Ponens (GMP) o Lifted version of MP (lifts MP from ground Pl to FOL) p 1, p 2,, p n, (p 1 p 2 p n q) q where p i θ = p i θ for all i GMP used with KB of definite clauses, all variables assumed universally quantified. Prove GMP is sound! 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 40

41 Inference II: Forward Chaining The algorithm: Start with the KB Add any fact you can generate with GMP (unify + GMP) Repeat until goal is reached or generation halts. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 41

42 Forward Chaining Example It is a crime for an Indian to sell weapons to hostile nations. The country Nono, an enemy of India, has some missiles. All of its missiles were sold to it by Traitor, who is an Indian. Is Traitor a criminal? 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 42

43 Forward Chaining Example It is a crime for an Indian to sell weapons to hostile nations. The country Nono, an enemy of India, has some missiles. All of its missiles were sold to it by Traitor, who is an Indian. Is Traitor a criminal? Criminal Traitor? KB of definite clauses (exactly one positive literal) o Indian x Weapon y Sells x, y, z Hostile z Criminal(x) o Enemy(Nono, India) o Owns Nono, M 1 M 1 is a Skolem constant o Missile M 1 o Missile x Owns Nono, x Sells(Traitor, x, Nono) o Indian Traitor o Missle x Weapon x o Enemy x, India Hostile(x) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 43

44 Forward Chaining Example Missile x Owns Nono, x Sells Traitor, x, Nono Missle x Weapon x Enemy x, India Hostile(x) Indian Traitor Missile M 1 Owns Nono, M 1 Enemy(Nono, India) Initial Facts in the KB 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 44

45 Forward Chaining Example Missile x Owns Nono, x Sells Traitor, x, Nono Missle x Weapon x Enemy x, India Hostile(x) Weapon M 1 Sells Traitor, M 1, Nono Hostile Nono 3 x/m x/nono x/m 1 Indian Traitor Missile M 1 Owns Nono, M 1 Enemy(Nono, India) Initial Facts in the KB 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 45

46 Forward Chaining Example Indian x Weapon y Sells x, y, z Hostile z Criminal(x) Therefore, Traitor is a criminal Criminal Traitor x Traitor, y M 1, z Nono Weapon M 1 Sells Traitor, M 1, Nono Hostile Nono 3 x/m x/nono x/m 1 Indian Traitor Missile M 1 Owns Nono, M 1 Enemy(Nono, India) Facts after 1 st iteration 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 46

47 Inference II: Forward Chaining Sound oyes, Because GMP is sound Complete oyes, if KB contains only definite clauses Check pg. 331 in textbook Efficiency ounification via exhaustive pattern matching orule rechecking for premise satisfaction at every iteration oirrelevant fact generation Check section for possible strategies 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 47

48 Inference III: Backward Chaining Start with KB and goal Find all rules whose results unify with goal: Add the premises of these rules to the goal list Remove the corresponding result from the goal list Stop when goal list is empty(success) or progress halts (failure) 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 48

49 Backward Chaining Example Goal Criminal Traitor 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 49

50 Backward Chaining Example Indian x Weapon y Sells x, y, z Hostile z Criminal(x) Criminal Traitor x Traitor 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 50

51 Backward Chaining Example Depth-First Traversal Criminal Traitor x Traitor Indian x Weapon y Sells x, y, z Hostile z 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 51

52 Backward Chaining Example Depth-First Traversal Criminal Traitor x Traitor Indian Traitor Weapon y Sells x, y, z Hostile z 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 52

53 Backward Chaining Example Depth-First Traversal Criminal Traitor x Traitor Indian Traitor Weapon y Sells x, y, z Hostile z New Subgoal 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 53

54 Backward Chaining Example Depth-First Traversal KB: Missile y Weapon y ; Missile M 1 Criminal Traitor x Traitor, y M 1 Indian Traitor Weapon y Sells x, y, z Hostile z Missile y y M 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 54

55 Backward Chaining Example Depth-First Traversal Criminal Traitor x Traitor, y M 1 Indian Traitor Weapon y Sells x, y, z Hostile z New Subgoal Missile y z? y M 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 55

56 Backward Chaining Example Depth-First Traversal Missile y Owns Nono, y Sells Traitor, y, Nono Missile M 1 Owns Nono, M 1 Criminal Traitor x Traitor, y M 1, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono Missile y Missile M 1 Owns Nono, M 1 y M 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 56

57 Backward Chaining Example Depth-First Traversal Criminal Traitor x Traitor, y M 1, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono New Subgoal Missile y Missile M 1 Owns Nono, M 1 y M 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 57

58 Backward Chaining Example Depth-First Traversal KB: Enemy z, India Hostile z ; Enemy(Nono, India) Criminal Traitor x Traitor, y M 1, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono Missile y Missile M 1 Owns Nono, M 1 Enemy(Nono, India) y M 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 58

59 Backward Chaining Example Depth-First Traversal Criminal Traitor x Traitor, y M 1, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono Missile y Missile M 1 Owns Nono, M 1 Enemy(Nono, India) y M 1 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 59

60 Inference III: Backward Chaining Depth-First recursive search: space is linear in size of proof. Incomplete due to infinite loops(e.g., repeated states) ofix by checking current goal against all goals on stack ocannot fix infinite paths though Inefficient due to repeated computations ofix using caching of previous results (extra space) Widely used for Logic Programming oprolog (Check Section 9.4 for more information). 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 60

61 Inference IV: Resolution Recall from propositional logic p q, p r s R q r s Literal in one clause Its negation in the other clause Result is the disjunction of the remaining literals. 3/9/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 61

62 Inference IV: Resolution In general p x q A, p B r x s y R q A r B s y l 1 l k, m 1 m n (l 1 l i 1 l i+1 l k m 1 m j 1 m j+1 m n )θ Where Unify l i, m j = θ The two clauses are assumed to be standardized apart so that they share no variables. Apply resolution steps to CNF(KB α). Substitute MGU x/b in all literals 3/10/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 62

63 FOL: Conversion to CNF Everyone who loves all animals is loved by someone x y Animal y Loves x, y y Loves(y, x) Steps to convert to CNF oeliminate biconditionals and implications omove inwards x, p x p, x p x p ostandardize the variables: each quantifier should use a different variable oskolemize: A more general form of existential instantiation Each existential variable is replaced by a Skolem function of the enclosing universally quantified variables odrop universal quantifiers odistribute over 3/10/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 63

64 FOL: Conversion to CNF It is a crime for an Indian to sell weapons to hostile nations. The country Nono, an enemy of India, has some missiles. All of its missiles were sold to it by Traitor, who is an Indian. o Indian x Weapon y Sells x, y, z Hostile z Criminal(x) o Enemy(Nono, India) o Owns Nono, M 1 o Missile M 1 o Missile x Owns Nono, x Sells(Traitor, x, Nono) o Indian Traitor o Missle x Weapon x o Enemy x, India Hostile(x) Resolution uses proof by contradiction o Show KB α by showing KB α is unsatisfiable. Variables are not standardized here. To prove, Traitor is a criminal. Add Criminal Traitor to KB and derive empty clause. 3/10/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 64

65 FOL Resolution Let s try it 3/10/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 65

66 Logic gone crazy 3/10/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 66

First-order logic. Chapter 8, Sections 1 3

First-order logic. Chapter 8, Sections 1 3 First-order logic Chapter 8, Sections 1 3 Artificial Intelligence, spring 2013, Peter Ljunglöf; based on AIMA Slides c Stuart Russel and Peter Norvig, 2004 Chapter 8, Sections 1 3 1 Outline Why FOL? Syntax

More information

Logical Agents (AIMA - Chapter 7)

Logical Agents (AIMA - Chapter 7) Logical Agents (AIMA - Chapter 7) CIS 391 - Intro to AI 1 Outline 1. Wumpus world 2. Logic-based agents 3. Propositional logic Syntax, semantics, inference, validity, equivalence and satifiability Next

More information

11/18/2015. Outline. Logical Agents. The Wumpus World. 1. Automating Hunt the Wumpus : A different kind of problem

11/18/2015. Outline. Logical Agents. The Wumpus World. 1. Automating Hunt the Wumpus : A different kind of problem Outline Logical Agents (AIMA - Chapter 7) 1. Wumpus world 2. Logic-based agents 3. Propositional logic Syntax, semantics, inference, validity, equivalence and satifiability Next Time: Automated Propositional

More information

CSEP 573 Adversarial Search & Logic and Reasoning

CSEP 573 Adversarial Search & Logic and Reasoning CSEP 573 Adversarial Search & Logic and Reasoning CSE AI Faculty Recall from Last Time: Adversarial Games as Search Convention: first player is called MAX, 2nd player is called MIN MAX moves first and

More information

5.4 Imperfect, Real-Time Decisions

5.4 Imperfect, Real-Time Decisions 5.4 Imperfect, Real-Time Decisions Searching through the whole (pruned) game tree is too inefficient for any realistic game Moves must be made in a reasonable amount of time One has to cut off the generation

More information

First Order Logic. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli rev 1.0, 10/1/2001 Page 1

First Order Logic. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli rev 1.0, 10/1/2001 Page 1 First Order Logic Dr. Richard J. Povinelli Copyright Richard J. Povinelli rev 1.0, 10/1/2001 Page 1 Objectives You should! be able to compare and contrast propositional logic and first-order predicate

More information

c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 First-order logic Slide 87

c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 First-order logic Slide 87 Outline Artificial Intelligence Topic 13 First-order logic Why FOL? Syntax and semantics of FOL Fun with sentences Wumpus world in FOL Reading: Russell and Norvig, Chapter 8 c Cara MacNish. Includes material

More information

5.4 Imperfect, Real-Time Decisions

5.4 Imperfect, Real-Time Decisions 116 5.4 Imperfect, Real-Time Decisions Searching through the whole (pruned) game tree is too inefficient for any realistic game Moves must be made in a reasonable amount of time One has to cut off the

More information

First-order logic. Artificial Intelligence. Topic 13. Reading: Russell and Norvig, Chapter 8

First-order logic. Artificial Intelligence. Topic 13. Reading: Russell and Norvig, Chapter 8 Artificial Intelligence Topic 13 First-order logic Reading: Russell and Norvig, Chapter 8 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 First-order logic

More information

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Sub Code : CS6659 Sub Name : Artificial Intelligence Branch / Year : CSE VI Sem / III Year

More information

First-order logic. Chapter 7. AIMA Slides c Stuart Russell and Peter Norvig, 1998 Chapter 7 1

First-order logic. Chapter 7. AIMA Slides c Stuart Russell and Peter Norvig, 1998 Chapter 7 1 First-order logic Chapter 7 AIMA Slides c Stuart Russell and Peter Norvig, 1998 Chapter 7 1 Syntax and semantics of FOL Fun with sentences Wumpus world in FOL Outline AIMA Slides c Stuart Russell and Peter

More information

22c181: Formal Methods in Software Engineering. The University of Iowa Spring Propositional Logic

22c181: Formal Methods in Software Engineering. The University of Iowa Spring Propositional Logic 22c181: Formal Methods in Software Engineering The University of Iowa Spring 2010 Propositional Logic Copyright 2010 Cesare Tinelli. These notes are copyrighted materials and may not be used in other course

More information

Midterm with Answers and FFQ (tm)

Midterm with Answers and FFQ (tm) Midterm with s and FFQ (tm) CSC 242 6 March 2003 Write your NAME legibly on the bluebook. Work all problems. Best strategy is not to spend more than the indicated time on any question (minutes = points).

More information

Intelligent Agents. Introduction to Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 23.

Intelligent Agents. Introduction to Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 23. Intelligent Agents Introduction to Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 23. April 2012 U. Schmid (CogSys) Intelligent Agents last change: 23.

More information

Tableaux. Jiří Vyskočil 2017

Tableaux. Jiří Vyskočil 2017 Tableaux Jiří Vyskočil 2017 Tableau /tæbloʊ/ methods Tableau method is another useful deduction method for automated theorem proving in propositional, first-order, modal, temporal and many other logics.

More information

18 Completeness and Compactness of First-Order Tableaux

18 Completeness and Compactness of First-Order Tableaux CS 486: Applied Logic Lecture 18, March 27, 2003 18 Completeness and Compactness of First-Order Tableaux 18.1 Completeness Proving the completeness of a first-order calculus gives us Gödel s famous completeness

More information

Midterm. CS440, Fall 2003

Midterm. CS440, Fall 2003 Midterm CS440, Fall 003 This test is closed book, closed notes, no calculators. You have :30 hours to answer the questions. If you think a problem is ambiguously stated, state your assumptions and solve

More information

Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, Outline Sets Equality Subset Empty Set Cardinality Power Set

Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, Outline Sets Equality Subset Empty Set Cardinality Power Set Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, 2012 Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) Gazihan Alankuş (Based on original slides by Brahim Hnich

More information

Your Name and ID. (a) ( 3 points) Breadth First Search is complete even if zero step-costs are allowed.

Your Name and ID. (a) ( 3 points) Breadth First Search is complete even if zero step-costs are allowed. 1 UC Davis: Winter 2003 ECS 170 Introduction to Artificial Intelligence Final Examination, Open Text Book and Open Class Notes. Answer All questions on the question paper in the spaces provided Show all

More information

Formal Verification. Lecture 5: Computation Tree Logic (CTL)

Formal Verification. Lecture 5: Computation Tree Logic (CTL) Formal Verification Lecture 5: Computation Tree Logic (CTL) Jacques Fleuriot 1 jdf@inf.ac.uk 1 With thanks to Bob Atkey for some of the diagrams. Recap Previously: Linear-time Temporal Logic This time:

More information

UMBC CMSC 671 Midterm Exam 22 October 2012

UMBC CMSC 671 Midterm Exam 22 October 2012 Your name: 1 2 3 4 5 6 7 8 total 20 40 35 40 30 10 15 10 200 UMBC CMSC 671 Midterm Exam 22 October 2012 Write all of your answers on this exam, which is closed book and consists of six problems, summing

More information

A Historical Example One of the most famous problems in graph theory is the bridges of Konigsberg. The Real Koningsberg

A Historical Example One of the most famous problems in graph theory is the bridges of Konigsberg. The Real Koningsberg A Historical Example One of the most famous problems in graph theory is the bridges of Konigsberg The Real Koningsberg Can you cross every bridge exactly once and come back to the start? Here is an abstraction

More information

Midterm Examination. CSCI 561: Artificial Intelligence

Midterm Examination. CSCI 561: Artificial Intelligence Midterm Examination CSCI 561: Artificial Intelligence October 10, 2002 Instructions: 1. Date: 10/10/2002 from 11:00am 12:20 pm 2. Maximum credits/points for this midterm: 100 points (corresponding to 35%

More information

COMP219: Artificial Intelligence. Lecture 17: Semantic Networks

COMP219: Artificial Intelligence. Lecture 17: Semantic Networks COMP219: Artificial Intelligence Lecture 17: Semantic Networks 1 Overview Last time Rules as a KR scheme; forward vs backward chaining Today Another approach to knowledge representation Structured objects:

More information

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificial Intelligence Spring 2007 Lecture 7: CSP-II and Adversarial Search 2/6/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or

More information

CITS2211 Discrete Structures Turing Machines

CITS2211 Discrete Structures Turing Machines CITS2211 Discrete Structures Turing Machines October 23, 2017 Highlights We have seen that FSMs and PDAs are surprisingly powerful But there are some languages they can not recognise We will study a new

More information

Goal-Directed Tableaux

Goal-Directed Tableaux Goal-Directed Tableaux Joke Meheus and Kristof De Clercq Centre for Logic and Philosophy of Science University of Ghent, Belgium Joke.Meheus,Kristof.DeClercq@UGent.be October 21, 2008 Abstract This paper

More information

Strict Finitism Refuted? Ofra Magidor ( Preprint of paper forthcoming Proceedings of the Aristotelian Society 2007)

Strict Finitism Refuted? Ofra Magidor ( Preprint of paper forthcoming Proceedings of the Aristotelian Society 2007) Strict Finitism Refuted? Ofra Magidor ( Preprint of paper forthcoming Proceedings of the Aristotelian Society 2007) Abstract: In his paper Wang s paradox, Michael Dummett provides an argument for why strict

More information

COMP219: Artificial Intelligence. Lecture 17: Semantic Networks

COMP219: Artificial Intelligence. Lecture 17: Semantic Networks COMP219: Artificial Intelligence Lecture 17: Semantic Networks 1 Overview Last time Rules as a KR scheme; forward vs backward chaining Today Another approach to knowledge representation Structured objects:

More information

Game Mechanics Minesweeper is a game in which the player must correctly deduce the positions of

Game Mechanics Minesweeper is a game in which the player must correctly deduce the positions of Table of Contents Game Mechanics...2 Game Play...3 Game Strategy...4 Truth...4 Contrapositive... 5 Exhaustion...6 Burnout...8 Game Difficulty... 10 Experiment One... 12 Experiment Two...14 Experiment Three...16

More information

Tiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane

Tiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane Tiling Problems This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane The undecidable problems we saw at the start of our unit

More information

Logic and the Sizes of Sets

Logic and the Sizes of Sets 1/25 Logic and the Sizes of Sets Larry Moss, Indiana University EASLLI 2014 2/25 Map of Some Natural Logics FOL FO 2 + trans Church-Turing first-order logic FO 2 + R is trans RC (tr,opp) Peano-Frege Aristotle

More information

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Constructions of Coverings of the Integers: Exploring an Erdős Problem Constructions of Coverings of the Integers: Exploring an Erdős Problem Kelly Bickel, Michael Firrisa, Juan Ortiz, and Kristen Pueschel August 20, 2008 Abstract In this paper, we study necessary conditions

More information

Propositional Calculus II: More Rules of Inference, Application to Additional Motivating Problems

Propositional Calculus II: More Rules of Inference, Application to Additional Motivating Problems Propositional Calculus II: More Rules of Inference, Application to Additional Motivating Problems Selmer Bringsjord Rensselaer AI & Reasoning (RAIR) Lab Department of Cognitive Science Department of Computer

More information

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1 TOPOLOGY, LIMITS OF COMPLEX NUMBERS Contents 1. Topology and limits of complex numbers 1 1. Topology and limits of complex numbers Since we will be doing calculus on complex numbers, not only do we need

More information

Sets. Definition A set is an unordered collection of objects called elements or members of the set.

Sets. Definition A set is an unordered collection of objects called elements or members of the set. Sets Definition A set is an unordered collection of objects called elements or members of the set. Sets Definition A set is an unordered collection of objects called elements or members of the set. Examples:

More information

CS 540: Introduction to Artificial Intelligence

CS 540: Introduction to Artificial Intelligence CS 540: Introduction to Artificial Intelligence Mid Exam: 7:15-9:15 pm, October 25, 2000 Room 1240 CS & Stats CLOSED BOOK (one sheet of notes and a calculator allowed) Write your answers on these pages

More information

Computer Science Faculty Publications

Computer Science Faculty Publications Computer Science Faculty Publications Computer Science 2-4-2017 Playful AI Education Todd W. Neller Gettysburg College Follow this and additional works at: https://cupola.gettysburg.edu/csfac Part of the

More information

Default Reasoning in CHR

Default Reasoning in CHR Default Reasoning in CHR Marcos Aurélio 1,2, François Fages 2, Jacques Robin 1 1 Universidade Federal de Pernambuco, Recife, Brazil 2 INRIA, Rocquencourt, France Abstract. CHR has emerged as a versatile

More information

General Game Playing (GGP) Winter term 2013/ Summary

General Game Playing (GGP) Winter term 2013/ Summary General Game Playing (GGP) Winter term 2013/2014 10. Summary Sebastian Wandelt WBI, Humboldt-Universität zu Berlin General Game Playing? General Game Players are systems able to understand formal descriptions

More information

DVA325 Formal Languages, Automata and Models of Computation (FABER)

DVA325 Formal Languages, Automata and Models of Computation (FABER) DVA325 Formal Languages, Automata and Models of Computation (FABER) Lecture 1 - Introduction School of Innovation, Design and Engineering Mälardalen University 11 November 2014 Abu Naser Masud FABER November

More information

From: AAAI Technical Report FS Compilation copyright 1994, AAAI (www.aaai.org). All rights reserved.

From: AAAI Technical Report FS Compilation copyright 1994, AAAI (www.aaai.org). All rights reserved. From: AAAI Technical Report FS-94-02. Compilation copyright 1994, AAAI (www.aaai.org). All rights reserved. Information Loss Versus Information Degradation Deductively valid transitions are truth preserving

More information

Sequential games. We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other.

Sequential games. We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other. Sequential games Sequential games A sequential game is a game where one player chooses his action before the others choose their. We say that a game has perfect information if all players know all moves

More information

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm CS 88 Introduction to Fall Artificial Intelligence Midterm INSTRUCTIONS You have 8 minutes. The exam is closed book, closed notes except a one-page crib sheet. Please use non-programmable calculators only.

More information

Playful AI Education. Todd W. Neller Gettysburg College

Playful AI Education. Todd W. Neller Gettysburg College Playful AI Education Todd W. Neller Gettysburg College Introduction Teachers teach best when sharing from the core of their enjoyment of the material. E.g. Those with enthusiasm for graphics should use

More information

Description Logic in a nutshell

Description Logic in a nutshell Description Logic in a nutshell Seminar Resources for Computational Linguists SS 2007 Magdalena Wolska & Michaela Regneri Motivation We have seen all those great ontologies - how can we make use of them?

More information

Universiteit Leiden Opleiding Informatica

Universiteit Leiden Opleiding Informatica Universiteit Leiden Opleiding Informatica Solving and Constructing Kamaji Puzzles Name: Kelvin Kleijn Date: 27/08/2018 1st supervisor: dr. Jeanette de Graaf 2nd supervisor: dr. Walter Kosters BACHELOR

More information

All the children are not boys

All the children are not boys "All are" and "There is at least one" (Games to amuse you) The games and puzzles in this section are to do with using the terms all, not all, there is at least one, there isn t even one and such like.

More information

Section Marks Agents / 8. Search / 10. Games / 13. Logic / 15. Total / 46

Section Marks Agents / 8. Search / 10. Games / 13. Logic / 15. Total / 46 Name: CS 331 Midterm Spring 2017 You have 50 minutes to complete this midterm. You are only allowed to use your textbook, your notes, your assignments and solutions to those assignments during this midterm.

More information

10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems

10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems 0/5/05 Constraint Satisfaction Problems Constraint Satisfaction Problems AIMA: Chapter 6 A CSP consists of: Finite set of X, X,, X n Nonempty domain of possible values for each variable D, D, D n where

More information

Final Exam : Constructive Logic. December 17, 2012

Final Exam : Constructive Logic. December 17, 2012 Final Exam 15-317: Constructive Logic December 17, 2012 Name: Andrew ID: Instructions This exam is open notes, open book, and closed Internet. The last page of the exam recaps some rules you may find useful.

More information

Prolog - 3. Prolog Nomenclature

Prolog - 3. Prolog Nomenclature Append on lists Prolog - 3 Generate and test paradigm n Queens example Unification Informal definition: isomorphism Formal definition: substitution Prolog-3, CS314 Fall 01 BGRyder 1 Prolog Nomenclature

More information

arxiv: v1 [math.co] 16 Aug 2018

arxiv: v1 [math.co] 16 Aug 2018 Two first-order logics of permutations arxiv:1808.05459v1 [math.co] 16 Aug 2018 Michael Albert, Mathilde Bouvel, Valentin Féray August 17, 2018 Abstract We consider two orthogonal points of view on finite

More information

Practical Aspects of Logic in AI

Practical Aspects of Logic in AI Artificial Intelligence Topic 15 Practical Aspects of Logic in AI Reading: Russell and Norvig, Chapter 10 Description Logics as Ontology Languages for the Semantic Web, F. Baader, I. Horrocks and U.Sattler,

More information

Notes for Recitation 3

Notes for Recitation 3 6.042/18.062J Mathematics for Computer Science September 17, 2010 Tom Leighton, Marten van Dijk Notes for Recitation 3 1 State Machines Recall from Lecture 3 (9/16) that an invariant is a property of a

More information

Practice Midterm Exam 5

Practice Midterm Exam 5 CS103 Spring 2018 Practice Midterm Exam 5 Dress Rehearsal exam This exam is closed-book and closed-computer. You may have a double-sided, 8.5 11 sheet of notes with you when you take this exam. You may

More information

Scrabble is PSPACE-Complete

Scrabble is PSPACE-Complete Scrabble is PSPACE-Complete Michael Lampis, Valia Mitsou and Karolyna Soltys KTH, GC CUNY, MPI Scrabble is PSPACE-Complete p. 1/25 A famous game... Word game played on a grid 150 million sets sold in 121

More information

Conversion Masters in IT (MIT) AI as Representation and Search. (Representation and Search Strategies) Lecture 002. Sandro Spina

Conversion Masters in IT (MIT) AI as Representation and Search. (Representation and Search Strategies) Lecture 002. Sandro Spina Conversion Masters in IT (MIT) AI as Representation and Search (Representation and Search Strategies) Lecture 002 Sandro Spina Physical Symbol System Hypothesis Intelligent Activity is achieved through

More information

Automata and Formal Languages - CM0081 Turing Machines

Automata and Formal Languages - CM0081 Turing Machines Automata and Formal Languages - CM0081 Turing Machines Andrés Sicard-Ramírez Universidad EAFIT Semester 2018-1 Turing Machines Alan Mathison Turing (1912 1954) Automata and Formal Languages - CM0081. Turing

More information

Implications as rules

Implications as rules DIPLEAP Wien 27.11.2010 p. 1 Implications as rules Thomas Piecha Peter Schroeder-Heister Wilhelm-Schickard-Institut für Informatik Universität Tübingen DIPLEAP Wien 27.11.2010 p. 2 Philosophical / foundational

More information

The probability set-up

The probability set-up CHAPTER 2 The probability set-up 2.1. Introduction and basic theory We will have a sample space, denoted S (sometimes Ω) that consists of all possible outcomes. For example, if we roll two dice, the sample

More information

CS344: Introduction to Artificial Intelligence (associated lab: CS386)

CS344: Introduction to Artificial Intelligence (associated lab: CS386) CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 1: Introduction 3 rd Jan, 2011 Basic Facts Faculty instructor: Dr. Pushpak Bhattacharyya

More information

CS 480: GAME AI TACTIC AND STRATEGY. 5/15/2012 Santiago Ontañón

CS 480: GAME AI TACTIC AND STRATEGY. 5/15/2012 Santiago Ontañón CS 480: GAME AI TACTIC AND STRATEGY 5/15/2012 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2012/cs480/intro.html Reminders Check BBVista site for the course regularly

More information

Lecture 20 November 13, 2014

Lecture 20 November 13, 2014 6.890: Algorithmic Lower Bounds: Fun With Hardness Proofs Fall 2014 Prof. Erik Demaine Lecture 20 November 13, 2014 Scribes: Chennah Heroor 1 Overview This lecture completes our lectures on game characterization.

More information

Theorem Proving and Model Checking

Theorem Proving and Model Checking Theorem Proving and Model Checking (or: how to have your cake and eat it too) Joe Hurd joe.hurd@comlab.ox.ac.uk Cakes Talk Computing Laboratory Oxford University Theorem Proving and Model Checking Joe

More information

CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015

CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015 CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015 YUR NAME: YUR ID: ID T RIGHT: RW: SEAT: The exam will begin on the next page. Please, do not turn the page until told. When you are told to begin

More information

Department of Computer Science San Marcos, TX Report Number TXSTATE-CS-TR Deborah East

Department of Computer Science San Marcos, TX Report Number TXSTATE-CS-TR Deborah East Department of Computer Science San Marcos, TX 78666 Report Number TXSTATE-CS-TR-2006-3 Modeling Contract Bridge Bid Opening Strategies using the aspps System Deborah East 2006-06-30 Modeling Contract Bridge

More information

MODALITY, SI! MODAL LOGIC, NO!

MODALITY, SI! MODAL LOGIC, NO! MODALITY, SI! MODAL LOGIC, NO! John McCarthy Computer Science Department Stanford University Stanford, CA 94305 jmc@cs.stanford.edu http://www-formal.stanford.edu/jmc/ 1997 Mar 18, 5:23 p.m. Abstract This

More information

Remarks on Dialogical Meaning: A Case Study Shahid Rahman 1 (Université de Lille, UMR: 8163, STL)

Remarks on Dialogical Meaning: A Case Study Shahid Rahman 1 (Université de Lille, UMR: 8163, STL) 1 Remarks on Dialogical Meaning: A Case Study Shahid Rahman 1 (Université de Lille, UMR: 8163, STL) Abstract The dialogical framework is an approach to meaning that provides an alternative to both the

More information

CSC242 Intro to AI Spring 2012 Project 2: Knowledge and Reasoning Handed out: Thu Mar 1 Due: Wed Mar 21 11:59pm

CSC242 Intro to AI Spring 2012 Project 2: Knowledge and Reasoning Handed out: Thu Mar 1 Due: Wed Mar 21 11:59pm CSC242 Intro to AI Spring 2012 Project 2: Knowledge and Reasoning Handed out: Thu Mar 1 Due: Wed Mar 21 11:59pm In this project we will... Hunt the Wumpus! The objective is to build an agent that can explore

More information

A Linear-Logic Semantics for Constraint Handling Rules With Disjunction

A Linear-Logic Semantics for Constraint Handling Rules With Disjunction A inear-ogic Semantics for Constraint Handling Rules With Disjunction Hariolf Betz Department of Computer Science, University of Ulm hariolf.betz@uni-ulm.de Abstract. We motivate and develop a linear logic

More information

Introduction to cognitive science Session 3: Cognitivism

Introduction to cognitive science Session 3: Cognitivism Introduction to cognitive science Session 3: Cognitivism Martin Takáč Centre for cognitive science DAI FMFI Comenius University in Bratislava Príprava štúdia matematiky a informatiky na FMFI UK v anglickom

More information

Philosophy. AI Slides (5e) c Lin

Philosophy. AI Slides (5e) c Lin Philosophy 15 AI Slides (5e) c Lin Zuoquan@PKU 2003-2018 15 1 15 Philosophy 15.1 AI philosophy 15.2 Weak AI 15.3 Strong AI 15.4 Ethics 15.5 The future of AI AI Slides (5e) c Lin Zuoquan@PKU 2003-2018 15

More information

Modal logic. Benzmüller/Rojas, 2014 Artificial Intelligence 2

Modal logic. Benzmüller/Rojas, 2014 Artificial Intelligence 2 Modal logic Benzmüller/Rojas, 2014 Artificial Intelligence 2 What is Modal Logic? Narrowly, traditionally: modal logic studies reasoning that involves the use of the expressions necessarily and possibly.

More information

Soundness and Completeness for Sentence Logic Derivations

Soundness and Completeness for Sentence Logic Derivations Soundness and Completeness for Sentence Logic Derivations 13-1. SOUNDNESS FOR DERIVATIONS: INFORMAL INTRODUCTION Let's review what soundness comes to. Suppose I hand you a correct derivation. You want

More information

Pattern Avoidance in Unimodal and V-unimodal Permutations

Pattern Avoidance in Unimodal and V-unimodal Permutations Pattern Avoidance in Unimodal and V-unimodal Permutations Dido Salazar-Torres May 16, 2009 Abstract A characterization of unimodal, [321]-avoiding permutations and an enumeration shall be given.there is

More information

The probability set-up

The probability set-up CHAPTER The probability set-up.1. Introduction and basic theory We will have a sample space, denoted S sometimes Ω that consists of all possible outcomes. For example, if we roll two dice, the sample space

More information

Even 1 n Edge-Matching and Jigsaw Puzzles are Really Hard

Even 1 n Edge-Matching and Jigsaw Puzzles are Really Hard [DOI: 0.297/ipsjjip.25.682] Regular Paper Even n Edge-Matching and Jigsaw Puzzles are Really Hard Jeffrey Bosboom,a) Erik D. Demaine,b) Martin L. Demaine,c) Adam Hesterberg,d) Pasin Manurangsi 2,e) Anak

More information

Decomposition of Multi-Player Games

Decomposition of Multi-Player Games Decomposition of Multi-Player Games Dengji Zhao 1, Stephan Schiffel 2, and Michael Thielscher 2 1 Intelligent Systems Laboratory University of Western Sydney, Australia 2 Department of Computer Science

More information

Heuristic Search with Pre-Computed Databases

Heuristic Search with Pre-Computed Databases Heuristic Search with Pre-Computed Databases Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Abstract Use pre-computed partial results to improve the efficiency of heuristic

More information

Topic 1: defining games and strategies. SF2972: Game theory. Not allowed: Extensive form game: formal definition

Topic 1: defining games and strategies. SF2972: Game theory. Not allowed: Extensive form game: formal definition SF2972: Game theory Mark Voorneveld, mark.voorneveld@hhs.se Topic 1: defining games and strategies Drawing a game tree is usually the most informative way to represent an extensive form game. Here is one

More information

Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 2010

Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 2010 Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 21 Peter Bro Miltersen November 1, 21 Version 1.3 3 Extensive form games (Game Trees, Kuhn Trees)

More information

On game semantics of the affine and intuitionistic logics (Extended abstract)

On game semantics of the affine and intuitionistic logics (Extended abstract) On game semantics of the affine and intuitionistic logics (Extended abstract) Ilya Mezhirov 1 and Nikolay Vereshchagin 2 1 The German Research Center for Artificial Intelligence, TU Kaiserslautern, ilya.mezhirov@dfki.uni-kl.de

More information

1. MacBride s description of reductionist theories of modality

1. MacBride s description of reductionist theories of modality DANIEL VON WACHTER The Ontological Turn Misunderstood: How to Misunderstand David Armstrong s Theory of Possibility T here has been an ontological turn, states Fraser MacBride at the beginning of his article

More information

Principles of Computer Game Design and Implementation. Lecture 20

Principles of Computer Game Design and Implementation. Lecture 20 Principles of Computer Game Design and Implementation Lecture 20 utline for today Sense-Think-Act Cycle: Thinking Acting 2 Agents and Virtual Player Agents, no virtual player Shooters, racing, Virtual

More information

Dynamic Games: Backward Induction and Subgame Perfection

Dynamic Games: Backward Induction and Subgame Perfection Dynamic Games: Backward Induction and Subgame Perfection Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Jun 22th, 2017 C. Hurtado (UIUC - Economics)

More information

Adverserial Search Chapter 5 minmax algorithm alpha-beta pruning TDDC17. Problems. Why Board Games?

Adverserial Search Chapter 5 minmax algorithm alpha-beta pruning TDDC17. Problems. Why Board Games? TDDC17 Seminar 4 Adversarial Search Constraint Satisfaction Problems Adverserial Search Chapter 5 minmax algorithm alpha-beta pruning 1 Why Board Games? 2 Problems Board games are one of the oldest branches

More information

From ProbLog to ProLogic

From ProbLog to ProLogic From ProbLog to ProLogic Angelika Kimmig, Bernd Gutmann, Luc De Raedt Fluffy, 21/03/2007 Part I: ProbLog Motivating Application ProbLog Inference Experiments A Probabilistic Graph Problem What is the probability

More information

Awareness and Understanding in Computer Programs A Review of Shadows of the Mind by Roger Penrose

Awareness and Understanding in Computer Programs A Review of Shadows of the Mind by Roger Penrose Awareness and Understanding in Computer Programs A Review of Shadows of the Mind by Roger Penrose John McCarthy Computer Science Department Stanford University Stanford, CA 94305. jmc@sail.stanford.edu

More information

CIS/CSE 774 Principles of Distributed Access Control Exam 1 October 3, Points Possible. Total 60

CIS/CSE 774 Principles of Distributed Access Control Exam 1 October 3, Points Possible. Total 60 Name: CIS/CSE 774 Principles of Distributed Access Control Exam 1 October 3, 2013 Question Points Possible Points Received 1 24 2 12 3 12 4 12 Total 60 Instructions: 1. This exam is a closed-book, closed-notes

More information

A State Equivalence and Confluence Checker for CHR

A State Equivalence and Confluence Checker for CHR A State Equivalence and Confluence Checker for CHR Johannes Langbein, Frank Raiser, and Thom Frühwirth Faculty of Engineering and Computer Science, Ulm University, Germany firstname.lastname@uni-ulm.de

More information

Extensive Games with Perfect Information. Start by restricting attention to games without simultaneous moves and without nature (no randomness).

Extensive Games with Perfect Information. Start by restricting attention to games without simultaneous moves and without nature (no randomness). Extensive Games with Perfect Information There is perfect information if each player making a move observes all events that have previously occurred. Start by restricting attention to games without simultaneous

More information

Awareness in Games, Awareness in Logic

Awareness in Games, Awareness in Logic Awareness in Games, Awareness in Logic Joseph Halpern Leandro Rêgo Cornell University Awareness in Games, Awareness in Logic p 1/37 Game Theory Standard game theory models assume that the structure of

More information

THE PIGEONHOLE PRINCIPLE. MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin

THE PIGEONHOLE PRINCIPLE. MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin THE PIGEONHOLE PRINCIPLE MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin The Pigeonhole Principle: If n + 1 objects are placed into n boxes, then some box contains

More information

Dominant and Dominated Strategies

Dominant and Dominated Strategies Dominant and Dominated Strategies Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Junel 8th, 2016 C. Hurtado (UIUC - Economics) Game Theory On the

More information

RMT 2015 Power Round Solutions February 14, 2015

RMT 2015 Power Round Solutions February 14, 2015 Introduction Fair division is the process of dividing a set of goods among several people in a way that is fair. However, as alluded to in the comic above, what exactly we mean by fairness is deceptively

More information

A Highly Generalised Automatic Plugin Delay Compensation Solution for Virtual Studio Mixers

A Highly Generalised Automatic Plugin Delay Compensation Solution for Virtual Studio Mixers A Highly Generalised Automatic Plugin Delay Compensation Solution for Virtual Studio Mixers Tebello Thejane zyxoas@gmail.com 12 July 2006 Abstract While virtual studio music production software may have

More information

SF2972: Game theory. Introduction to matching

SF2972: Game theory. Introduction to matching SF2972: Game theory Introduction to matching The 2012 Nobel Memorial Prize in Economic Sciences: awarded to Alvin E. Roth and Lloyd S. Shapley for the theory of stable allocations and the practice of market

More information

Introduction to probability

Introduction to probability Introduction to probability Suppose an experiment has a finite set X = {x 1,x 2,...,x n } of n possible outcomes. Each time the experiment is performed exactly one on the n outcomes happens. Assign each

More information

Tema 2: Lógica de primer orden en PVS

Tema 2: Lógica de primer orden en PVS Métodos Formales en Computación e I.A. Curso 200 02 Tema 2: Lógica de primer orden en PVS José A. Alonso Jiménez Jose-Antonio.Alonso@cs.us.es http://www.cs.us.es/ jalonso Dpto. de Ciencias de la Computación

More information