First-Order Logic
1
CSE 4308/5360 – Artificial Intelligence I Vassilis Athitsos University of Texas at Arlington
First-Order Logic CSE 4308/5360 Artificial Intelligence I Vassilis - - PowerPoint PPT Presentation
First-Order Logic CSE 4308/5360 Artificial Intelligence I Vassilis Athitsos University of Texas at Arlington 1 Limitations of Propositional Logic In the 4x4 wumpus world, how can we say that pits cause breezes in adjacent squares? 2
1
CSE 4308/5360 – Artificial Intelligence I Vassilis Athitsos University of Texas at Arlington
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
– Using a constant, like 1, John. – Using a variable (that has been introduced using a quantifier). – Using a function call, like Mother(Mary), or more complicated, nested calls, like Mother(Father(Mother(Mary)))
35
36
37
– An application of a predicate. Example: cousins(mother(Mary), father(father(John))) – An equality test. Example: mother(Mary) = Jane – An application of an existential or universal quantifier. Example: ∀ x, y : Mother(x, y) => (Female(x) ∧ Parent(x, y)) – An application of a connective to combine simpler sentences. Example: Female(Jane) ∧ Parent(Jane, Edward)
38
39
40
41
42
43
44
45
– Five constants. – No functions. – Three predicates, that take two arguments. – One predicate that takes one argument.
46
– Five constants. – No functions. – Three predicates, that take two arguments. – One predicate that takes one argument.
47
– Five constants. – No functions. – Three predicates, that take two arguments. – One predicate that takes one argument.
48
49
– Tall, takes one argument. – Parent, takes two arguments.
50
– Tall, takes one argument. – Parent, takes two arguments.
– Tall_Edward, Tall_Mary. – Parent_Edward_Edward, Parent_Edward_Mary, Parent_Mary_Edward, Parent_Mary_Mary.
51
– Tall, takes one argument. – Parent, takes two arguments.
52
– Tall, takes one argument. – Parent, takes two arguments.
Tall_Edward ∧ not(Tall_Mary) not(Parent_Edward_Mary)
53
Tall_Edward ∧ not(Tall_Mary) not(Parent_Edward_Mary)
54
55
– Tall, takes one argument.
– Mother, takes one argument.
56
– Tall, takes one argument.
– Mother, takes one argument.
57
– Tall, takes one argument.
– Mother, takes one argument.
58
59
60
return true in a finite (exponential in the worst case) amount of time.
algorithms might return false in a finite amount of time, but they might also never terminate.
61
– Exponential time (in the worst case) if the knowledge base entails the statement. – Infinite time (in the worst case) if the knowledge base does not entail the statement.
– Languages that are somewhat similar to first-order logic. – Inference algorithms that are fast.
62