• Aucun résultat trouvé

Intuitionistic Logic

N/A
N/A
Protected

Academic year: 2022

Partager "Intuitionistic Logic"

Copied!
9
0
0

Texte intégral

(1)

Intuitionistic Logic

Akim Demaille akim@lrde.epita.fr

EPITA — École Pour l’Informatique et les Techniques Avancées

June 14, 2016

Intuitionistic Logic

1

Constructivity

2

Intuitionistic Logic

A. Demaille Intuitionistic Logic 2 / 34

Constructivity

1

Constructivity

2

Intuitionistic Logic

Constructivity

Classical logic does not build truth it discovers a preexisting truth

Classical logic assumes facts are either true or false

` A ∨ ¬ A Excluded middle, tertium non datur

(2)

Excluded Middle

A ∨ ¬ A XM

·· ·

¬¬ A A ¬¬

[ ¬ A]

·· · B

[ ¬ A]

·· ·

¬ B

Contradiction A

A ` A

` ¬ A, A `¬

` r ∨

` A ∨ ¬ A, A

` l ∨

` A ∨ ¬ A, A ∨ ¬ A

` C

` A ∨ ¬ A

A. Demaille Intuitionistic Logic 5 / 34

Reductio ad Absurdum

In Real Life

A You should respect C’s belief, for all beliefs are of equal validity and cannot be denied.

B What about D’s belief? (Where D believes something that is considered to be wrong by most people, such as nazism or the world being flat)

A I agree it is right to deny D’s belief.

B If it is right to deny D’s belief, it is not true that no belief can be denied. Therefore, I can deny C’s belief if I can give reasons that suggest it too is incorrect.

A. Demaille Intuitionistic Logic 6 / 34

Reductio ad Absurdum

In Real Life

A You should respect C’s belief, for all beliefs are of equal validity and cannot be denied.

B

1

I deny that belief of yours and believe it to be invalid.

2

According to your statement, this belief of mine (1) is valid, like all other beliefs.

3

However, your statement also contradicts and invalidates mine, being the exact opposite of it.

4

The conclusions of 2 and 3 are incompatible and contradictory, so your statement is logically absurd.

Reductio ad Absurdum

Mathematics: The Smallest Positive Rational

There is no smallest positive rational.

1

Suppose there exists one such rational r

2

r /2 is rational and positive

3

r /2 < r

4

Contradiction

(3)

Reductio ad Absurdum

Mathematics: √

2 is irrational

√ 2 is irrational.

1

Assume √

2 is rational: ∃ a, b integers st. a/b = √ 2

2

a, b can be taken coprime

3

∴ a

2

/b

2

= 2 and a

2

= 2b

2

4

∴ a

2

is even (a

2

= 2b

2

)

5

∴ a is even

6

Because a is even, ∃ k st. a = 2k .

7

We insert the last equation of (3) in (6): 2b

2

= (2k)

2

is equivalent to 2b

2

= 4k

2

is equivalent to b

2

= 2k

2

.

8

Since 2k

2

is even, b

2

is even, hence, b is even

9

By (5) and (8) a, b are even

10

Contradicts 2

A. Demaille Intuitionistic Logic 9 / 34

Constructivity

Mathematics: Rationality and Power

There are irrational positive numbers a, b such that a

b

is rational.

1

2 is known to be irrational

2

Consider √ 2

√2

:

1

If it is rational, take a = b = √ 2

2

Otherwise, take a = √ 2

2

, b = √

2, a

b

= 2 But it is not known which numbers.

We proved A ∨ B, but neither A nor B .

A. Demaille Intuitionistic Logic 10 / 34

Constructivity

Mathematics: Unknown Numbers

Let σ be the number defined below. Its value is unknown, but it is rational.

For each decimal digit of π, write 3. Stop if the sequence 0123456789 is found.

1

If 0123456789 occurs in π, then σ = 0, 3 . . . 3 =

103.10k−1k 2

If it does not, σ = 0, 3 . . . = 1/3

We proved ∃ x .P(x), but know no t : P(t).

Constructivity

Disjunction Property

If A ∨ B is provable, then either A or B is provable, and reading the proof tells which one.

Existence Property

If ∃ x · A(x ) is provable, then reading the proof allows to exhibit a witness t

(i.e., such that A(t)).

(4)

Intuitionistic Logic

1

Constructivity

2

Intuitionistic Logic

NJ: Intuitionistic Natural Deduction LJ: Intuitionistic Sequent Calculus

A. Demaille Intuitionistic Logic 13 / 34

Intuitionistic Logic

Luitzen Egbertus Jan Brouwer (1881–1966)

A. Demaille Intuitionistic Logic 14 / 34

Intuitionistic Logic

Classical logic focuses on truth (hence truth values) Intuitionistic logic focuses on provability (hence proofs) A is true if it is provable

The excluded middle is. . . excluded

A ` A

` ¬ A, A `¬

` r ∨

` A ∨ ¬ A, A

` l ∨

` A ∨ ¬ A, A ∨ ¬ A

NJ: Intuitionistic Natural Deduction

1

Constructivity

2

Intuitionistic Logic

NJ: Intuitionistic Natural Deduction

LJ: Intuitionistic Sequent Calculus

(5)

Intuitionistic Natural Deduction

Natural deduction supports very well intuistionistic logic.

In fact, classical logic does not fit well in natural deduction.

[A] ·· ·

⊥ ¬I

¬ A

·· · A

·· ·

¬ A

⊥ ¬E

A ∨ ¬ A XM

·· ·

¬¬ A A ¬¬

[ ¬ A]

·· · B

[ ¬ A]

·· ·

¬ B

Contradiction A

A. Demaille Intuitionistic Logic 17 / 34

Intuitionistic Negation

[A] ·· ·

⊥ ¬I

¬ A

·· · A

·· ·

¬ A

⊥ ¬E [A] ·· ·

B ⇒I A ⇒ B

·· · A

·· · A ⇒ B B ⇒E

So define ¬ A := A ⇒ ⊥ .

A. Demaille Intuitionistic Logic 18 / 34

Prove A ` ¬¬ A

A [A ⇒ ⊥ ]

1

⊥ ⇒E

⇒I

1

(A ⇒ ⊥ ) ⇒ ⊥

Prove ¬¬¬ A ` ¬ A

[A]

2

[A ⇒ ⊥ ]

1

⊥ ⇒E

⇒I

1

(A ⇒ ⊥ ) ⇒ ⊥ ((A ⇒ ⊥ ) ⇒ ⊥ ) ⇒ ⊥

⊥ ⇒E

⇒I

2

A ⇒ ⊥

(6)

Intuitionistic Natural Deduction

[A] ·· ·

B ⇒I A ⇒ B

·· · A

·· · A ⇒ B B ⇒E

·· ·

⊥ ⊥E A A B ∧I

A ∧ B

A ∧ B

∧ l E A

A ∧ B

∧ r E B

·· · A ∨ l I A ∨ B

·· ·

B ∨ r I A ∨ B

·· · A ∨ B

[A] ·· · C

[B] ·· ·

C ∨E C

LJ: Intuitionistic Sequent Calculus

1

Constructivity

2

Intuitionistic Logic

NJ: Intuitionistic Natural Deduction LJ: Intuitionistic Sequent Calculus

A. Demaille Intuitionistic Logic 22 / 34

LJ — Intuitionistic Sequent Calculus

LJ — Gentzen 1934

Logistischer intuitionistischer Kalkül

LK: Identity Group

A ` A Id

Γ ` A, ∆ Γ

0

, A ` ∆

0

Γ, Γ

0

` ∆,∆

0

Cut

(7)

LK: Structural Group

Γ ` ∆

` X Γ ` τ (∆)

Γ ` ∆ X ` σ(Γ) ` ∆ Γ ` ∆

` W Γ ` A, ∆

Γ ` ∆ W ` Γ, A ` ∆ Γ ` A, A, ∆

` C Γ ` A, ∆

Γ, A, A ` ∆ C ` Γ, A ` ∆

A. Demaille Intuitionistic Logic 25 / 34

LK: Logical Group: Negation

Γ, A ` ∆ Γ ` ¬ A, ∆ `¬

Γ ` A, ∆ Γ, ¬ A ` ∆ ¬`

A. Demaille Intuitionistic Logic 26 / 34

LK: Logical Group: Conjunction

Γ ` A, ∆ Γ ` B , ∆ Γ ` A ∧ B , ∆ `∧

Γ, A ` ∆ l ∧`

Γ, A ∧ B ` ∆ Γ, B ` ∆

r ∧`

Γ, A ∧ B ` ∆

LK: Logical Group: Disjunction

Γ ` A, ∆

` l ∨ Γ ` A ∨ B , ∆

Γ ` B , ∆

` r ∨ Γ ` A ∨ B , ∆

Γ, A ` ∆ Γ, B ` ∆

Γ, A ∨ B ` ∆ ∨`

(8)

LK: Logical Group: Implication

Γ ` A, ∆ Γ

0

, B ` ∆

0

Γ, Γ

0

, A ⇒ B ` ∆,∆

0

⇒`

Γ, A ` B, ∆ Γ ` A ⇒ B , ∆ `⇒

A. Demaille Intuitionistic Logic 29 / 34

LJ

A ` A Id

Γ ` A Γ

0

, A ` B Γ, Γ

0

` B Cut

Γ ` B X ` σ(Γ) ` B

Γ ` B W ` Γ, A ` B

Γ, A, A ` B C ` Γ, A ` B Γ ` A Γ ` B

Γ ` A ∧ B `∧

Γ, A ` C

l ∧`

Γ, A ∧ B ` C

Γ, B ` C

r ∧`

Γ, A ∧ B ` C Γ ` A

` l ∨ Γ ` A ∨ B

Γ ` B

` r ∨ Γ ` A ∨ B

Γ, A ` C Γ, B ` C Γ, A ∨ B ` C ∨`

Γ ` A Γ

0

, B ` C Γ, Γ

0

, A ⇒ B ` C ⇒`

Γ, A ` B Γ ` A ⇒ B `⇒

A. Demaille Intuitionistic Logic 30 / 34

Prove A ` ¬¬ A

A ` A ⊥ ` ⊥ A, A ⇒ ⊥ ` ⊥ ⇒`

A ` (A ⇒ ⊥ ) ⇒ ⊥ `⇒

Prove ¬¬¬ A ` ¬ A

A ` A ⊥ ` ⊥ A, A ⇒ ⊥ ` ⊥ ⇒`

A ` (A ⇒ ⊥ ) ⇒ ⊥ `⇒ ⊥

0

` ⊥

0

A, ((A ⇒ ⊥ ) ⇒ ⊥ ) ⇒ ⊥

0

` ⊥

0

⇒`

((A ⇒ ⊥ ) ⇒ ⊥ ) ⇒ ⊥

0

` A ⇒ ⊥

0

`⇒

Therefore, in intuistionistic logic ¬¬¬ A ≡ ¬ A, but ¬¬ A 6≡ A.

(9)

Recommended Readings

[van Atten, 2014]

The history of intuitionistic logic.

A. Demaille Intuitionistic Logic 33 / 34

Bibliography I

van Atten, M. (2014).

The development of intuitionistic logic.

In Zalta, E. N., editor, The Stanford Encyclopedia of Philosophy.

Spring 2014 edition.

A. Demaille Intuitionistic Logic 34 / 34

Références

Documents relatifs

In Section 3 we study the well-known Harrop’s rule, and more precisely the logic KP obtained by adding Harrop’s principle to IPC: we prove good properties like subject reduction,

The protocol to follow in the creation of an abstract machine for a given focused sequent calculus is in the end quite mechanical, as it consists essentially in the identification of

In the Kripke semantics defined for dual-intuitionistic logic (see [Gor00]), the dual of intuitionistic implication is interpreted as being valid in a possible world if it is valid

The arbitrary assignment of positive (synchronous) and negative (asynchronous) bias to atomic formulas can have a major impact on, not the existence of focused proofs, but the shape

The missing piece to decompose cuts to their atomic form as shown in (9) is the rule s↑, dual to the switch s↓ rule, which allows to move a substructure in positive position outside

In dialogical logic, the particle rules are said to state the local semantics: what is at stake is only the request and the answer corresponding to the utterance of a given

If we can independently prove that only a finite number of different types need to be considered to find a valid proof (this is the case for propositional logic because of

reasonable form of analyticity that can be demanded in Gilp ∗ : for any deriva- tion d, containing both cuts at the sequent and the TND-sequent level, there exists a cut-