1
First-Order Logic and Inference
Berlin Chen 2004
References:
- 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach, Chapters 7,8 and 9
- 2. S. Russell’s teaching materials
First-Order Logic and Inference Berlin Chen 2004 References: 1. S. - - PowerPoint PPT Presentation
First-Order Logic and Inference Berlin Chen 2004 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach , Chapters 7,8 and 9 2. S. Russells teaching materials 1 Pros and Cons of Propositional Logic (PL) PL
1
References:
2
The lack of concise representations
3
4
5
6
7
8
relations, properties complex terms
9
10
function symbol argument/term
11
12
13
14
15
16
17
18
19
20
21
22
A substitution or binding list
stench breeze glitter bump scream
23
stench breeze glitter bump scream
24
model-based reasoning
25
θ={x/John}
∀x King(x)∧Greedy(x) ⇒ Evil(x) King(John)∧Greedy(John) ⇒ Evil(John)
SUBST(θ,α) θ={x/John}
26
∃x Crown(x)∧OnHead(x, John) Crown(C1)∧OnHead(C1, John)
27
28
29
30
Father(John) Father(Father(John )) Father(Father(Father(John))) ……. depth 1 depth 2 depth 3 depth n
31
32
33
2 1 ' ' 2 ' 1
n n
2 ' 2 1 ' 1
n atomic sentences pi’ 1 implication
: a set of variable/(ground)term pairs atomic sentences the premises of an implication
34
35
36
Knows(John, z) Knows(John, John)
37
As matching a variable against a complex term, check whether the variable itself occurs inside the term. If it does, the match fails.
38
39
40
41
42
A datalog KB: composed of a set of FOL definite clauses with no function symbols
existential elimination/instantiation AND elimination
background knowledge!
43
44
Proof Tree
45
x/M1 x/M1 x/Nono
Proof Tree
46
A fixed point is reached: no more new inferences can be further concluded
Proof Tree
47
renaming the variables pattern matching the new fact unified with the query
48
49
50
51
∧ Known facts rule
52
53
54
new subgoals Proof Tree
55
Proof Tree
56
Proof Tree
57
Proof Tree
58
Once one subgoal in a conjunction succeeds, its substitution is applied to subsequent subgoals
Proof Tree
59
Proof Tree
60
61
62
63
64
65
+ − + − j i n j j k i i n k
1 1 1 1 1 1 1 1
+ − + − j i n j j s r k i i n r s k
1 1 1 1 1 1 1 1 1 1 1 1
66
67
x/West x/y y/M1 x/Nono
An empty clause achieved !
68
69
70
x/Tuna z/Tuna x/Jack z z x/Jack, z/F(Jack) x/Jack, and Factoring renaming y/G(Jack)