Heyting's intuitionistic propositional calculus

From testwiki
Jump to navigation Jump to search

Heyting's axiomatization (1930) of IL

number axiom
I ppp
II pqqp
III (pq)(prqr)
IV ((pq)(qr))(pr)
V q(pq)
VI p(pq)q
VII ppq
VIII pqqp
IX ((pr)(qr))((pq)r)
X ¬p(pq)
XI ((pq)(p¬q))¬p

The above axiomatization does not have the expected rules of AND introduction and elimination, which are very convenient to work with, so derive those first.


index formula justification
1 p Hypothesis
2 q Hypothesis
3 q(pq) Axiom V
4 pq MP 2, 3
5 (pq)(ppqp) Axiom III
6 ppqp MP 4, 5
7 ppp Axiom I
8 pp MP 1, 7
9 qp MP 8, 6
10 qppq Axiom II
11 pq MP 9, 10
12 p,qpq Summary 1, 2; 11

The Deduction Theorem (DT) has not been proven yet so it cannot be used yet. The sequent p,qpq may be applied like an inference rule, which may be called "ANDi (IR)", which is short for "AND introduction (Inference Rule)". The turnstile symbol, , may be read as "proves" or "therefore".


index formula justification
1 q(pq) Axiom V
2 [q(pq)][qp(pq)p] Axiom III
3 qp(pq)p MP 1, 2
4 pq Hypothesis
5 pqqp Axiom II
6 qp MP 4, 5
7 (pq)p MP 6, 3
8 (pq)pp(pq) Axiom II
9 p(pq) MP 7, 8
10 (p(pq))q Axiom VI
11 q MP 9, 10
12 pqq Summary 4; 11

The sequent pqq may be applied like an inference rule, which may be called "ANDeR (IR)", which is short for "AND elimination Right (Inference Rule)".

Reflexivity of Implication

Sketch of proof: Look at Axiom IV; it states

((pq)(qr))(pr)

Let r=p so that the consequent is the goal, pp. Then the antecedent becomes

(pq)(qp)

If q is replaced by q(qp), then the second conjunct becomes

[q(qp)p]

which is Axiom VI and therefore True. Note that q may still be replaced by any formula and this second conjunct will remain True. Now looking at the first conjunct, it is

p[q(qp)]

If q is let to become pp then this first conjunct will become True. Why?

p(pp)

is an instance of Axiom V, and

p((pp)p)

is also an instance of Axiom V. These two instances together should imply that

p((pp)((pp)p))

because (in general)

αβ, αγILαβγ

although this has to be proven (either separately or somehow included as part of the proof).

Looking at the following sequence of implications

pI(pp)V,III((qp)p)II(p(qp))V,III((pp)(qp))

where αβγ is interpreted neither as α(βγ) nor as (αβ)γ but as a separate pair of implications: αβ and βγ from which shall be derived αγ (by "THEN Composition" so to say, which is actually Transitivity of Implication, Axiom IV). The sequence of THEN Compositions shall yield

p[(pp)(qp)]

which is the subgoal which makes the first conjunct True. Having proven both conjuncts True, use ANDi as an inference rule to introduce their conjunction. Then invoke Axiom IV.

index formula justification
1 ppp Axiom I
2 p((pp)p) Axiom V
3 [p((pp)p)][pp((pp)p)p] Axiom III
4 pp((pp)p)p MP 2, 3
5 ((pp)p)pp((pp)p) Axiom II
6 p(pp) Axiom V
7 [p(pp)][p((pp)p)(pp)((pp)p)] Axiom III
8 p((pp)p)(pp)((pp)p) MP 6, 7
9 [ppp][pp((pp)p)p] ANDi (IR) 1, 4
10 [ppp][pp((pp)p)p][p((pp)p)p] Axiom IV
10.1 p((pp)p)p MP 9, 10
11 [p((pp)p)p][((pp)p)pp((pp)p)] ANDi (IR) 10.1, 5
12 [p((pp)p)p][((pp)p)pp((pp)p)][pp((pp)p)] Axiom IV
13 pp((pp)p) MP 11, 12
14 [pp((pp)p)][p((pp)p){(pp)((pp)p)}] ANDi (IR) 13, 8
15 [pp((pp)p)][p((pp)p)(pp)((pp)p)][p(pp)((pp)p)] Axiom IV
16 p{(pp)((pp)p)} MP 14, 15
17 (pp)((pp)p)p Axiom VI
18 [p{(pp)((pp)p)}][{(pp)((pp)p)}p] ANDi (IR) 16, 17
19 [p{(pp)((pp)p)}][{(pp)((pp)p)}p](pp) Axiom IV
20 pp MP 18, 19

Cosliced MP Theorem

The Modus Ponens inference rule states that

q, qrr

Now "coslice" the above with an antecedent p:

p(qr), pqpr

where "coslice" comes from an analogy with category theory. Applying DT twice to this would yield the Axiom of THEN Self-Distribution:

(p(qr))((pq)(pr));

however, we do not have DT available yet. In fact, the Cosliced MP Theorem is a lemma that is necessary for proving DT.

Here is a preliminary lemma:

index formula justification
1 pq Hypothesis
2 (pq)(ppqp) Axiom III
3 ppqp MP 1, 2
4 ppp Axiom I
5 (ppp)(ppqp)(pqp) Axiom IV
6 (ppp)(ppqp) ANDi (IR) 4, 3
7 pqp MP 6, 5
8 pqpqp Summary 1; 7


Another lemma, which might be called the "Fold The Telescope" Theorem:

p(qr)pqr

Here is a proof sketch for it:

p(qr)

is assumed as hypothesis. Use Axiom III to derive

pq(qr)q

and continue rightwards:

pq(qr)qIIq(qr)VIr
index formula justification
1 p(qr) Hypothesis
2 [p(qr)][pq(qr)q] Axiom III
3 pq(qr)q MP 1, 2
4 (qr)qq(qr) Axiom II
5 [pq(qr)q][(qr)qq(qr)] ANDi (IR) 3, 4
6 [pq(qr)q][(qr)qq(qr)][pqq(qr)] Axiom IV
7 pqq(qr) MP 5, 6
8 (q(qr))r Axiom VI
9 [pqq(qr)][(q(qr))r] ANDi (IR) 7, 8
10 [pqq(qr)][(q(qr))r][pqr] Axiom IV
11 pqr MP 9, 10
12 p(qr)pqr Summary 1; 11


Now for the Cosliced MP. Brief sketch of the proof:

p(qr)pqr
pqpqp
pqpIIpqr
index formula justification
1 p(qr) Hypothesis
2 pqr Fold The Telescope Theorem (IR) 1
3 pq Hypothesis
4 pqp Theorem, on 3
5 qppq Axiom II
6 [pqp][qppq] ANDi (IR) 4, 5
7 [pqp][qppq][ppq] Axiom IV
8 ppq MP 6, 7
9 (ppq)(pqr) ANDi (IR) 8, 2
10 (ppq)(pqr)(pr) Axiom IV
11 pr MP 9, 10
12 p(qr), pqpr Summary 1, 3; 11

Deduction Theorem (DT)

The Deduction Theorem is a metatheorem, which may be applied as an inference rule, is analogous to currying, and may be stated thus:

γ1,γ2, ...,γmβγ1,γ2,...,γm1γmβ

Given the proof

α1,α2,...,αn1, αn=β

where each αi is either a hypothesis, or an axiom, or a theorem (proved elsewhere), or is proved by MP from two previous αj's —but β is required to be proved by MP from two previous α's— the following modification of it may be deduced:

αkα1,αkα2, ...,αkαk,...,αkαn,

where αk is the last hypothesis in the sequence.

This modification might be here called "coslicing" of a proof (by way of analogy with coslice categories).

(By the way, what is the difference between a sequent and a proof? A sequent is a sort of abstracted summary of a proof, which includes only hypotheses to the left of the turnstile and a conclusion to the right of it. It does not include the intermediate steps of the proof; the proof includes hypotheses, the conclusion, but also any axioms and theorems and intermediate derived formulas.)

How to prove that the derived proof is as valid as the original? If αi is an axiom or hypothesis or theorem in the original proof, then

index formula justification
1 αi Axiom or Hypothesis or Theorem
2 αi(αkαi) Axiom V
3 αnαi MP 1, 2

so αkαi in the derived proof is just as true as the original αi.

Now suppose that αj is derived by MP from two prior alphas: αi and αiαj, and assume as inductive step that both αi and αiαj have been shown to be true already. (Axioms and theorems are valid —necessarily true, so to say— and hypotheses are assumed to be true.) Then

αi,αiαjαj

which in the derived proof becomes

αkαi,αk(αiαj)?αkαj

From αk(αiαj) derive (αkαi)(αkαj) through the THEN Distribution theorem (proved earlier).

Then

αkαi,(αkαi)(αkαj)αkαj

is true by Modus Ponens. Then the step

αkαi,αk(αiαj) αkαj

in the derived proof is valid.

Thus, the cosliced proof remains as valid as the original proof. By abstracting/summarizing proofs into sequents, a similar result holds for sequents: i.e., if a sequent is valid then the coslice of that sequent is valid; i.e., if

γ1,γ2, ...,γmβ

is valid then

γmγ1, γmγ2, ..., γmγmγmβ

is also valid.

OK, from the above considerations, given only γ1 γ2, ..., γm1 as premises (i.e., hypotheses), what can be derived? From these premises may be derived γmγ1, γmγ2, ..., γmγm1 using Axiom V. Moreover, γmγm may be appended to the list because it is a proven theorem (Reflexivity of Implication). Then, according to the coslice sequent, γmβ may be deduced. To summarize,

γ1, γ2, ..., γm1γmβ.

A formula which may be derived by "quoting" DT is

((γ1γ2...γm)β)((γ1γ2...γm1)(γmβ)).

A special case of this for m=2 is the Unfold The Telescope Theorem.

"Quoting" involves changing each comma before the turnstile of a sequent to an AND, and the turnstile itself to THEN (→). Intuitionistic sequents have only one formula after the turnstile. Axiom VI is the "quoted" form of Modus Ponens.

The reverse process might be called "unquoting"; DT may be run in reverse. (The proof of this is a lot easier; just apply MP one time.) As an analogy, actors "unquote" a written play (or screenplay) when they act it out. A stenographer "quotes" the proceedings in a courtroom. What DT does is help to quote. The Fold/Unfold Telescope theorems help with quoting as well.

Applying DT twice to the Cosliced MP rule yields the Axiom of THEN Self-Distribution.

p(qr), pqpr
p(qr)(pq)(pr)
(p(qr))((pq)(pr))

Applying DT twice to ANDi (IR) yields Axiom ANDi:

p,qpq
pqpq
p(qpq)

Also, applying DT to the ANDeR (IR) yields Axiom ANDeR:

pqq
pqq

An example of quoting a three-premise sequent:

index formula justification
1 α, β, γδ Original
2 α, βγδ DT on 1
3 αβ(γδ) DT on 2
4 α(β(γδ)) DT on 3
5 αβ(γδ) FT on 4
6 (αβ)γδ FT on 5

FT is shorthand for "Fold the Telescope". Now prove that AND is associative in order to be able to remove the parentheses around the conjunction of alpha and beta.


index formula justification
1 α(βγ) Hypothesis
2 α(βγ)α ANDeL
3 α(βγ)(βγ) ANDeR
4 α MP 1, 2
5 βγ MP 1, 3
6 βγβ ANDeL
7 βγγ ANDeR
8 β MP 5, 6
9 γ MP 5, 7
10 α(βαβ) ANDi
11 β(αβ) MP 4, 10
12 αβ MP 8, 11
13 αβ(γ(αβ)γ) ANDi
14 γ(αβ)γ MP 12, 13
15 (αβ)γ MP 9, 14
16 α(βγ)(αβ)γ Summary 1;15
17 α(βγ)(αβ)γ DT 16


Now prove the same thing but using the Inference Rule versions of ANDeL and ANDeR, in order to compare the two proofs.

index formula justification
1 α(βγ) Hypothesis
2 α ANDeL (IR) 1
3 βγ ANDeR (IR) 1
4 β ANDeL (IR) 3
5 γ ANDeR (IR) 3
6 αβ ANDi (IR) 2, 4
7 (αβ)γ ANDi (IR) 6, 5
8 α(βγ)(αβ)γ Summary 1; 7
9 α(βγ)(αβ)γ DT 8

Using ANDeL (IR) and ANDeR (IR) inference rules alongside MP helps save almost half of the steps. This latter proof is more Natural Deduction-like. ANDeL has not been proven yet, though.


index formula justification
1 pq Hypothesis
2 pqqp Axiom II
3 qp MP 1, 2
4 qpp ANDeR
5 p MP 3, 4
6 pqp Summary 1; 5
7 pqp DT 6

The sequent in line 6 gives the inference rule form of the theorem.


index formula justification
1 (αβ)γ Hypothesis
2 αβ ANDeL (IR) 1
3 γ ANDeR (IR) 1
4 α ANDeL (IR) 2
5 β ANDeR (IR) 2
6 βγ ANDi (IR) 5, 3
7 α(βγ) ANDi (IR) 4, 6
8 (αβ)γα(βγ) Summary 1; 7
9 (αβ)γα(βγ) DT 8

Since α(βγ)(αβ)γ and (αβ)γα(βγ), then the two ways of ANDing twice yield logically equivalent results:

α(βγ)(αβ)γ

so that the parentheses may be removed altogether; the three conjuncts form an "AND association", so to say, where all associates treat each other equally.

Then, the sequent containing four formulas,

α, β, γδ

may be quoted by a single formula:

αβγδ.

Remaining axioms

Applying the Unfold The Telescope theorem to Axiom IX yields Axiom OR introduction Antecedent (ORiA):

((pr)(qr))((pq)r)
(pr)((qr)(pqr)).


index formula justification
1 qqp Axiom VII
2 qppq Axiom II
3 (qqp)(qppq) ANDi (IR) 1, 2
4 ((qqp)(qppq))(qpq) Axiom IV
5 qpq MP 3, 4

This is Axiom OR introduction Right (ORiR).


Applying the Unfold The Telescope theorem to Axiom XI yields Axiom NOT introduction (or Reductio Ad Absurdum):

((pq)(p¬q))¬p
(pq)((p¬q)¬p)

Axiom V is Axiom THEN introduction Consequent (THENiC):

p(qp)

Axiom X is Axiom THEN introduction Antecedent (THENiA):

¬p(pq)

That proves all of the axioms of Intuitionistic Propositional Calculus mentioned in Wikipedia's Propositional calculus article (abbreviate it as just IPC):

label axiom alternative label
THEN-1 p(qp) THENiC
THEN-2 (p(qr))((pq)(pr)) THENdist
AND-1 pqp ANDeL
AND-2 pqq ANDeR
AND-3 p(qpq) ANDi
OR-1 ppq ORiL
OR-2 qpq ORiR
OR-3 (pr)((qr)(pqr)) ORiA
NOT-1 ¬p(pq) THENiA, NOTe
NOT-2 (pq)((p¬q)¬p) NOTi

This means that Heyting's IPC contains Wikipedia's IPC.

Now proving in the other direction

Axiom I

index formula justification
1 p(ppp) ANDi
1.1 [p(ppp)][(pp)(ppp)] THENdist
2 (pp)(ppp) MP 1, 1.1
3 pp Theorem: THEN Reflexive
4 p(pp) MP 3, 2


Theorem: THEN Reflexive Proof sketch: Use THENdist:

(p(qr))((pq)(pr))

and let r=p:

(p(qp))((pq)(pp))

This should yield the desired conclusion if the two antecedents are satisfied:

p(qp)
pq

The first antecedent is Axiom THENiC so it will be true for any formula that is substituted for q. The second antecedent will become true if q gets replaced by pp (although qp could also work), in which case the second antecedent will also be an instance of Axiom THENiC.

index formula justification
1 p((pp)p) THENiC
2 p(pp) THENiC
3 [p((pp)p)][p(pp)](pp) THENdist
4 (p(pp))(pp) MP 1, 3
5 pp MP 2, 4

Axiom II

index formula justification
1 pq Hypothesis
2 pqp ANDeL
3 pqq ANDeR
4 p MP 1, 2
5 q MP 1, 3
6 q(pqp) ANDi
7 pqp MP 5, 6
8 qp MP 4, 7
9 pqqp Summary 1; 8
10 pqqp DT 9

Axiom III

index formula justification
1 pq Hypothesis
2 pr Hypothesis
3 prp ANDeL
4 prr ANDeR
5 p MP 2, 3
6 r MP 2, 4
7 q MP 5, 1
8 q(rqr) ANDi
9 rqr MP 7, 8
10 qr MP 6, 9
11 pq, prqr Summary 1, 2; 10
12 pqprqr DT 11
13 (pq)(prqr) DT 12

Axiom IV

index formula justification
1 (pq)(qr) Hypothesis
2 ((pq)(qr))(pq) ANDeL
3 ((pq)(qr))(qr) ANDeR
4 pq MP 1, 2
5 qr MP 1, 3
6 p Hypothesis
7 q MP 6, 4
8 r MP 7, 5
9 (pq)(qr), pr Summary 1, 6; 8
10 (pq)(qr)pr DT 9
11 ((pq)(qr))(pr) DT 10

Axiom V

q(pq)

is Axiom THENiC


Axiom VI

index formula justification
1 p(pq) Hypothesis
2 p(pq)p ANDeL
3 p(pq)(pq) ANDeR
4 p MP 1, 2
5 pq MP 1, 3
6 q MP 4, 5
7 p(pq)q Summary 1; 6
8 (p(pq))q DT 7

Axiom VII

ppq

is Axiom ORiL


Axiom VIII

index formula justification
1 pqp ORiR
2 qqp ORiL
3 (pqp)((qqp)(pqqp)) ORiA
4 (qqp)(pqqp) MP 1, 3
5 pqqp MP 2, 4

Axiom IX

index formula justification
1 (pr)(qr) Hypothesis
2 ((pr)(qr))(pr) ANDeL
3 ((pr)(qr))(qr) ANDeR
4 pr MP 1, 2
5 qr MP 1, 3
6 (pr)((qr)(pqr)) ORiA
7 (qr)(pqr) MP 4, 6
8 pqr MP 5, 7
9 (pr)(qr)(pq)r Summary 1; 8
10 ((pr)(qr))(pqr) DT 9

Axiom X

¬p(pq)

is Axiom THENiA

Axiom XI

index formula justification
1 (pq)(p¬q) Hypothesis
2 ((pq)(p¬q))(pq) ANDeL
3 ((pq)(p¬q))(p¬q) ANDeR
4 pq MP 1, 2
5 p¬q MP 1, 3
6 (pq)((p¬q)¬p) NOTi
7 (p¬q)¬p MP 4, 6
8 ¬p MP 5, 7
9 (pq)(p¬q)¬p Summary 1; 8
10 ((pq)(p¬q))¬p DT 9

Conclusion

The axioms of HPC (Heyting's propositional calculus) can all be proved using the Hilbert-style axioms IPC (as set out in Wikipedia's propositional calculus article). Then since any formula of HPC can be proved through its axioms, then applying transitivity, any formula of HPC may be proved through IPC; therefore IPC contains HPC:

IPCHPC.

Earlier was proved the converse, i.e., that the HPC axioms prove the IPC axioms. So any formula provable through the IPC axioms can be proved through the HPC axioms (due to transitivity of implication, or composition of implication, so to say). Thus, the theory of HPC contains the theory of IPC:

HPCIPC.

Since the two theories (sets of theorems) contain each other, then it follows by the Schröder–Bernstein Theorem that the two theories are equal.

References