Mathematical Logics
Decision Procedures –TruthTables*
Fausto Giunchiglia and Mattia Fumagalli
University of Trento
*Originally by Luciano Serafini and Chiara Ghidini Modified by Fausto Giunchiglia and Mattia Fumagalli
Mathematical Logics Decision Procedures TruthTables * Fausto - - PowerPoint PPT Presentation
Mathematical Logics Decision Procedures TruthTables * Fausto Giunchiglia and Mattia Fumagalli University of Trento *Originally by Luciano Serafini and Chiara Ghidini Modified by Fausto Giunchiglia and Mattia Fumagalli 0 Truth Tables Recall
University of Trento
*Originally by Luciano Serafini and Chiara Ghidini Modified by Fausto Giunchiglia and Mattia Fumagalli
1
2
3
4
5
6
7
8
9
true ∧ true = true true → true = true true ∧ false = false true → false = false false ∧ true = false false → true = true false ∧ false = false false → false = true true ∨ true = true true ≡ true = true true ∨ false = true true ≡ false = false false ∨ true = true false ≡ true = false false ∨ false = false false ≡ false = true ¬ true = false ¬ false = true
10
11
MCDP(I,p) if I(p) = true then return YES else return NO MCDP(I, φ∧ψ) if MCDP(I, φ) then return MCDP(I, ψ) else return NO MCDP(I, φ∨ψ) if MCDP(I, φ) then return YES else return MCDP(I, ψ) MCDP(I, φ→ ψ) if MCDP(I, φ) then return MCDP(I, ψ) else return YES MCDP(I, φ≡ψ) if MCDP(I, φ) then return MCDP(I, ψ) else return not(MCDP(I, ψ)
12
13
14
15
16
17
18
&' '() * +()
19
20
21
22
23
CNF(p) = p if p ∈ P CNF(¬p) = ¬p if p ∈ P CNF(φ → ψ) = CNF(¬φ) ⊗ CNF(ψ) CNF(φ ∧ψ) = CNF(φ) ∧CNF(ψ) CNF(φ ∨ψ) = CNF(φ) ⊗CNF(ψ) CNF(φ ≡ ψ) = CNF(φ → ψ) ∧ CNF(ψ → φ) CNF(¬¬φ) = CNF(φ) CNF(¬(φ → ψ)) = CNF(φ) ∧CNF(¬ψ) CNF(¬(φ ∧ψ)) = CNF(¬φ) ⊗CNF(¬ψ) CNF(¬(φ ∨ψ)) = CNF(¬φ) ∧CNF(¬ψ) CNF(¬(φ ≡ ψ)) = CNF(φ ∧ ¬ψ) ⊗CNF(ψ ∧ ¬φ)
24
25
26
27
28
29
30
31
32
33
34
35
36
1 2
3 The formula is equisatisfiable to φ and is in CNF.
37
38
39
40
41
I(p)= true I(q)= false {{p}, {¬p, ¬q}, {¬q, r } } I(p)= true { { T } , {¬T , ¬q}, {¬q, r } } {{¬q}, {¬q, r } } {{¬q}, {¬q, r } } I(q)= false { { T } , {T, r } } { }
42
43
44
45
46
47
48