Truth, Deduction, Computation
Introduction
1
Vlad Patryshev
SCU
2019
© 2020 Vlad Patryshev
Logic: Variety of Interpretations
2
Logic in China
3
Mozi (墨子) (468-376 BC) , School of Mohism
Three validity tests: ancient authority, common observation, and practical effect.
The statement "All statements are mistaken" implies that it is itself mistaken, and one cannot "reject rejection" without refusing to reject one's own rejection.
"The ghost of a man is not a man," but "The ghost of my brother is my brother."
"A robber is a man, but abounding in robbers is not abounding in men, nor is being without robbers being without men." https://www.sciencemag.org/news/2017/06/china-s-quantum-satellite-achieves-spooky-action-record-distance
Guō Mòruò (郭沫若) called him a facsist.
GōngSūn Lóng (公孫龍) 325–250 BC, School of Names
"One and one cannot become two, since neither becomes two."�“White horses are not horses”
“A planet can be any size. A planet can be giant or very small. A dwarf planet can only be very small. Therefore, one can say that a dwarf planet is not a planet.”
(Later, though, the only allowed logic was Buddhist logic imported from India)
4
© Copyright 2012 Sanjay Kulkarni
Logic in India
5
Positive configuration | Negative configuration |
P | Not (P) |
Not-P | Not (Not-P) |
Both P and Not-P | Not (Both P and Not-P) |
Neither P nor Not-P | Not (Neither P nor Not-P) |
dharmachakra (धर्मचक्र)
(“wheel of laws”)
India: Navya-Nyaya School (13th century)
Syadvada - “could-be-ism” (in Jaina logic)
1.Syād-asti — “maybe it is”
2.Syād-nāsti — “maybe it is not”
3.Syād-asti-nāsti — “maybe it is, maybe it is not”
4.Syād-asti-avaktavyaḥ — “maybe it is, hard to tell”
5.Syād-nāsti-avaktavyaḥ — “maybe it is not, hard to tell”
6.Syād-asti-nāsti-avaktavyaḥ — “maybe it is, maybe it is not, hard to tell”
7.Syād-avaktavyaḥ — “it may be hard to tell”
6
Navya-Nyaya Epistemology
The central concern of Indian logic as founded in Nyāya is epistemology, or the theory of knowledge.
Navya-Nyāya lists seven ‘categories’ (padārtha) of object:
7
Logic in India: an Example
8
Yudhisthira (युधिष्ठिर)
Yudhisthira never said a lie, and as a reward, his chariot was not touching the earth.
Once Lord Krishna asked him to tell guru Drona about Ashwathama being killed by Bhima. Drona’s son’s name was Ashwathama, but it was actually an elephant with the same name that Bhima killed.
Yudhisthra said “Ashwathama was killed, a man or an elephant”.
The moment Yudhisthira pronounced a statement that was partially a lie, though it was true as a whole, his chariot came down.
Jewish Logic
Example: Kal va-chomer (קל וחומר) (a fortiori, in Latin, kaimutya nyaya in Nyaya)
If a parent will punish his or her child with a minor punishment should the latter return home with scuffed shoes, surely the parent will punish his or her child with a major punishment should the latter return home with scuffed shoes, ripped pants and a torn shirt. This is an illogical deduction
Why:
Leviticus 18:21 speaks of the prohibition of worshiping Molech, a form of worship in which children were passed through fire (presumably until dead). - but if you fry them all, which is stronger, it beats the purpose, so it’s legal. You are not allowed to sacrifice some of your kids for the sake of your enterprise, but if you fry them all, what’s the point?
// see also a discussion in http://minski-gaon.livejournal.com/100791.html (Russian)
(Есть очень хорошие исследования проф. Габая. Есть по русски ъорошая книжка С.Долгопольского про риторику Талмуда. )
9
Deontic logic is the field of logic that is concerned with normative concepts. such as obligation, permission, and prohibition.
Logic in Greece
10
Aristotle (Ἀριστοτέλης) 384–322 BC
Syllogisms
See also enthymeme (same thing as syllogism)
Renaissance Europe
Pierre Abélard (France, 1079–1142)
William of Ockham (England, 1285–1349)
(non sunt entia multiplicanda praeter necessitatem)
Jean Buridan (France, c. 1300-post 1358)
(remember the donkey?)
11
Western Europe, XIX-XX centuries
12
Georg Cantor, 1845-1918
“No matter how correct a mathematical theorem may appear to be, one ought never to be satisfied that there was not something imperfect about it until it also gives the impression of being beautiful.”
“In mathematics the art of asking questions is more valuable than solving problems.”
“The essence of mathematics lies in its freedom.”
Finals
Questions
Year 1862
13
Europe/US, XX century
14
David Hilbert, 1862-1943
“No one shall expel us from the paradise that Cantor has created for us.”
Kurt Gödel, 1906-1978
“The more I think about language, the more it amazes me that people ever understand each other at all.”
“The brain is a computing machine connected with a spirit.”
Paul Cohen,
1934–2007
(independence of continuum hypothesis)
Alexander Esenin-Volpin,
1926-2016
“Numbers bigger than 1011 should be considered infinite”
XXI century
15
Gregory Chaitin, b.1947
"there are mathematical facts that are true for no reason, they're true by accident. They are random mathematical facts"
Saul Kripke, b.1940
“Lois Lane believes that Superman can fly, although she does not believe that Clark Kent can fly.”
Per Martin-Löf,
b. 1942
(intuitionistic type theory)
Vladimir Voevodsky (1966-2017)
(Homotopy Type Theory)
Applications: Legal (and media)
16
Applications: Legal
17
Applications: Religions
18
Applications: IQ Tests
A Division Director scheduled six meetings on Wednesday with his direct reports: Anita, Harold, Ben, Markus, Sheila, and Carol. Each meeting is with only one direct report, and each direct report will meet only once with the Division Director. The Division Director labeled the meeting timeslots in order from 1 through 6, with timeslot 1 occurring first and timeslot 6 occurring last.
Ben's meeting will be immediately after Harold's.
Anita's meeting will be two meetings after Markus'.
Anita's meeting will be before, but not immediately before, Carol's.
Which direct report is in timeslot 2?
Anita? Harold? Ben? Markus? Sheila?
19
Applications: Common Sense
E.g. Wason selection task
Paradoxes and Fallacies
(see also: List of Fallacies on wikipedia)
20
Applications: Common Sense
21
More Common Sense
Which of these statements make sense?
22
Scott Adams’ Trolling Class
23
Applications: Politics
Assignment (0 points):
24
Applications: Hardware
25
Applications: Software
26
Applications: Coding
Bent Function - hard to approximate function�{⊤, ⊥}n → {⊤ ⊥}
27
Set Theory and SQL
select * from users where age < 18;
28
Sets, Informally
29
self-contradictory
Sets, formally: ZFC Axioms
30
non-contradictory
Examples: Two-valued Boolean Logic
31
& | True | False |
True | True | False |
False | False | False |
| | True | False |
True | True | True |
False | True | False |
| ! |
True | False |
False | True |
Examples: 8-valued Boolean Logic
32
^ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
2 | 0 | 0 | 2 | 2 | 0 | 0 | 2 | 2 |
3 | 0 | 1 | 2 | 3 | 0 | 1 | 2 | 3 |
4 | 0 | 0 | 0 | 0 | 4 | 4 | 4 | 4 |
5 | 0 | 1 | 0 | 1 | 4 | 5 | 4 | 5 |
6 | 0 | 0 | 2 | 2 | 4 | 4 | 6 | 6 |
7 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| ! |
0 | 7 |
1 | 6 |
2 | 5 |
3 | 4 |
4 | 3 |
5 | 2 |
6 | 1 |
7 | 0 |
Examples: 3-Valued Kleene Logic
33
& | True | Unknown | False |
True | True | Unknown | False |
Unknown | Unknown | Unknown | False |
False | False | False | False |
| | True | Unknown | False |
True | True | True | True |
Unknown | True | Unknown | Unknown |
False | True | Unknown | False |
| ! |
True | False |
Unknown | Unknown |
False | True |
Examples: 3-Valued Heyting Logic
34
& | True | Unknown | False |
True | True | Unknown | False |
Unknown | Unknown | Unknown | False |
False | False | False | False |
| | True | Unknown | False |
True | True | True | True |
Unknown | True | Unknown | Unknown |
False | True | Unknown | False |
| ! |
True | False |
Unknown | False |
False | True |
Other Interesting Logics Systems
(see "Physics, Topology, Logic and Computation: A Rosetta Stone")
35
Linear Logic
Quantum Logic
provides a satisfactory foundation for a theory of reversible quantum processes
37
p ∩ (q ∪ r) ≠ (p ∩ q) ∪ (p ∩ r)
if 1=(a⊥ ∪ b⊥)⊥ ∪ (a ∪ b)⊥ then a = b
a ∪ (a⊥ ∪ b)⊥ = a
More Syllogisms
P1: Noisy children are real headaches.
P2: An aspirin makes real headaches go away.
C1: An aspirin will make noisy children go away.
P1: Nothing is better than eternal happiness.
P2: A ham sandwich is better than nothing.
C1: A ham sandwich is better than eternal happiness.
P1: All bark is grown on trees.
P2: All dogs bark.
C1: All dogs are trees.
P1: 1 is a number.
P2: 2 is a number.
C1: 1 is 2.
38
The Base Book
The Big Book with Exercises
40
We will use this beautiful book, edition does not matter much.
Also Recommended
41
Great book; opens your mind
More Sources
http://existentialcomics.com/comic/98
42
References
A good set of notes from cs.ru.nl: http://cs.ru.nl/~freek/courses/tt-2016/public/notes.pdf
Prover: The exercises on ProofWeb
43