SlideShare a Scribd company logo
Truth, Deduction,
Computation
Introduction

Vlad Patryshev
SCU
2013
Variety of Interpretations
● different in different cultures
○
○
○
○

China
India
Greece
Modern Europe

● depends on where you apply it
○
○
○
○
○

legal
iq test
math
religion
comp sci
Logic in China
Mo Di (墨子) (468-376 BC) and his school
Three tests for the validity of a doctrine: 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."

Gōngsūn Lóng (公孫龍) 325–250 BC, School of Names
"One and one cannot become two, since neither becomes two."
“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.”
(But later the only legal logic was Buddhist logic imported from India; later about it)
© Copyright 2012 Sanjay Kulkarni
Logic in India
● Tetralemma: for a proposition X, there are four
possibilities: X; not X; X and not X; not (X or not X)

● Catuṣkoṭi:

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
dharmacakra (धमच )

Positive configuration

Not (Neither P nor Not-P)
India: Navya-Nyaya School

(13th century)

1.Syād-asti — “in some ways it is”
2.Syād-nāsti — “in some ways it is not”
3.Syād-asti-nāsti — “in some ways it is and it is not”
4.Syād-asti-avaktavyaḥ — “in some ways it is and it is
indescribable”
5.Syād-nāsti-avaktavyaḥ — “in some ways it is not and it is
indescribable”
6.Syād-asti-nāsti-avaktavyaḥ — “in some ways it is, it is
not and it is indescribable”
7.Syād-avaktavyaḥ — “in some ways it is indescribable”
Logic in India: an Example
Yudhisthira never said a lie, and as a reward,
his chariot that was not touching the earth (a
hovercraft?).
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 an elephant with the
same name that Bhima killed.
Yudhisthra said “Ashwathama was killed, a
man or an elephant”.

Yudhisthira
(यु धि ठर)

The moment Yudhisthira said the lie, though it
was true but not an act of Dharma, his chariot
came down.
Logic in Greece
Aristotle (Ἀριστοτέλης) 384–322 BC
Syllogisms
● Every man is a being therefore:
● Every non-being is a non-man
● (which is false because the universal
affirmative has existential import, and
there are no non-beings)
● A chimera is not a man therefore:
● A non-man is not a non-chimera
Western Europe, XIX-XX centuries
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.”

Georg Cantor,
1845-1918

“The essence of mathematics lies in
its freedom.”
Europe, XX century
David Hilbert, 1862-1943

Kurt Gödel, 1906-1978

“No one shall expel us
from the paradise that
Cantor has created for
us.”

“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

Saul Kripke, b.1940
“Lois Lane believes that
Superman can fly,
although she does not
believe that Clark Kent can
fly.”
“Londres est joli”
Applications: Legal
○
○

○

Deductive reasoning:
■ “All people sleep, so students must sleep”
Inductive reasoning:
■ Jane studies every day and is a good student.
■ Tom studies every day and is a good student.
■ Angela studies every day and is a good student.
■ Hence: Good students study every day.
Search for Fallacies:
■ “Example: “The possession of nuclear weapons is a moral
abomination. Even Edward Teller, the ‘father of the hydrogen bomb,’
urged the United States to halt production once the full extent of their
destructive power became known.”
■ Explanation: While it may seem persuasive that even the “father” of
the hydrogen bomb disapproved of its development, note that Teller
was a physicist, not a cleric or moral philosopher. His views on
morality are completely outside his expertise.”
Applications: Religion
●

Proofs of God’s existence:
○ Deductive
■
■
■
○

God is the greatest conceivable being.
It is greater to exist than not to exist.
Therefore, God exists.

Karmic: some people in this world are happy, some are in misery therefore, God exists

● Proofs of God’s nonexistence:
○ Deductive
■
○

Can God create a rock so big that He cannot move it?

Inductive
■

A perfect being would have long ago satisfied all its wants and
desires and would no longer be able to take action in the
present without proving that it had been unable to achieve its
wants faster—showing it imperfect.
Applications: IQ Tests
○

Correct 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?

○

Incorrect IQ tests
All cacti are plants; most of the plants are pines; all pines have needles; hence: some cacti have
needles. Is it true?
Applications: Common Sense
Paradoxes and Fallacies
○ Contradiction
■
■

The sentence below is true.
The sentence above is false.

○ There is someone in the pub such that, if he is
drinking, everyone in the pub is drinking.
○ "the first number not nameable in under ten words"
○ Pinocchio paradox: What would happen if Pinocchio
said "My nose will be growing"?
(see also: List of Fallacies on wikipedia)
Applications: Common Sense
● Misconceptions
○ 2*2=4
○ Every statement is either right or wrong
○ Axioms are true, and this is why theorems that follow
from axioms are also true
○ Every logic is Boolean or can be expressed in
Boolean
○ Boolean logic has only two values
○ Programs only deal with finite entities
Applications: Electronics
Applications: Physics

●
●
●
●

Universe is isotropic
Energy conservation law
Sphere surface is proportional to r2
Therefore: gravity is proportional to 1/r2
Applications: Comp Sci
○ Binary logic (used in circuits) and Ternary (Setun, a
Russian-made computer)
○ Untyped lambda calculus and typed lambda calculus;
Curry-Howard isomorphism
○ Bahrendregdt’s Lambda-cube
In mathematical logic and type theory, the λ-cube is a framework for
exploring the axes of refinement in Coquand's calculus of
constructions, starting from the simply typed lambda calculus as the
vertex of a cube placed at the origin, and the calculus of constructions
(higher order dependently-typed polymorphic lambda calculus) as its
diametrically opposite vertex.

○ Logic programming (e.g. Prolog)
○ Theorems for Free (Girard-Reynolds): e.g.
if f:A×B -> A for all possible A and B,
then f(a,b) == a.
Set Theory and SQL
select * from users where age < 18;
Examples: Two-valued Boolean Logic

&

True

False

True

True

False

True

False

False

False

False

False

True

|

True

False

True

True

True

False

True

False

!
Examples: 8-valued Boolean Logic
!

^

0

1

2

3

4

5

6

7

0

0

0

0

0

0

0

0

0

0

7

1

0

1

0

1

0

1

0

1

1

6

2

0

0

2

2

0

0

2

2

2

5

3

0

1

2

3

0

1

2

3

3

4

4

0

0

0

0

4

4

4

4

4

3

5

0

1

0

1

4

5

4

5

5

2

6

0

0

2

2

4

4

6

6

6

1

7

0

1

2

3

4

5

6

7

7

0
Examples: 3-Valued Kleene Logic
&

True

Unknown

False

True

True

Unknown

False

True

False

Unknown

Unknown

Unknown

False

Unknown

Unknown

False

False

False

False

False

True

|

True

Unknown

False

True

True

True

True

Unknown

True

Unknown

Unknown

False

True

Unknown

False

!
Examples: 3-Valued Heyting Logic
&

True

Unknown

False

True

True

Unknown

False

True

False

Unknown

Unknown

Unknown

False

Unknown

False

False

False

False

False

False

True

|

True

Unknown

False

True

True

True

True

Unknown

True

Unknown

Unknown

False

True

Unknown

False

!
Other Interesting Logics Systems
● Linear logic: $1 and $1 != $1
(see "Physics, Topology, Logic and Computation: A Rosetta Stone")

●
●
●
●

Modal logic
Fuzzy Logic
Temporal logic
Higher order logics
The Book
We will use this book.
Take it cum grano salis - it was written
for a different target audience (see
“legal” and “common sense” above.
If you can write code in any
programming language, Basic to Agda,
you are already way ahead than most of
the book’s target audience.
More Sources
● Lambda-calculus:

http://www.cse.chalmers.
se/research/group/logic/TypesSS05/Extra/geuvers.pdf

● Introduction to Type Theory:

http://www.cs.ru.

nl/~herman/PUBS/IntroTT-improved.pdf

● Lambda, in Haskell:

http://augustss.blogspot.
ru/2007/10/simpler-easier-in-recent-paper-simply.html

More Related Content

Similar to Truth, deduction, computation; lecture 1

DS Mirrors Artificial Intelligence ppt.ppt
DS Mirrors Artificial Intelligence ppt.pptDS Mirrors Artificial Intelligence ppt.ppt
DS Mirrors Artificial Intelligence ppt.ppt
Sachin Paul
 
Theory Of Falsification And Its Evolution
Theory Of Falsification And Its EvolutionTheory Of Falsification And Its Evolution
Theory Of Falsification And Its Evolution
Hossein Akhlaghpour
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
Umesh Meher
 
How to Design an Eternal Universe—Quantum Theory Implications
How to Design an Eternal Universe—Quantum Theory ImplicationsHow to Design an Eternal Universe—Quantum Theory Implications
How to Design an Eternal Universe—Quantum Theory Implications
Gospel Conversations
 
Reasons For Belief: Harvard 10/16/09 PPT and Recording
Reasons For Belief: Harvard 10/16/09 PPT and RecordingReasons For Belief: Harvard 10/16/09 PPT and Recording
Reasons For Belief: Harvard 10/16/09 PPT and Recording
evidenceforchristianity
 
Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016
Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016
Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016
Quantopian
 
GCF2011: Session Notes of "Learning from outer space"Jan 23, 2011
GCF2011: Session Notes of  "Learning from outer space"Jan 23, 2011GCF2011: Session Notes of  "Learning from outer space"Jan 23, 2011
GCF2011: Session Notes of "Learning from outer space"Jan 23, 2011
Global Competitiveness Forum - GCF
 
Essay My Philosophy In Life
Essay My Philosophy In LifeEssay My Philosophy In Life
Essay My Philosophy In Life
Alicia Galindo
 
Power Point: The Bible: From God or Man?
Power Point: The Bible: From God or Man?Power Point: The Bible: From God or Man?
Power Point: The Bible: From God or Man?
evidenceforchristianity
 
Why the Universe appears designed and why it doesn’t have to be
Why the Universe appears designed and why it doesn’t have to beWhy the Universe appears designed and why it doesn’t have to be
Why the Universe appears designed and why it doesn’t have to be
Andrew Lang
 
Fdn109 10
Fdn109 10Fdn109 10
Fdn109 10
tgeddes
 
AIIMS School Quiz Fest - Catalyst'17 Science Prelims
AIIMS School Quiz Fest - Catalyst'17 Science PrelimsAIIMS School Quiz Fest - Catalyst'17 Science Prelims
AIIMS School Quiz Fest - Catalyst'17 Science Prelims
poly_cherry
 
Bob 2011 prelims answers
Bob 2011 prelims answersBob 2011 prelims answers
Bob 2011 prelims answers
rachitparekh
 
Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...
Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...
Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...
Cartegraph
 
Looking for tomorrows mainstream
Looking for tomorrows mainstreamLooking for tomorrows mainstream
Looking for tomorrows mainstream
Alexander Gorban
 
The Essentials of Apologetics Why God (Part 2)
The Essentials of Apologetics Why God (Part 2)The Essentials of Apologetics Why God (Part 2)
The Essentials of Apologetics Why God (Part 2)
Robin Schumacher
 
AI, Sherlock Holmes style - Introduction to automated Abductive Inference
AI, Sherlock Holmes style - Introduction to automated Abductive InferenceAI, Sherlock Holmes style - Introduction to automated Abductive Inference
AI, Sherlock Holmes style - Introduction to automated Abductive Inference
All Things Open
 
Bob 2011 prelims answers
Bob 2011 prelims answersBob 2011 prelims answers
Bob 2011 prelims answers
rachitparekh
 
The Play Oppenheimer Follows The Story Of J Robert...
The Play Oppenheimer Follows The Story Of J Robert...The Play Oppenheimer Follows The Story Of J Robert...
The Play Oppenheimer Follows The Story Of J Robert...
Samantha Randall
 
Welcome to the Singularity?
Welcome to the Singularity?Welcome to the Singularity?
Welcome to the Singularity?
CS, NcState
 

Similar to Truth, deduction, computation; lecture 1 (20)

DS Mirrors Artificial Intelligence ppt.ppt
DS Mirrors Artificial Intelligence ppt.pptDS Mirrors Artificial Intelligence ppt.ppt
DS Mirrors Artificial Intelligence ppt.ppt
 
Theory Of Falsification And Its Evolution
Theory Of Falsification And Its EvolutionTheory Of Falsification And Its Evolution
Theory Of Falsification And Its Evolution
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
How to Design an Eternal Universe—Quantum Theory Implications
How to Design an Eternal Universe—Quantum Theory ImplicationsHow to Design an Eternal Universe—Quantum Theory Implications
How to Design an Eternal Universe—Quantum Theory Implications
 
Reasons For Belief: Harvard 10/16/09 PPT and Recording
Reasons For Belief: Harvard 10/16/09 PPT and RecordingReasons For Belief: Harvard 10/16/09 PPT and Recording
Reasons For Belief: Harvard 10/16/09 PPT and Recording
 
Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016
Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016
Financial Engineering and Its Discontents by Emanuel Derman at QuantCon 2016
 
GCF2011: Session Notes of "Learning from outer space"Jan 23, 2011
GCF2011: Session Notes of  "Learning from outer space"Jan 23, 2011GCF2011: Session Notes of  "Learning from outer space"Jan 23, 2011
GCF2011: Session Notes of "Learning from outer space"Jan 23, 2011
 
Essay My Philosophy In Life
Essay My Philosophy In LifeEssay My Philosophy In Life
Essay My Philosophy In Life
 
Power Point: The Bible: From God or Man?
Power Point: The Bible: From God or Man?Power Point: The Bible: From God or Man?
Power Point: The Bible: From God or Man?
 
Why the Universe appears designed and why it doesn’t have to be
Why the Universe appears designed and why it doesn’t have to beWhy the Universe appears designed and why it doesn’t have to be
Why the Universe appears designed and why it doesn’t have to be
 
Fdn109 10
Fdn109 10Fdn109 10
Fdn109 10
 
AIIMS School Quiz Fest - Catalyst'17 Science Prelims
AIIMS School Quiz Fest - Catalyst'17 Science PrelimsAIIMS School Quiz Fest - Catalyst'17 Science Prelims
AIIMS School Quiz Fest - Catalyst'17 Science Prelims
 
Bob 2011 prelims answers
Bob 2011 prelims answersBob 2011 prelims answers
Bob 2011 prelims answers
 
Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...
Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...
Loras College 2014 Business Analytics Symposium | Andy Stevens: Big Data Anal...
 
Looking for tomorrows mainstream
Looking for tomorrows mainstreamLooking for tomorrows mainstream
Looking for tomorrows mainstream
 
The Essentials of Apologetics Why God (Part 2)
The Essentials of Apologetics Why God (Part 2)The Essentials of Apologetics Why God (Part 2)
The Essentials of Apologetics Why God (Part 2)
 
AI, Sherlock Holmes style - Introduction to automated Abductive Inference
AI, Sherlock Holmes style - Introduction to automated Abductive InferenceAI, Sherlock Holmes style - Introduction to automated Abductive Inference
AI, Sherlock Holmes style - Introduction to automated Abductive Inference
 
Bob 2011 prelims answers
Bob 2011 prelims answersBob 2011 prelims answers
Bob 2011 prelims answers
 
The Play Oppenheimer Follows The Story Of J Robert...
The Play Oppenheimer Follows The Story Of J Robert...The Play Oppenheimer Follows The Story Of J Robert...
The Play Oppenheimer Follows The Story Of J Robert...
 
Welcome to the Singularity?
Welcome to the Singularity?Welcome to the Singularity?
Welcome to the Singularity?
 

More from Vlad Patryshev

Formal methods 8 - category theory (last one)
Formal methods   8 - category theory (last one)Formal methods   8 - category theory (last one)
Formal methods 8 - category theory (last one)
Vlad Patryshev
 
Formal methods 6 - elements of algebra
Formal methods   6 - elements of algebraFormal methods   6 - elements of algebra
Formal methods 6 - elements of algebra
Vlad Patryshev
 
Formal methods 5 - Pi calculus
Formal methods   5 - Pi calculusFormal methods   5 - Pi calculus
Formal methods 5 - Pi calculus
Vlad Patryshev
 
Formal methods 4 - Z notation
Formal methods   4 - Z notationFormal methods   4 - Z notation
Formal methods 4 - Z notation
Vlad Patryshev
 
Formal methods 3 - languages and machines
Formal methods   3 - languages and machinesFormal methods   3 - languages and machines
Formal methods 3 - languages and machines
Vlad Patryshev
 
Formal methods 2 - languages and machines
Formal methods   2 - languages and machinesFormal methods   2 - languages and machines
Formal methods 2 - languages and machines
Vlad Patryshev
 
Formal methods 1 - introduction
Formal methods   1 - introductionFormal methods   1 - introduction
Formal methods 1 - introduction
Vlad Patryshev
 
Formal methods 7 - category theory
Formal methods   7 - category theoryFormal methods   7 - category theory
Formal methods 7 - category theory
Vlad Patryshev
 
Truth, deduction, computation lecture i (last one)
Truth, deduction, computation   lecture i (last one)Truth, deduction, computation   lecture i (last one)
Truth, deduction, computation lecture i (last one)
Vlad Patryshev
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture h
Vlad Patryshev
 
Truth, deduction, computation lecture g
Truth, deduction, computation   lecture gTruth, deduction, computation   lecture g
Truth, deduction, computation lecture g
Vlad Patryshev
 
Truth, deduction, computation lecture f
Truth, deduction, computation   lecture fTruth, deduction, computation   lecture f
Truth, deduction, computation lecture f
Vlad Patryshev
 
Truth, deduction, computation lecture e
Truth, deduction, computation   lecture eTruth, deduction, computation   lecture e
Truth, deduction, computation lecture e
Vlad Patryshev
 
Truth, deduction, computation lecture d
Truth, deduction, computation   lecture dTruth, deduction, computation   lecture d
Truth, deduction, computation lecture d
Vlad Patryshev
 
Truth, deduction, computation lecture b
Truth, deduction, computation   lecture bTruth, deduction, computation   lecture b
Truth, deduction, computation lecture b
Vlad Patryshev
 
Truth, deduction, computation lecture a
Truth, deduction, computation   lecture aTruth, deduction, computation   lecture a
Truth, deduction, computation lecture a
Vlad Patryshev
 
Truth, deduction, computation lecture 9
Truth, deduction, computation   lecture 9Truth, deduction, computation   lecture 9
Truth, deduction, computation lecture 9
Vlad Patryshev
 
Truth, deduction, computation lecture 8
Truth, deduction, computation   lecture 8Truth, deduction, computation   lecture 8
Truth, deduction, computation lecture 8
Vlad Patryshev
 
Truth, deduction, computation lecture 7
Truth, deduction, computation   lecture 7Truth, deduction, computation   lecture 7
Truth, deduction, computation lecture 7
Vlad Patryshev
 
Truth, deduction, computation lecture 6
Truth, deduction, computation   lecture 6Truth, deduction, computation   lecture 6
Truth, deduction, computation lecture 6
Vlad Patryshev
 

More from Vlad Patryshev (20)

Formal methods 8 - category theory (last one)
Formal methods   8 - category theory (last one)Formal methods   8 - category theory (last one)
Formal methods 8 - category theory (last one)
 
Formal methods 6 - elements of algebra
Formal methods   6 - elements of algebraFormal methods   6 - elements of algebra
Formal methods 6 - elements of algebra
 
Formal methods 5 - Pi calculus
Formal methods   5 - Pi calculusFormal methods   5 - Pi calculus
Formal methods 5 - Pi calculus
 
Formal methods 4 - Z notation
Formal methods   4 - Z notationFormal methods   4 - Z notation
Formal methods 4 - Z notation
 
Formal methods 3 - languages and machines
Formal methods   3 - languages and machinesFormal methods   3 - languages and machines
Formal methods 3 - languages and machines
 
Formal methods 2 - languages and machines
Formal methods   2 - languages and machinesFormal methods   2 - languages and machines
Formal methods 2 - languages and machines
 
Formal methods 1 - introduction
Formal methods   1 - introductionFormal methods   1 - introduction
Formal methods 1 - introduction
 
Formal methods 7 - category theory
Formal methods   7 - category theoryFormal methods   7 - category theory
Formal methods 7 - category theory
 
Truth, deduction, computation lecture i (last one)
Truth, deduction, computation   lecture i (last one)Truth, deduction, computation   lecture i (last one)
Truth, deduction, computation lecture i (last one)
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture h
 
Truth, deduction, computation lecture g
Truth, deduction, computation   lecture gTruth, deduction, computation   lecture g
Truth, deduction, computation lecture g
 
Truth, deduction, computation lecture f
Truth, deduction, computation   lecture fTruth, deduction, computation   lecture f
Truth, deduction, computation lecture f
 
Truth, deduction, computation lecture e
Truth, deduction, computation   lecture eTruth, deduction, computation   lecture e
Truth, deduction, computation lecture e
 
Truth, deduction, computation lecture d
Truth, deduction, computation   lecture dTruth, deduction, computation   lecture d
Truth, deduction, computation lecture d
 
Truth, deduction, computation lecture b
Truth, deduction, computation   lecture bTruth, deduction, computation   lecture b
Truth, deduction, computation lecture b
 
Truth, deduction, computation lecture a
Truth, deduction, computation   lecture aTruth, deduction, computation   lecture a
Truth, deduction, computation lecture a
 
Truth, deduction, computation lecture 9
Truth, deduction, computation   lecture 9Truth, deduction, computation   lecture 9
Truth, deduction, computation lecture 9
 
Truth, deduction, computation lecture 8
Truth, deduction, computation   lecture 8Truth, deduction, computation   lecture 8
Truth, deduction, computation lecture 8
 
Truth, deduction, computation lecture 7
Truth, deduction, computation   lecture 7Truth, deduction, computation   lecture 7
Truth, deduction, computation lecture 7
 
Truth, deduction, computation lecture 6
Truth, deduction, computation   lecture 6Truth, deduction, computation   lecture 6
Truth, deduction, computation lecture 6
 

Recently uploaded

বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 

Recently uploaded (20)

বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 

Truth, deduction, computation; lecture 1

  • 2. Variety of Interpretations ● different in different cultures ○ ○ ○ ○ China India Greece Modern Europe ● depends on where you apply it ○ ○ ○ ○ ○ legal iq test math religion comp sci
  • 3. Logic in China Mo Di (墨子) (468-376 BC) and his school Three tests for the validity of a doctrine: 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." Gōngsūn Lóng (公孫龍) 325–250 BC, School of Names "One and one cannot become two, since neither becomes two." “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.” (But later the only legal logic was Buddhist logic imported from India; later about it)
  • 4. © Copyright 2012 Sanjay Kulkarni
  • 5. Logic in India ● Tetralemma: for a proposition X, there are four possibilities: X; not X; X and not X; not (X or not X) ● Catuṣkoṭi: 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 dharmacakra (धमच ) Positive configuration Not (Neither P nor Not-P)
  • 6. India: Navya-Nyaya School (13th century) 1.Syād-asti — “in some ways it is” 2.Syād-nāsti — “in some ways it is not” 3.Syād-asti-nāsti — “in some ways it is and it is not” 4.Syād-asti-avaktavyaḥ — “in some ways it is and it is indescribable” 5.Syād-nāsti-avaktavyaḥ — “in some ways it is not and it is indescribable” 6.Syād-asti-nāsti-avaktavyaḥ — “in some ways it is, it is not and it is indescribable” 7.Syād-avaktavyaḥ — “in some ways it is indescribable”
  • 7. Logic in India: an Example Yudhisthira never said a lie, and as a reward, his chariot that was not touching the earth (a hovercraft?). 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 an elephant with the same name that Bhima killed. Yudhisthra said “Ashwathama was killed, a man or an elephant”. Yudhisthira (यु धि ठर) The moment Yudhisthira said the lie, though it was true but not an act of Dharma, his chariot came down.
  • 8. Logic in Greece Aristotle (Ἀριστοτέλης) 384–322 BC Syllogisms ● Every man is a being therefore: ● Every non-being is a non-man ● (which is false because the universal affirmative has existential import, and there are no non-beings) ● A chimera is not a man therefore: ● A non-man is not a non-chimera
  • 9. Western Europe, XIX-XX centuries 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.” Georg Cantor, 1845-1918 “The essence of mathematics lies in its freedom.”
  • 10. Europe, XX century David Hilbert, 1862-1943 Kurt Gödel, 1906-1978 “No one shall expel us from the paradise that Cantor has created for us.” “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 Saul Kripke, b.1940 “Lois Lane believes that Superman can fly, although she does not believe that Clark Kent can fly.” “Londres est joli”
  • 11. Applications: Legal ○ ○ ○ Deductive reasoning: ■ “All people sleep, so students must sleep” Inductive reasoning: ■ Jane studies every day and is a good student. ■ Tom studies every day and is a good student. ■ Angela studies every day and is a good student. ■ Hence: Good students study every day. Search for Fallacies: ■ “Example: “The possession of nuclear weapons is a moral abomination. Even Edward Teller, the ‘father of the hydrogen bomb,’ urged the United States to halt production once the full extent of their destructive power became known.” ■ Explanation: While it may seem persuasive that even the “father” of the hydrogen bomb disapproved of its development, note that Teller was a physicist, not a cleric or moral philosopher. His views on morality are completely outside his expertise.”
  • 12. Applications: Religion ● Proofs of God’s existence: ○ Deductive ■ ■ ■ ○ God is the greatest conceivable being. It is greater to exist than not to exist. Therefore, God exists. Karmic: some people in this world are happy, some are in misery therefore, God exists ● Proofs of God’s nonexistence: ○ Deductive ■ ○ Can God create a rock so big that He cannot move it? Inductive ■ A perfect being would have long ago satisfied all its wants and desires and would no longer be able to take action in the present without proving that it had been unable to achieve its wants faster—showing it imperfect.
  • 13. Applications: IQ Tests ○ Correct 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? ○ Incorrect IQ tests All cacti are plants; most of the plants are pines; all pines have needles; hence: some cacti have needles. Is it true?
  • 14. Applications: Common Sense Paradoxes and Fallacies ○ Contradiction ■ ■ The sentence below is true. The sentence above is false. ○ There is someone in the pub such that, if he is drinking, everyone in the pub is drinking. ○ "the first number not nameable in under ten words" ○ Pinocchio paradox: What would happen if Pinocchio said "My nose will be growing"? (see also: List of Fallacies on wikipedia)
  • 15. Applications: Common Sense ● Misconceptions ○ 2*2=4 ○ Every statement is either right or wrong ○ Axioms are true, and this is why theorems that follow from axioms are also true ○ Every logic is Boolean or can be expressed in Boolean ○ Boolean logic has only two values ○ Programs only deal with finite entities
  • 17. Applications: Physics ● ● ● ● Universe is isotropic Energy conservation law Sphere surface is proportional to r2 Therefore: gravity is proportional to 1/r2
  • 18. Applications: Comp Sci ○ Binary logic (used in circuits) and Ternary (Setun, a Russian-made computer) ○ Untyped lambda calculus and typed lambda calculus; Curry-Howard isomorphism ○ Bahrendregdt’s Lambda-cube In mathematical logic and type theory, the λ-cube is a framework for exploring the axes of refinement in Coquand's calculus of constructions, starting from the simply typed lambda calculus as the vertex of a cube placed at the origin, and the calculus of constructions (higher order dependently-typed polymorphic lambda calculus) as its diametrically opposite vertex. ○ Logic programming (e.g. Prolog) ○ Theorems for Free (Girard-Reynolds): e.g. if f:A×B -> A for all possible A and B, then f(a,b) == a.
  • 19. Set Theory and SQL select * from users where age < 18;
  • 20. Examples: Two-valued Boolean Logic & True False True True False True False False False False False True | True False True True True False True False !
  • 21. Examples: 8-valued Boolean Logic ! ^ 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0 0 0 7 1 0 1 0 1 0 1 0 1 1 6 2 0 0 2 2 0 0 2 2 2 5 3 0 1 2 3 0 1 2 3 3 4 4 0 0 0 0 4 4 4 4 4 3 5 0 1 0 1 4 5 4 5 5 2 6 0 0 2 2 4 4 6 6 6 1 7 0 1 2 3 4 5 6 7 7 0
  • 22. Examples: 3-Valued Kleene Logic & True Unknown False True True Unknown False True False Unknown Unknown Unknown False Unknown Unknown False False False False False True | True Unknown False True True True True Unknown True Unknown Unknown False True Unknown False !
  • 23. Examples: 3-Valued Heyting Logic & True Unknown False True True Unknown False True False Unknown Unknown Unknown False Unknown False False False False False False True | True Unknown False True True True True Unknown True Unknown Unknown False True Unknown False !
  • 24. Other Interesting Logics Systems ● Linear logic: $1 and $1 != $1 (see "Physics, Topology, Logic and Computation: A Rosetta Stone") ● ● ● ● Modal logic Fuzzy Logic Temporal logic Higher order logics
  • 25. The Book We will use this book. Take it cum grano salis - it was written for a different target audience (see “legal” and “common sense” above. If you can write code in any programming language, Basic to Agda, you are already way ahead than most of the book’s target audience.
  • 26. More Sources ● Lambda-calculus: http://www.cse.chalmers. se/research/group/logic/TypesSS05/Extra/geuvers.pdf ● Introduction to Type Theory: http://www.cs.ru. nl/~herman/PUBS/IntroTT-improved.pdf ● Lambda, in Haskell: http://augustss.blogspot. ru/2007/10/simpler-easier-in-recent-paper-simply.html