




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
FOL- Information about logic, reasoning and uncertainty in first order logic
Typology: Exams
1 / 108
This page cannot be seen from the preview
Don't miss anything!
© CSE AI Faculty
Propositional Logic
Resolution
WalkSAT
Reasoning with First-Order Logic
Unification
Forward/Backward Chaining
Resolution
Wumpus again
Uncertainty
Bayesian networks
IDEA: To show
α
, use proof by
contradiction, i.e., show
∧ ¬ α
unsatisfiable
KB is in
KB is conjunction of clauses E.g., (A
Literals
Clause
General Resolution inference rule (for CNF):
l^1
l^
k
m
1
m
n
l^1
li-
l
i+
l^
k
m
1
m
j-
m
j+
m
n
where
li
and
m
j^
are complementary
literals (
i^
)j
E.g.,
1,
2,
2,
1,
Empty clause
Recall that KB is a
conjunction
of all these clauses
Is
1,
1,
satisfiable? No!
Therefore, KB
∧ ¬ α
is unsatisfiable, i.e.,
α
You got a literal and its negation What does this mean?
¬α
Two kinds (roughly):
Successive application of inference rules
Generate new sentences from old in a sound way
Proof = a sequence of inference rule applications
Use inference rules as
successor function in a
standard search algorithm
E.g., Resolution
Model checking
Done by checking satisfiability: the SAT problem
Recursive depth-first enumeration of models usingheuristics: DPLL algorithm
(sec. 7.6.1 in text)
Local search algorithms (sound but incomplete)
e.g., randomized hill-climbing (WalkSAT)
Recall:
α
iff
α
is unsatisfiable
Thus, algorithms for satisfiability can be used for
inference by showing
α
is unsatisfiable
BUT… showing a sentence issatisfiable (the SAT problem)
is NP-complete!
Finding a fast algorithm for SAT automatically yields fast algorithms
for hundreds of difficult (NP-
complete) problems
I really can’t get
¬
satisfaction
Greed
Randomness
Consider random 3-CNF sentences. e.g.,
n = 50
KB contains "physics" sentences for every single
square For every time step
we need to add to the KB:
x,y
t^
t^
x+1,y
Rapid proliferation of sentences!
t+
t
What we’d like is a way to talk aboutobjects and
groups of objects, and to
What we’d like is a way to talk aboutobjects and
groups of objects, and to