logic: interdisciplinary adventures in philosophy computer...

66
Logic: Interdisciplinary Adventures in Mathematics, Philosophy, Computer Science, and Theology Harvey Friedman 1

Upload: others

Post on 26-Mar-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logic: Interdisciplinary Adventures in

Mathematics, Philosophy, Computer Science, and

TheologyHarvey Friedman

1

Page 2: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logic is everywhere!

2

Page 3: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logic as the science of reasoning

We do have a relatively deep scientific understanding of at

least some key aspects of mathematical reasoning

3

Page 4: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

THE FIVE LOGICAL CONNECTIVES

these support general reasoning traced back to the great ancient philosopher Aristotle

notandor

if thenif and only if

¬∧∨⟶⟷

4

Page 5: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

∴ r

p ⟶ r

• Fred lives in Chicago, or Fred lives in New York

• If Fred lives in Chicago then Fred lives in a big city.

• If Fred lives in New York then Fred lives in a big city.

• Therefore, Fred lives in a big city.

p ∨ q

q ⟶ r

5

Page 6: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Valid inferenceIn this very limited context, we can mathematically

define what we mean by a valid inference, and we can determine whether such an inference is valid by the

method of

Truth tables

6

Page 7: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

The two quantifiersIn addition to the sentential connectives, we must work

with the two quantifiers

for allthere exists

∀∃

Aristotelean Logic makes very limited use of ∀. It took another 2200 years to incorporate the five logical

connectives and both quantifiers ∀,∃.

7

Page 8: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Predicate Calculus

There is a grammar for this, resulting in a formal language called Predicate Calculus. Rather than present this grammar, I will just present a group of familiar examples.

— Gottlob Frege1879

8

Page 9: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Examples1. Everybody loves

everybody.

2. Somebody loves somebody.

3. Everybody loves somebody.

4. Somebody loves everybody.

5. Everybody is loved by everybody.

6. Somebody is loved by somebody.

7. Everybody is loved by somebody.

8. Somebody is loved by everybody.

9

Page 10: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Examples1. Everybody loves everybody.

2. Somebody loves somebody.

3. Everybody loves somebody.

4. Somebody loves everybody.

5. Everybody is loved by everybody.

6. Somebody is loved by somebody.

7. Everybody is loved by somebody.

8. Somebody is loved by everybody.

1. (∀x) (∀y) (L(x,y)).

2. (∃x) (∃y) (L(x,y)).

3. (∀x) (∃y) (L(x,y)).

4. (∃x) (∀y) (L(x,y)).

5. (∀x) (∀y) (L(y,x)).

6. (∃x) (∃y) (L(y,x)).

7. (∀x) (∃y) (L(y,x)).

8. (∃x) (∀y) (L(y,x)).

Logically equivalent

10

Page 11: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Examples1. Everybody loves everybody.

2. Somebody loves somebody.

3. Everybody loves somebody.

4. Somebody loves everybody.

7. Everybody is loved by somebody.

8. Somebody is loved by everybody.

1. (∀x) (∀y) (L(x,y)).

2. (∃x) (∃y) (L(x,y)).

3. (∀x) (∃y) (L(x,y)).

4. (∃x) (∀y) (L(x,y)).

∃x

∃x

7. (∀x) (∃y) (L(y,x)).

8. (∃x) (∀y) (L(y,x)).

1, 2, 3, 4, 7, 8 are all logically inequivalent

11

Page 12: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logically equivalent

Under any intepretation of the concepts involved, the statements are both true or

both false.

The modern treatment of logical equivalence is credited to Alfred Tarski,

1933, 1936.

12

Page 13: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logical implications1. (∀x) (∀y) (L(x,y)).

2. (∃x) (∃y) (L(x,y)).

3. (∀x) (∃y) (L(x,y)).

4. (∃x) (∀y) (L(x,y)).

5. (∀x) (∀y) (L(y,x)).

6. (∃x) (∃y) (L(y,x)).

7. (∀x) (∃y) (L(y,x)).

8. (∃x) (∀y) (L(y,x)).

4

2, 6

37

84

1, 5

13

Page 14: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

An inference in predicate calculus is considered valid if:

under any interpretation, if all of the premises are true, then the conclusion is true.

14

Page 15: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Completeness Theorem— Kurt Gödel, 1930

Every valid inference in predicate calculus can be backed up by a proof using only a fixed finite set of basic axioms and rules of inference.

15

Page 16: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

No Algorithm— Alonzo Church, 1936

There is no general method for determining whether an inference in the predicate calculus is valid.

16

Page 17: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

ZIntegers

• Add (+)

• Subtract (-)

• Compare (<, ≤, >, ≥, =, ≠)

…, -2, -1, 0, 1, 2, …

17

Page 18: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

ZExamples

(∀ integers x)(∃ integer y)(x < y+y).

(∀ integers x)(∃ integer y)(x = y+y).

(∀ integers x,y)(x < y → (∃ integer z)(x < z ∧ z < y)).

The first is true, whereas the second and third are false.

18

Page 19: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

ZLinear arithmetic over

integers algorithm

There is a general method for determining whether a sentence in the predicate calculus based on the integers, +,-,<,≤,>,≥,=,≠, is true.

— M. Presburger, 1929

19

Page 20: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

QFractions

• Add (+)

• Subtract (-)

• Compare (<, ≤, >, ≥, =, ≠)

3/4, -10/3, 0/1, …

20

Page 21: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

QExamples

(∀ rationals x)(∃ rational y)(x < y+y).

(∀ rationals x)(∃ rational y)(x = y+y).

(∀ rationals x,y)(x < y → (∃ rational z)(x < z ∧ z < y)).

This time, all three sentences are true.

21

Page 22: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

QLinear arithmetic over rationals algorithm

(modified Presburger)

There is a general method for determining whether a sentence in the predicate calculus based on the rationals, +,-,<,≤,>,≥,=,≠, is true.

22

Page 23: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

RReal numbers

• Add (+)

• Subtract (-)

• Compare (<, ≤, >, ≥, =, ≠)

√2, π, …

23

Page 24: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

RLinear arithmetic over reals

The true sentences of linear arithmetic over the reals are the same as the true sentences of linear arithmetic over the rationals.

24

Page 25: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Z Q RLinear arithmetic over integers, rationals, reals

togetherThere is a general method for determining whether a sentence in the predicate calculus based on integers, rationals, reals, +,-,<,≤,>,≥,=,≠, is true.

25

Page 26: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Algorithm with +, -, •, <, ≤, >, ≥, =, ≠ over Integers? No!! Kurt Gödel 1931.

Algorithm with +, -, •, <, ≤, >, ≥, =, ≠ over Rationals? No!! Julia Robinson 1949.

Algorithm with +, -, •, <, ≤, >, ≥, =, ≠ over Reals? Yes!! Alfred Tarski 1931, 1948.

So what happens if we also use multiplication?

26

Page 27: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

What are the standards for a mathematical proof?

1. Axioms and rules of inference for Predicate Calculus.

2. Axioms for constructing mathematical objects.

Unification needed. Set theory!

27

Page 28: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Set theoryUnifies various constructions of mathematical objects.Two sets are considered equal if and only if they have

the same elements.

Founded by Georg Cantor 1874.Gottlob Frege formulated associated axioms

1893/1903.Bertrand Russell found a contradiction in Frege’s

axioms (Russell’s Paradox) 1901. Russell fixed this with his theory of types, 1908, 1910.

Type theory supplanted by formalized set theory:

28

Page 29: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Zermelo Set Theory (1908)Extensionality: If two sets have the same elements, then they are equal.

Pairing: Given two sets x,y, there is a set z whose elements are exactly x,y.

Union: Given a set x, there is a set y whose elements are exactly the elements of the elements of x.

Power Set: Given a set x, there is a set y whose elements are exactly the subsets of x.

Separation: Given a set x and a description of a property of sets, there is a set y whose elements are exactly those elements of x which obey that property.

Infinity: There is an infinite set. Many alternative technical formulations can be used here.

Choice: Given a set x whose elements are each nonempty and have no elements in common with each other, there is a set y which has exactly one element in common with these elements of x.

29

Page 30: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Zermelo set theory axioms easily suffice to develop the main basic infrastructure of mathematics: natural numbers, integers, rationals, reals, complexes, addition, subtraction, multiplication, division, order, ordered pairs, functions, metric spaces, topological spaces, measure spaces, continuity, differentiability, analyticity, etcetera.

Mathematicians sit on top of this, taking it for granted.

30

Page 31: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

ZFC

ZFC = Zermelo Set Theory, plus two more axioms:

Foundation: Given a nonempty set x, there is an element y of x which has no elements in common with x.

Replacement: Given a set x, and a description of a unique assignment of a set to all elements of x, there is a set whose elements are exactly these assignments.

Zermelo Fraenkel Set Theory, with the Axiom of Choice

31

Page 32: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Why believe?Not yet entirely clear.

?

32

Page 33: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Our axioms of set theory arise from transferring the “simple” principles that “obviously hold in the finite sets” to infinite set theory, and adding the axiom of Infinity.

Observation

From Finite to Infinite

All except INFINITY are easily seen to hold in the world of finite sets - by merely using induction.

33

Page 34: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

First Incompleteness Theorem

— Kurt Gödel 1931, B. Rosser 1936ZFC is not sufficiently strong to prove or refute all statements in integer arithmetic (+,•) – unless(!) the axioms of ZFC are contradictory.

ZFC enough to prove or refute all statements in mathematics?

34

Page 35: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Second Incompleteness Theorem

— Kurt Gödel, 1931

ZFC is not sufficiently strong to prove that the axioms of ZFC are not contradictory – unless(!) the axioms of ZFC are contradictory.

ZFC axioms contradictory? No! – we think!!

35

Page 36: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Large programs are expensive and buggy. Many reasons.

Need a major overhaul in the programming environments.

Logic will play a central role.

36

Page 37: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

SOME SOFTWARE DISASTERS

THERAC-25

A radiation therapy machine, involved in six accidents 1985-87 . Patients given 100 times intended dose. Factors

include bad software design and development.

ARIANE 5

A launcher for rockets. Blew up June, 1996, from a failure of the Inertial Reference Systems, Traced to a piece of

software.

INTEL PENTIUM BUG

Intel’s Pentium computer chip was recalled in 1994 at a cost of 500M USD. The floating point arithmetic software

was flawed.

37

Page 38: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Formal specifications

Need formal specifications.

Written in applied Predicate Calculus.

Needed to support

• Reusability of software

• Verification of software

38

Page 39: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Software verification

• A mathematical proof that the software obeys the formal specification.

• Far beyond the usual software testing in common practice in industry.

• We want a programming environment where a team of software developers writes code AND verifies the code.

39

Page 40: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Software verification

• Programming languages need an overhaul

• Heavy duty tools need development

• Tools include algorithms from logic, refined by computer scientists, as discussed previously.

40

Page 41: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Work highly exploratory

Not clear how to design a working system for cost effectively creating verified code for

real world programming situations

?

41

Page 42: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Potential applications of logic in education.

Develop systems that automatically generate multistep homework and exam problems satisfying Instructor

controlled parameters.

Automatically graded. Student enters multi step solution in special format, obtains feedback after each step.

Full history of student responses on all problems stored and used to adjust future problems.

Data used to fine tune Instructor’s Lectures.

42

Page 43: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Ideas have been around

ChallengeMake automatically generated multi step problems truly reflect course goals, and the interaction engage the students appropriately.

43

Page 44: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Need sophisticated problem templates, reflecting many degrees of difficulty.

Need formal structure to support real time computer grading.

Need formally structured modes through which students enter multistep solutions, and receive

feedback in real time.

Logic needed everywhere!

44

Page 45: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Discrete Math for Computer Science Majors

Generally speaking, computer science majors are required to take a course in basic discrete mathematics and basic proof structure.

Not enough interaction time under normal teaching methods for students to absorb these difficult and subtle skills.

45

Page 46: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

SYRUS Project—run by me and Bruce Weide of CSE.

Template 1:(∀ integers n, m, r)(x α y ∧ z β w → u γ v).True or false? If true, prove. If false, give counterexample.

Template 2:(∀ integers n, m)(∃ integer r)(x α y ∧ z β w).True or false? If true, prove. If false, give counterexample.

Here x, y, z, w, u, v are among letters n, m, r, and α, β, γ are among symbols <, >, ≤, ≥, =, ≠.

46

Page 47: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

True/False is checked in real time. Proofs are entered interactively, with many

steps, and real time feedback.

Use of Logic for teaching Logic? No surprise.

Ideas strongly applicable to elementary mathematics courses, including K–12.

47

Page 48: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Future targets

∈-δ proofs in calculus. Courses in the mathematical sciences.

Courses in engineering.And beyond...

48

Page 49: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

THEOLOGY:POSITIVE PROPERTIES

There have been attempts to prove the existence of God, using the concept of positive properties.

Most notably by Leibniz (co invemtor with Newton of the Calculus) and Gödel (the great

logician we have encountered before).

These attempts go under the name of “the ontological argument” and are very controversial.

We use the concept of positive properties for quite a different purpose.

49

Page 50: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

THEOLOGY:POSITIVE PROPERTIES

Instead, we use the concept of positive properties to prove that the usual ZFC

axioms for mathematics (discussed earlier) are free of contradiction. I.e., that

ZFC is consistent.

In other words, a concept from classical Theology is used to prove that

mathematics is free from contradiction.

50

Page 51: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

POSITIVE PROPERTIESIn this theological framework, we consider properties or attributes of things. Here are three interesting examples:

“Possessing an intellect”“Knowing at least as much as any other thing”

“Knowing more than any other thing”

Certainly these properties are positive in the sense that it is “better” to have them (if possible) than not to have

them.

But there is the question of whether these properties are possible to have.

The first one obviously is. The seond and third are problematic.

51

Page 52: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

POSITIVE PROPERTIESSOME GENERALPRINCIPLES

For any given poperty, it is either positive to possess it or it is positive to not possess it.

If it is positive to possess P and positive to possess Q, then it is positive to possess (P and Q).

A perfect being possesses all of the positive properties.

There is a perfect being.

There is exactly one perfect being.

52

Page 53: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

POSITIVE PROPERTIESReturning to the three examples:

“Possessing an intellect”“Knowing at least as much as any other thing”

“Knowing more than any other thing”

To apply the general principles, we need to know that it is possible for a being to have these properties. The first one is not problematic.

We can argue for the second: For any given x, it is positive to know at least as much as x. Therefore a perfect being knows as much as any

other thing. So the second example is possible.

More argument is needed for the third example.

THIS IS JUST AN INDICATION OF HOW ONE CAN AT LEAST ATTEMPT TO INTELLIBLY NAVIGATE SUCH MURKY WATERS.

53

Page 54: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

POSITIVE PROPERTIES THE SUPERNATURAL

THE NATURAL

The perfect being is clearly part of the supernatural world, and not part of the natural world.

In the natural world, beings may have a lot of positive properties, but not all of them.

We expect that for every natural being, there is another natural being which possesses all of the

positive properties of the first, and more.

54

Page 55: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

POSITIVE PROPERTIESTHE NATURAL (NOT THE SUPERNATURAL)

We start with the universe of natural objects. We use the standard concept of “properties of objects” in

mathematics. We use the theologically based oncept of “positive properties of

objects”.We assume the general principles we have discussed, which

correspond to the standard mathematical idea of a “nonprincipal ultrafilter”.

We do not have a natural object that possesses all positive properties. That is only true of a (the) perfect being, which is only

exists in the supernatural.

An ANGEL is an object which possesses all DEFINABLE positive properties.

55

Page 56: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

POSITIVE PROPERTIES ANGELS

An ANGEL is an object which possesses all DEFINABLE positive properties.

POWERFUL AXIOM: THERE EXISTS AN ANGEL!

We have been able to prove, using an Angel, that mathematics is free of contradiction

(I.e., ZFC is consistent).

56

Page 57: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

I hope you’ve found these Interdisciplinary Adventures

of some interest.

Thank you very much.

57

Page 58: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logic: Interdisciplinary Adventures in

Mathematics, Philosophy, Computer Science, and

EducationHarvey Friedman

58

Page 59: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Basic example

Write and verify a program that, given any nonempty finite sequence of

integers, returns the greatest term.

f:FSQ → INT. (∀α)(length(α) > 0 → f(α) = max(α)).

Formal Spec:

59

Page 60: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Write code with auxiliary

g:FSQ × N → Z with spec

(∀α,n)(1 ≤ n ≤ length(α) → g(α,n) = max(α;1,n)).

Write code for g in this recursive functional programming style:

g(α,1) = Val(α,1). g(α,n+1) = max(g(α,n),Val(α,n+1)).

max(x,y) = if x ≥ y then x else y.f(α) = g(α,length(α)).

60

Page 61: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Codemax(x,y) = if x ≥ y then x else y.g(α,1) = Val(α,1). g(α,n+1) = max(g(α,n),Val(α,n+1)).f(α) = g(α,length(α))

Specslength(α) > 0 → f(α) = max(α).1 ≤ n ≤ length(α) → g(α,n) = max(α;1,n).

61

Page 62: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Programmer writes:

"prove 1 ≤ n ≤ length(α) →g(α,n) = max(α;1,n) by induction on n ≥ 1".

Induction step:

g(α,n) = max(α;1,n) → g(α,n+1) = max(α;1,n+1)

using

g(α,n+1) = max(g(α,n),Val(α,n+1)).max(α;1,n+1) = max(max(α;1,n),Val(α,n+1)).max(α) = max(α;1,length(α)).

62

Page 63: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Logic: Interdisciplinary Adventures in

Mathematics, Philosophy, Computer Science, and

EducationHarvey Friedman

63

Page 64: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Example 1 from SYRUS

(∀ integers n, m, r)(n < m ∧ r < m → n ≤ r).True or false? If true, prove. If false, give counterexample.

False.Counterexample:

n = 1, m = 2, r = 0.Want ¬(1 < 2 ∧ 0 < 2 → 1 ≤ 0).More interaction optional.

Done.

64

Page 65: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Example 2 from SYRUS(∀ integers n,m,r)(n < m ∧ ¬(m ≥ r) → n < r).

True or false? If true, prove. If false, give counterexample.

True. Two methods available. Direct:

Let n,m,r be integers. Assume n < m ∧ ¬(m ≥ r). Want n < r. Have n < m, ¬(m ≥ r). Have m < r. Have n < r.

Done. Indirect:

Let n, m, r be integers.Assume ¬(n < m ∧ ¬(m ≥ r) → n < r). Want contradiction.Using truth tables, convert to:

Assume n < m, ¬(m ≥ r), ¬(n < r). Derive contradiction.Have m < r. Have n < r.

Done.

65

Page 66: Logic: Interdisciplinary Adventures in Philosophy Computer …cage.ugent.be/programFriedman/slides/Logic-Inter082813... · 2013. 9. 19. · Adventures in Mathematics , Philosophy

Major progress on this Conjecture recently.

66