truth, deduction, computation lecture e
DESCRIPTION
My logic lectures at SCU Quantiviers, part 4TRANSCRIPT
![Page 1: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/1.jpg)
Truth, Deduction, ComputationLecture EQuantifiers, part 4 (final)
Vlad PatryshevSCU2013
![Page 2: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/2.jpg)
Recap: Proof methods
● Existential Instantiation. if we have ∃x P(x), add a name (e.g. c) for the object satisfying P(x); and you may assume P(c).
● General Conditional Proof: to prove ∀x (P(x) → Q(x), add a name (e.g. c), assume P(c), prove Q(c).
● Universal Generalization: to prove ∀x Q(x), do the same as above, with P(x)=⊤
![Page 3: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/3.jpg)
SamplesEuclid’s Theorem: infinity of primes
(in the universe of natural numbers)
∀x ∃y (y ≥ x ∧ Prime(y))
![Page 4: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/4.jpg)
SamplesSomething Stronger: twin primes
(in the universe of natural numbers)
∀x ∃y (y>x ∧ Prime(y) ∧ Prime(y+2))
(works for x < 2003663613 · 2195000 - 2)
![Page 5: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/5.jpg)
SamplesSomething Wronger
(in the universe of humans and towns)
∃z ∃x (BarberOf(x, z) ∧ ∀y (ManOf(y, z) → (Shaves(x, y) ↔ ¬Shaves(y, y))))
![Page 6: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/6.jpg)
Can we do 12.15?
![Page 7: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/7.jpg)
Add Axioms to Shape World
Basic Shape Axioms:
1. ¬∃x(Cube(x)∧Tet(x))2. ¬∃x(Tet(x)∧Dodec(x))3. ¬∃x(Dodec(x)∧Cube(x))4. ∀x(Tet(x)∨Dodec(x)∨Cube(x))
![Page 8: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/8.jpg)
Is this system Complete?
The book says yes.“We say that a set of axioms is complete if, whenever an argument is intuitively valid (given the meanings of the predicates and the intended range of circumstances), its conclusion is a first-order consequence of its premises taken together with the axioms in question.”
E.g. ∃x Cube(x)
E.g.∀x CanGiveToMyDog(x)
![Page 9: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/9.jpg)
Definitions of Completeness
A formal system S is semantically complete iff⊨ P yields ⊢ P in S.
![Page 10: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/10.jpg)
Definitions of Completeness
A formal system S is strongly complete iffP ⊨ Q yields P ⊢ Q in S.
![Page 11: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/11.jpg)
Definitions of Completeness
A formal system S is syntactically complete iff we can prove either ⊢ Q
or⊢ ¬Q in S.
In other words, cannot add an independent axiom.
![Page 12: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/12.jpg)
Example from Shapes world
∃x ∃y (Tet(x) ∧ Dodec(y) ∧ ∀z (z = x ∨ z = y))
¬∃x Cube(x)
Can we? (The book says we cannot.)
![Page 13: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/13.jpg)
Now can we prove this?
∀x SameShape(x, x)
![Page 14: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/14.jpg)
Add More Axioms to Shape World
SameShape Introduction Axioms:
1. ∀x∀y((Cube(x)∧Cube(y))→SameShape(x,y)) 2. ∀x∀y((Dodec(x)∧Dodec(y))→SameShape(x,
y)) 3. ∀x∀y((Tet(x)∧Tet(y))→SameShape(x,y))
![Page 15: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/15.jpg)
Add More Axioms to Shape World
SameShape Elimination Axioms:
1. ∀x∀y((SameShape(x,y)∧Cube(x))→Cube(y))2. ∀x∀y((SameShape(x,y)∧Dodec(x))→Dodec
(y))3. ∀x∀y((SameShape(x,y)∧Tet(x))→Tet(y))
The book says, with these axioms, the Shapes theory is complete.
![Page 16: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/16.jpg)
Can we prove this now?
∀x SameShape(x, x)
![Page 17: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/17.jpg)
Truth, Deduction, ComputationLecture F part 2Quantifiers, Formal Proofs
Vlad PatryshevSCU2013
![Page 18: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/18.jpg)
Formal Proofs in FOLUniversal Elimination (∀ Elim)
∀x S(x) ⊢ S(c)
![Page 19: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/19.jpg)
Formal Proofs in FOLGeneral Conditional Proof (∀ Intro)
c P(c) → Q(c) ⊢ ∀x (P(x) → Q(x))
“arbitrary c”
![Page 20: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/20.jpg)
Formal Proofs in FOLUniversal Introduction (∀ Intro)
c P(c) ⊢ ∀x P(x)
“arbitrary c”
![Page 21: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/21.jpg)
Formal Proofs in FOLExistential Introduction (∃ Intro)
P(c) ⊢ ∃x P(x)
![Page 22: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/22.jpg)
Formal Proofs in FOLExistential Elimination (∃ Elim)
1. Suppose ∃x P(x)2. Invent a new name (e.g. c) for such x3. Suppose P(c) ⊢ Q4. Q
alternatively
![Page 23: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/23.jpg)
Words of Wisdom
![Page 24: Truth, deduction, computation lecture e](https://reader033.vdocument.in/reader033/viewer/2022051608/545ae23aaf79594f558b5e80/html5/thumbnails/24.jpg)
That’s it for today