ARTIFICIAL INTELLIGENCE
Russell & Norvig Chapter 8. First-Order Logic, part 2
ARTIFICIAL INTELLIGENCE Russell & Norvig Chapter 8. - - PowerPoint PPT Presentation
ARTIFICIAL INTELLIGENCE Russell & Norvig Chapter 8. First-Order Logic, part 2 Interacting with FOL KBs Tell the system assertions Facts : Tell (KB, person (John) ) Rules: Tell (KB, x, person(x) likes(x,
Russell & Norvig Chapter 8. First-Order Logic, part 2
Fred) (x Mary) … )
father(X,Y) :- parent(X,Y), male(X). brother(X,Y) :- male(X), mother(M,X), mother(M,Y), father(F,X), father(F,Y), not(X=Y).
daughter(D,P) :- female(D), parent(P,D).
parent(X,Y), parent(Y,Z).
parent(GGP,P), grandchild(C,P).
married(george,mum). married(spencer,kydd). married(philip,elizabeth). married(charles,diana). … male(andrew). male(edward). male(william). male(harry). … female(elizabeth). female(margaret). female(diana). female(anne). female(sarah). … parent(george,elizabeth). parent(mum,elizabeth). parent(spencer,diana). parent(kydd,diana). parent(elizabeth,charles). parent(philip,charles). parent(elizabeth,anne). parent(philip,anne). parent(elizabeth,andrew). parent(philip,andrew). parent(diana,william). parent(charles,william). parent(diana,harry). parent(charles,harry). …
∀ s, g, m, c, t Percept([s, Breeze, g, m, c], t) ⇒ Breeze(t) ∀ s, b, m, c, t Percept([s, b, Glitter, m, c], t) ⇒ Glitter(t)
(x=a ∧(y=b-1 !∨ !y=b+1)) !∨ !(y=b !∧ !(x=a-1 !∨ !x=a+1))
If agent is at square s at time t and there is a Breeze percept at time t, then square s is Breezy. ∀ s,t At(Agent, s, t) ∧ Breeze(t) ⇒ Breezy(s)
Then in FOL, locating Pits is summarized in one axiom:
∀ s Breezy(s) ó ∃r Adjacent(r,s) ∧ Pit(r)
Can also quantify over time:
∀ t HaveArrow(t+1) ó HaveArrow(t) ∧ ¬ Action(Shoot, t))