Beruflich Dokumente
Kultur Dokumente
Goals
Feigenbaum: In the knowledge lies the
power. Success with expert systems. 70s.
What can we represent?
Logic(s): Prolog
Mathematical knowledge: mathematica
Common Sense Knowledge: Lenats Cyc has a
million statement in various knowledge
Probabilistic Knowledge: Bayesian networks
History
300 BC Aristotle: Syllogisms
Late 1600s Leibnitzs goal: mechanization
of inference
1847 Boole: Mathematical Analysis of Logic
1879: Complete Propositional Logic: Frege
1965: Resolution Complete (Robinson)
1971: Cook: satisfiability NP-complete
1992: GSAT Selman min-conflicts
Syllogisms
Proposition = Statement that may be either
true or false.
John is in the classroom.
Mary is enrolled in 270A.
If A is true, and A implies B, then B is true.
If some A are B, and some B are C, then
some A are C.
If some women are students, and some
students are men, then .
Concerns
What does it mean to say a statement is
true?
What are sound rules for reasoning
What can we represent in propositional
logic?
What is the efficiency?
Can we guarantee to infer all true
statements?
Semantics
p =>q
~p or q
t
t
t
t
t
f
t
t
t
f
t
t
t
f
t
t
Implies =>
If 2+2 = 5 then monkeys are cows. TRUE
If 2+2 = 5 then cows are animals. TRUE
Indicates a difference with natural
reasoning. Single incorrect or false belief
will destroy reasoning. No weight of
evidence.
Inference
Concepts
Equivalence: two sentences are equivalent
if they are true in same models.
Validity: a sentence is valid if it true in all
models. (tautology) e.g. P or not P.
Sign: Members or not Members only.
Berra: Its not over till its over.
Validity != Provability
Goldbachs conjecture: Every even number
(>2) is the sum of 2 primes.
This is either valid or not.
It may not be provable.
Godel: No axiomization of arithmetic will
be complete, i.e. always valid statements
that are not provable.
P
(P&Q) =>R
(S or T) => Q
T
Distributive laws:
(-s&-t) or q
(-s or q)&(-t or q).
P
-P or Q or R
-S or Q
-T or Q
T
Remember:implicit
adding.
Resolution Proof
P (1)
-P or Q or R (2)
-S or Q (3)
-T or Q (4)
T (5)
~R (6)
-P or Q : 7 by 2 & 6
-Q : 8 by 7 & 1.
-T : 9 by 8 & 4
empty: by 9 and 5.
Done: order only
effects efficiency.
Resolution Algorithm
To prove s1, s2..sn |-- s
1. Put s1,s2,..sn & not s into cnf.
2. Resolve any 2 clauses that have
complementary literals
3. If you get empty, done
4. Continue until set of clauses doesnt grow.
Search can be expensive (exponential).
Forward Reasoning
Backwards Reasoning:
what prolog does
Davis-Putnam Algorithm
Effective, complete propositional algorithm
Basically: recursive backtracking with tricks.
early termination: short circuit evaluation
pure symbol: variable is always + or (eliminate the
containing clauses)
one literal clauses: one undefined variable, really
special cases of MRV
WalkSat
Heuristic algorithm, like min-conflicts
Randomly assign values (t/f)
For a while do
randomly select a clause
with probability p, flip a random variable in
clause
else flip a variable which maximizes number of
satisfied clauses.