# Heyting's intuitionistic propositional calculus
## Heyting's axiomatization (1930) of IL

| number | axiom |
| I | $p\rightarrow p\wedge p$ |
| II | $p\wedge q\rightarrow q\wedge p$ |
| III | $(p\rightarrow q)\rightarrow (p\wedge r\rightarrow q\wedge r)$ |
| IV | $((p\rightarrow q)\wedge (q\rightarrow r))\rightarrow (p\rightarrow r)$ |
| V | $q\rightarrow (p\rightarrow q)$ |
| VI | $p\wedge (p\rightarrow q)\rightarrow q$ |
| VII | $p\rightarrow p\vee q$ |
| VIII | $p\vee q\rightarrow q\vee p$ |
| IX | $((p\rightarrow r)\wedge (q\rightarrow r))\rightarrow ((p\vee q)\rightarrow r)$ |
| X | $\neg p\rightarrow (p\rightarrow q)$ |
| XI | $((p\rightarrow q)\wedge (p\rightarrow \neg q))\rightarrow \neg 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\rightarrow (p\rightarrow q)$ | Axiom V |
| 4 | $p\rightarrow q$ | MP 2, 3 |
| 5 | $(p\rightarrow q)\rightarrow (p\wedge p\rightarrow q\wedge p)$ | Axiom III |
| 6 | $p\wedge p\rightarrow q\wedge p$ | MP 4, 5 |
| 7 | $p\rightarrow p\wedge p$ | Axiom I |
| 8 | $p\wedge p$ | MP 1, 7 |
| 9 | $q\wedge p$ | MP 8, 6 |
| 10 | $q\wedge p\rightarrow p\wedge q$ | Axiom II |
| 11 | $p\wedge q$ | MP 9, 10 |
| 12 | $p,q\vdash p\wedge q$ | Summary 1, 2; 11 |
The Deduction Theorem (DT) has not been proven yet so it cannot be used yet. The sequent $p,q\vdash p\wedge q$ may be applied like an inference rule, which may be called "ANDi (IR)", which is short for "AND introduction (Inference Rule)". The turnstile symbol, $\vdash$, may be read as "proves" or "therefore".
| index | formula | justification |
| 1 | $q\rightarrow (p\rightarrow q)$ | Axiom V |
| 2 | $[q\rightarrow (p\rightarrow q)]\rightarrow [q\wedge p\rightarrow (p\rightarrow q)\wedge p]$ | Axiom III |
| 3 | $q\wedge p\rightarrow (p\rightarrow q)\wedge p$ | MP 1, 2 |
| 4 | $p\wedge q$ | Hypothesis |
| 5 | $p\wedge q\rightarrow q\wedge p$ | Axiom II |
| 6 | $q\wedge p$ | MP 4, 5 |
| 7 | $(p\rightarrow q)\wedge p$ | MP 6, 3 |
| 8 | $(p\rightarrow q)\wedge p\rightarrow p\wedge (p\rightarrow q)$ | Axiom II |
| 9 | $p\wedge (p\rightarrow q)$ | MP 7, 8 |
| 10 | $(p\wedge (p\rightarrow q))\rightarrow q$ | Axiom VI |
| 11 | $q$ | MP 9, 10 |
| 12 | $p\wedge q\vdash q$ | Summary 4; 11 |
The sequent $p\wedge q\vdash q$ 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
    $((p\rightarrow q)\wedge (q\rightarrow r))\rightarrow (p\rightarrow r)$
Let $r=p$ so that the consequent is the goal, $p\rightarrow p$. Then the antecedent becomes
    $(p\rightarrow q)\wedge (q\rightarrow p)$
If $q$ is replaced by $q\wedge (q\rightarrow p)$, then the second conjunct becomes
    $[q\wedge (q\rightarrow p)\rightarrow 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\rightarrow [q\wedge (q\rightarrow p)]$
If $q$ is let to become $p\rightarrow p$ then this first conjunct will become True. Why?
    $p\rightarrow (p\rightarrow p)$
is an instance of Axiom V, and
    $p\rightarrow ((p\rightarrow p)\rightarrow p)$
is also an instance of Axiom V. These two instances together should imply that
    $p\rightarrow ((p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p))$
because (in general)
    $\alpha \rightarrow \beta ,\ \alpha \rightarrow \gamma \vdash _{IL}\alpha \rightarrow \beta \wedge \gamma$
although this has to be proven (either separately or somehow included as part of the proof).
Looking at the following sequence of implications
    $p{\xrightarrow[{I}]}(p\wedge p){\xrightarrow[{V,III}]}((q\rightarrow p)\wedge p){\xrightarrow[{II}]}(p\wedge (q\rightarrow p)){\xrightarrow[{V,III}]}((p\rightarrow p)\wedge (q\rightarrow p))$
where $\alpha \rightarrow \beta \rightarrow \gamma$ is interpreted neither as $\alpha \rightarrow (\beta \rightarrow \gamma )$ nor as $(\alpha \rightarrow \beta )\rightarrow \gamma$ but as a separate pair of implications: $\alpha \rightarrow \beta$ and $\beta \rightarrow \gamma$ from which shall be derived $\alpha \rightarrow \gamma$ (by "THEN Composition" so to say, which is actually Transitivity of Implication, Axiom IV). The sequence of THEN Compositions shall yield
    $p\rightarrow [(p\rightarrow p)\wedge (q\rightarrow p)]$
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 | $p\rightarrow p\wedge p$ | Axiom I |
| 2 | $p\rightarrow ((p\rightarrow p)\rightarrow p)$ | Axiom V |
| 3 | $[p\rightarrow ((p\rightarrow p)\rightarrow p)]\rightarrow [p\wedge p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p]$ | Axiom III |
| 4 | $p\wedge p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p$ | MP 2, 3 |
| 5 | $((p\rightarrow p)\rightarrow p)\wedge p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)$ | Axiom II |
| 6 | $p\rightarrow (p\rightarrow p)$ | Axiom V |
| 7 | $[p\rightarrow (p\rightarrow p)]\rightarrow [p\wedge ((p\rightarrow p)\rightarrow p)\rightarrow (p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)]$ | Axiom III |
| 8 | $p\wedge ((p\rightarrow p)\rightarrow p)\rightarrow (p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)$ | MP 6, 7 |
| 9 | $[p\rightarrow p\wedge p]\wedge [p\wedge p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p]$ | ANDi (IR) 1, 4 |
| 10 | $[p\rightarrow p\wedge p]\wedge [p\wedge p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p]\rightarrow [p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p]$ | Axiom IV |
| 10.1 | $p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p$ | MP 9, 10 |
| 11 | $[p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p]\wedge [((p\rightarrow p)\rightarrow p)\wedge p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)]$ | ANDi (IR) 10.1, 5 |
| 12 | $[p\rightarrow ((p\rightarrow p)\rightarrow p)\wedge p]\wedge [((p\rightarrow p)\rightarrow p)\wedge p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)]\rightarrow [p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)]$ | Axiom IV |
| 13 | $p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)$ | MP 11, 12 |
| 14 | $[p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)]\wedge [p\wedge ((p\rightarrow p)\rightarrow p)\rightarrow \{(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\}]$ | ANDi (IR) 13, 8 |
| 15 | $[p\rightarrow p\wedge ((p\rightarrow p)\rightarrow p)]\wedge [p\wedge ((p\rightarrow p)\rightarrow p)\rightarrow (p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)]\rightarrow [p\rightarrow (p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)]$ | Axiom IV |
| 16 | $p\rightarrow \{(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\}$ | MP 14, 15 |
| 17 | $(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\rightarrow p$ | Axiom VI |
| 18 | $[p\rightarrow \{(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\}]\wedge [\{(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\}\rightarrow p]$ | ANDi (IR) 16, 17 |
| 19 | $[p\rightarrow \{(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\}]\wedge [\{(p\rightarrow p)\wedge ((p\rightarrow p)\rightarrow p)\}\rightarrow p]\rightarrow (p\rightarrow p)$ | Axiom IV |
| 20 | $p\rightarrow p$ | MP 18, 19 |

## Cosliced MP Theorem

The Modus Ponens inference rule states that
    $q,\ q\rightarrow r\vdash r$
Now "coslice" the above with an antecedent $p$:
    $p\rightarrow (q\rightarrow r),\ p\rightarrow q\vdash p\rightarrow r$
where "coslice" comes from an analogy with category theory. Applying DT twice to this would yield the Axiom of THEN Self-Distribution:
    $(p\rightarrow (q\rightarrow r))\rightarrow ((p\rightarrow q)\rightarrow (p\rightarrow r))$;
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 | $p\rightarrow q$ | Hypothesis |
| 2 | $(p\rightarrow q)\rightarrow (p\wedge p\rightarrow q\wedge p)$ | Axiom III |
| 3 | $p\wedge p\rightarrow q\wedge p$ | MP 1, 2 |
| 4 | $p\rightarrow p\wedge p$ | Axiom I |
| 5 | $(p\rightarrow p\wedge p)\wedge (p\wedge p\rightarrow q\wedge p)\rightarrow (p\rightarrow q\wedge p)$ | Axiom IV |
| 6 | $(p\rightarrow p\wedge p)\wedge (p\wedge p\rightarrow q\wedge p)$ | ANDi (IR) 4, 3 |
| 7 | $p\rightarrow q\wedge p$ | MP 6, 5 |
| 8 | $p\rightarrow q\vdash p\rightarrow q\wedge p$ | Summary 1; 7 |
Another lemma, which might be called the "Fold The Telescope" Theorem:
    $p\rightarrow (q\rightarrow r)\vdash p\wedge q\rightarrow r$
Here is a proof sketch for it:
    $p\rightarrow (q\rightarrow r)$
is assumed as hypothesis. Use Axiom III to derive
    $p\wedge q\rightarrow (q\rightarrow r)\wedge q$
and continue rightwards:
    $p\wedge q\rightarrow (q\rightarrow r)\wedge q{\xrightarrow[{II}]}q\wedge (q\rightarrow r){\xrightarrow[{VI}]}r$
| index | formula | justification |
| 1 | $p\rightarrow (q\rightarrow r)$ | Hypothesis |
| 2 | $[p\rightarrow (q\rightarrow r)]\rightarrow [p\wedge q\rightarrow (q\rightarrow r)\wedge q]$ | Axiom III |
| 3 | $p\wedge q\rightarrow (q\rightarrow r)\wedge q$ | MP 1, 2 |
| 4 | $(q\rightarrow r)\wedge q\rightarrow q\wedge (q\rightarrow r)$ | Axiom II |
| 5 | $[p\wedge q\rightarrow (q\rightarrow r)\wedge q]\wedge [(q\rightarrow r)\wedge q\rightarrow q\wedge (q\rightarrow r)]$ | ANDi (IR) 3, 4 |
| 6 | $[p\wedge q\rightarrow (q\rightarrow r)\wedge q]\wedge [(q\rightarrow r)\wedge q\rightarrow q\wedge (q\rightarrow r)]\rightarrow [p\wedge q\rightarrow q\wedge (q\rightarrow r)]$ | Axiom IV |
| 7 | $p\wedge q\rightarrow q\wedge (q\rightarrow r)$ | MP 5, 6 |
| 8 | $(q\wedge (q\rightarrow r))\rightarrow r$ | Axiom VI |
| 9 | $[p\wedge q\rightarrow q\wedge (q\rightarrow r)]\wedge [(q\wedge (q\rightarrow r))\rightarrow r]$ | ANDi (IR) 7, 8 |
| 10 | $[p\wedge q\rightarrow q\wedge (q\rightarrow r)]\wedge [(q\wedge (q\rightarrow r))\rightarrow r]\rightarrow [p\wedge q\rightarrow r]$ | Axiom IV |
| 11 | $p\wedge q\rightarrow r$ | MP 9, 10 |
| 12 | $p\rightarrow (q\rightarrow r)\vdash p\wedge q\rightarrow r$ | Summary 1; 11 |
Now for the Cosliced MP. Brief sketch of the proof:
    $p\rightarrow (q\rightarrow r)$ ∴ $p\wedge q\rightarrow r$
    $p\rightarrow q$ ∴ $p\rightarrow q\wedge p$
    $p\rightarrow q\wedge p{\xrightarrow[{II}]}p\wedge q\rightarrow r$
| index | formula | justification |
| 1 | $p\rightarrow (q\rightarrow r)$ | Hypothesis |
| 2 | $p\wedge q\rightarrow r$ | Fold The Telescope Theorem (IR) 1 |
| 3 | $p\rightarrow q$ | Hypothesis |
| 4 | $p\rightarrow q\wedge p$ | Theorem, on 3 |
| 5 | $q\wedge p\rightarrow p\wedge q$ | Axiom II |
| 6 | $[p\rightarrow q\wedge p]\wedge [q\wedge p\rightarrow p\wedge q]$ | ANDi (IR) 4, 5 |
| 7 | $[p\rightarrow q\wedge p]\wedge [q\wedge p\rightarrow p\wedge q]\rightarrow [p\rightarrow p\wedge q]$ | Axiom IV |
| 8 | $p\rightarrow p\wedge q$ | MP 6, 7 |
| 9 | $(p\rightarrow p\wedge q)\wedge (p\wedge q\rightarrow r)$ | ANDi (IR) 8, 2 |
| 10 | $(p\rightarrow p\wedge q)\wedge (p\wedge q\rightarrow r)\rightarrow (p\rightarrow r)$ | Axiom IV |
| 11 | $p\rightarrow r$ | MP 9, 10 |
| 12 | $p\rightarrow (q\rightarrow r),\ p\rightarrow q\vdash p\rightarrow r$ | 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:
    ${\gamma _{1},\,\gamma _{2},\ ...,\,\gamma _{m}\vdash \beta \over \gamma _{1},\,\gamma _{2},\,...,\,\gamma _{m-1}\vdash \gamma _{m}\rightarrow \beta }$
Given the proof
    $\alpha _{1},\alpha _{2},...,\alpha _{n-1},\ \alpha _{n}=\beta$
where each $\alpha _{i}$ is either a hypothesis, or an axiom, or a theorem (proved elsewhere), or is proved by MP from two previous $\alpha _{j}$'s —but $\beta$ is required to be proved by MP from two previous $\alpha$'s— the following modification of it may be deduced:
    $\alpha _{k}\rightarrow \alpha _{1},\,\alpha _{k}\rightarrow \alpha _{2},\ ...,\,\alpha _{k}\rightarrow \alpha _{k},...,\,\alpha _{k}\rightarrow \alpha _{n}$,
where $\alpha _{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 $\alpha _{i}$ is an axiom or hypothesis or theorem in the original proof, then
| index | formula | justification |
| 1 | $\alpha _{i}$ | Axiom or Hypothesis or Theorem |
| 2 | $\alpha _{i}\rightarrow (\alpha _{k}\rightarrow \alpha _{i})$ | Axiom V |
| 3 | ∴ $\alpha _{n}\rightarrow \alpha _{i}$ | MP 1, 2 |
so $\alpha _{k}\rightarrow \alpha _{i}$ in the derived proof is just as true as the original $\alpha _{i}$.
Now suppose that $\alpha _{j}$ is derived by MP from two prior alphas: $\alpha _{i}$ and $\alpha _{i}\rightarrow \alpha _{j}$, and assume as inductive step that both $\alpha _{i}$ and $\alpha _{i}\rightarrow \alpha _{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
    $\alpha _{i},\,\alpha _{i}\rightarrow \alpha _{j}\vdash \alpha _{j}$
which in the derived proof becomes
    $\alpha _{k}\rightarrow \alpha _{i},\,\alpha _{k}\rightarrow (\alpha _{i}\rightarrow \alpha _{j}){\overset {?}{\vdash }}\alpha _{k}\rightarrow \alpha _{j}$
From $\alpha _{k}\rightarrow (\alpha _{i}\rightarrow \alpha _{j})$ derive $(\alpha _{k}\rightarrow \alpha _{i})\rightarrow (\alpha _{k}\rightarrow \alpha _{j})$ through the THEN Distribution theorem (proved earlier).
Then
    $\alpha _{k}\rightarrow \alpha _{i},\,(\alpha _{k}\rightarrow \alpha _{i})\rightarrow (\alpha _{k}\rightarrow \alpha _{j})\vdash \alpha _{k}\rightarrow \alpha _{j}$
is true by Modus Ponens. Then the step
    $\alpha _{k}\rightarrow \alpha _{i},\,\alpha _{k}\rightarrow (\alpha _{i}\rightarrow \alpha _{j}){\overset {\sqrt {\ }}{\vdash }}\alpha _{k}\rightarrow \alpha _{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
    $\gamma _{1},\,\gamma _{2},\ ...,\,\gamma _{m}\vdash \beta$
is valid then
    $\gamma _{m}\rightarrow \gamma _{1},\ \gamma _{m}\rightarrow \gamma _{2},\ ...,\ \gamma _{m}\rightarrow \gamma _{m}\vdash \gamma _{m}\rightarrow \beta$
is also valid.
OK, from the above considerations, given only $\gamma _{1}\,\ \gamma _{2},\ ...,\ \gamma _{m-1}$ as premises (i.e., hypotheses), what can be derived? From these premises may be derived $\gamma _{m}\rightarrow \gamma _{1},\ \gamma _{m}\rightarrow \gamma _{2},\ ...,\ \gamma _{m}\rightarrow \gamma _{m-1}$ using Axiom V. Moreover, $\gamma _{m}\rightarrow \gamma _{m}$ may be appended to the list because it is a proven theorem (Reflexivity of Implication). Then, according to the coslice sequent, $\gamma _{m}\rightarrow \beta$ may be deduced. To summarize,
    $\gamma _{1},\ \gamma _{2},\ ...,\ \gamma _{m-1}\vdash \gamma _{m}\rightarrow \beta$.
A formula which may be derived by "quoting" DT is
    $((\gamma _{1}\wedge \gamma _{2}\wedge ...\wedge \gamma _{m})\rightarrow \beta )\rightarrow ((\gamma _{1}\wedge \gamma _{2}\wedge ...\wedge \gamma _{m-1})\rightarrow (\gamma _{m}\rightarrow \beta ))$.
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\rightarrow (q\rightarrow r),\ p\rightarrow q\vdash p\rightarrow r$
    $p\rightarrow (q\rightarrow r)\vdash (p\rightarrow q)\rightarrow (p\rightarrow r)$
    $\vdash (p\rightarrow (q\rightarrow r))\rightarrow ((p\rightarrow q)\rightarrow (p\rightarrow r))$
Applying DT twice to ANDi (IR) yields Axiom ANDi:
    $p,q\vdash p\wedge q$
    $p\vdash q\rightarrow p\wedge q$
    $\vdash p\rightarrow (q\rightarrow p\wedge q)$
Also, applying DT to the ANDeR (IR) yields Axiom ANDeR:
    $p\wedge q\vdash q$
    $\vdash p\wedge q\rightarrow q$
An example of quoting a three-premise sequent:
| index | formula | justification |
| 1 | $\alpha ,\ \beta ,\ \gamma \vdash \delta$ | Original |
| 2 | $\alpha ,\ \beta \vdash \gamma \rightarrow \delta$ | DT on 1 |
| 3 | $\alpha \vdash \beta \rightarrow (\gamma \rightarrow \delta )$ | DT on 2 |
| 4 | $\vdash \alpha \rightarrow (\beta \rightarrow (\gamma \rightarrow \delta ))$ | DT on 3 |
| 5 | $\vdash \alpha \wedge \beta \rightarrow (\gamma \rightarrow \delta )$ | FT on 4 |
| 6 | $\vdash (\alpha \wedge \beta )\wedge \gamma \rightarrow \delta$ | 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 | $\alpha \wedge (\beta \wedge \gamma )$ | Hypothesis |
| 2 | $\alpha \wedge (\beta \wedge \gamma )\rightarrow \alpha$ | ANDeL |
| 3 | $\alpha \wedge (\beta \wedge \gamma )\rightarrow (\beta \wedge \gamma )$ | ANDeR |
| 4 | $\alpha$ | MP 1, 2 |
| 5 | $\beta \wedge \gamma$ | MP 1, 3 |
| 6 | $\beta \wedge \gamma \rightarrow \beta$ | ANDeL |
| 7 | $\beta \wedge \gamma \rightarrow \gamma$ | ANDeR |
| 8 | $\beta$ | MP 5, 6 |
| 9 | $\gamma$ | MP 5, 7 |
| 10 | $\alpha \rightarrow (\beta \rightarrow \alpha \wedge \beta )$ | ANDi |
| 11 | $\beta \rightarrow (\alpha \wedge \beta )$ | MP 4, 10 |
| 12 | $\alpha \wedge \beta$ | MP 8, 11 |
| 13 | $\alpha \wedge \beta \rightarrow (\gamma \rightarrow (\alpha \wedge \beta )\wedge \gamma )$ | ANDi |
| 14 | $\gamma \rightarrow (\alpha \wedge \beta )\wedge \gamma$ | MP 12, 13 |
| 15 | $(\alpha \wedge \beta )\wedge \gamma$ | MP 9, 14 |
| 16 | $\alpha \wedge (\beta \wedge \gamma )\vdash (\alpha \wedge \beta )\wedge \gamma$ | Summary 1;15 |
| 17 | $\vdash \alpha \wedge (\beta \wedge \gamma )\rightarrow (\alpha \wedge \beta )\wedge \gamma$ | 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 | $\alpha \wedge (\beta \wedge \gamma )$ | Hypothesis |
| 2 | $\alpha$ | ANDeL (IR) 1 |
| 3 | $\beta \wedge \gamma$ | ANDeR (IR) 1 |
| 4 | $\beta$ | ANDeL (IR) 3 |
| 5 | $\gamma$ | ANDeR (IR) 3 |
| 6 | $\alpha \wedge \beta$ | ANDi (IR) 2, 4 |
| 7 | $(\alpha \wedge \beta )\wedge \gamma$ | ANDi (IR) 6, 5 |
| 8 | $\alpha \wedge (\beta \wedge \gamma )\vdash (\alpha \wedge \beta )\wedge \gamma$ | Summary 1; 7 |
| 9 | $\vdash \alpha \wedge (\beta \wedge \gamma )\rightarrow (\alpha \wedge \beta )\wedge \gamma$ | 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 | $p\wedge q$ | Hypothesis |
| 2 | $p\wedge q\rightarrow q\wedge p$ | Axiom II |
| 3 | $q\wedge p$ | MP 1, 2 |
| 4 | $q\wedge p\rightarrow p$ | ANDeR |
| 5 | $p$ | MP 3, 4 |
| 6 | $p\wedge q\vdash p$ | Summary 1; 5 |
| 7 | $\vdash p\wedge q\rightarrow p$ | DT 6 |
The sequent in line 6 gives the inference rule form of the theorem.
| index | formula | justification |
| 1 | $(\alpha \wedge \beta )\wedge \gamma$ | Hypothesis |
| 2 | $\alpha \wedge \beta$ | ANDeL (IR) 1 |
| 3 | $\gamma$ | ANDeR (IR) 1 |
| 4 | $\alpha$ | ANDeL (IR) 2 |
| 5 | $\beta$ | ANDeR (IR) 2 |
| 6 | $\beta \wedge \gamma$ | ANDi (IR) 5, 3 |
| 7 | $\alpha \wedge (\beta \wedge \gamma )$ | ANDi (IR) 4, 6 |
| 8 | $(\alpha \wedge \beta )\wedge \gamma \vdash \alpha \wedge (\beta \wedge \gamma )$ | Summary 1; 7 |
| 9 | $\vdash (\alpha \wedge \beta )\wedge \gamma \rightarrow \alpha \wedge (\beta \wedge \gamma )$ | DT 8 |
Since $\alpha \wedge (\beta \wedge \gamma )\rightarrow (\alpha \wedge \beta )\wedge \gamma$ and $(\alpha \wedge \beta )\wedge \gamma \rightarrow \alpha \wedge (\beta \wedge \gamma )$, then the two ways of ANDing twice yield logically equivalent results:
    $\alpha \wedge (\beta \wedge \gamma )\leftrightarrow (\alpha \wedge \beta )\wedge \gamma$
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,
    $\alpha ,\ \beta ,\ \gamma \vdash \delta$
may be quoted by a single formula:
    $\alpha \wedge \beta \wedge \gamma \rightarrow \delta$.

## Remaining axioms

Applying the Unfold The Telescope theorem to Axiom IX yields Axiom OR introduction Antecedent (ORiA):
    $((p\rightarrow r)\wedge (q\rightarrow r))\rightarrow ((p\vee q)\rightarrow r)$
    ∴ $(p\rightarrow r)\rightarrow ((q\rightarrow r)\rightarrow (p\vee q\rightarrow r))$.
| index | formula | justification |
| 1 | $q\rightarrow q\vee p$ | Axiom VII |
| 2 | $q\vee p\rightarrow p\vee q$ | Axiom II |
| 3 | $(q\rightarrow q\vee p)\wedge (q\vee p\rightarrow p\vee q)$ | ANDi (IR) 1, 2 |
| 4 | $((q\rightarrow q\vee p)\wedge (q\vee p\rightarrow p\vee q))\rightarrow (q\rightarrow p\vee q)$ | Axiom IV |
| 5 | $q\rightarrow p\vee q$ | 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):
    $((p\rightarrow q)\wedge (p\rightarrow \neg q))\rightarrow \neg p$
    ∴ $(p\rightarrow q)\rightarrow ((p\rightarrow \neg q)\rightarrow \neg p)$
Axiom V is Axiom THEN introduction Consequent (THENiC):
    $p\rightarrow (q\rightarrow p)$
Axiom X is Axiom THEN introduction Antecedent (THENiA):
    $\neg p\rightarrow (p\rightarrow q)$
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\rightarrow (q\rightarrow p)$ | THENiC |
| THEN-2 | $(p\rightarrow (q\rightarrow r))\rightarrow ((p\rightarrow q)\rightarrow (p\rightarrow r))$ | THENdist |
| AND-1 | $p\wedge q\rightarrow p$ | ANDeL |
| AND-2 | $p\wedge q\rightarrow q$ | ANDeR |
| AND-3 | $p\rightarrow (q\rightarrow p\wedge q)$ | ANDi |
| OR-1 | $p\rightarrow p\vee q$ | ORiL |
| OR-2 | $q\rightarrow p\vee q$ | ORiR |
| OR-3 | $(p\rightarrow r)\rightarrow ((q\rightarrow r)\rightarrow (p\vee q\rightarrow r))$ | ORiA |
| NOT-1 | $\neg p\rightarrow (p\rightarrow q)$ | THENiA, NOTe |
| NOT-2 | $(p\rightarrow q)\rightarrow ((p\rightarrow \neg q)\rightarrow \neg 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\rightarrow (p\rightarrow p\wedge p)$ | ANDi |
| 1.1 | $[p\rightarrow (p\rightarrow p\wedge p)]\rightarrow [(p\rightarrow p)\rightarrow (p\rightarrow p\wedge p)]$ | THENdist |
| 2 | $(p\rightarrow p)\rightarrow (p\rightarrow p\wedge p)$ | MP 1, 1.1 |
| 3 | $p\rightarrow p$ | Theorem: THEN Reflexive |
| 4 | $p\rightarrow (p\wedge p)$ | MP 3, 2 |
Theorem: THEN Reflexive Proof sketch: Use THENdist:
    $(p\rightarrow (q\rightarrow r))\rightarrow ((p\rightarrow q)\rightarrow (p\rightarrow r))$
and let $r=p$:
    $(p\rightarrow (q\rightarrow p))\rightarrow ((p\rightarrow q)\rightarrow (p\rightarrow p))$
This should yield the desired conclusion if the two antecedents are satisfied:
    $p\rightarrow (q\rightarrow p)$
    $p\rightarrow q$
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 $p\rightarrow p$ (although $q\rightarrow p$ could also work), in which case the second antecedent will also be an instance of Axiom THENiC.
| index | formula | justification |
| 1 | $p\rightarrow ((p\rightarrow p)\rightarrow p)$ | THENiC |
| 2 | $p\rightarrow (p\rightarrow p)$ | THENiC |
| 3 | $[p\rightarrow ((p\rightarrow p)\rightarrow p)]\rightarrow {[p\rightarrow (p\rightarrow p)]\rightarrow (p\rightarrow p)}$ | THENdist |
| 4 | $(p\rightarrow (p\rightarrow p))\rightarrow (p\rightarrow p)$ | MP 1, 3 |
| 5 | $p\rightarrow p$ | MP 2, 4 |

### Axiom II

| index | formula | justification |
| 1 | $p\wedge q$ | Hypothesis |
| 2 | $p\wedge q\rightarrow p$ | ANDeL |
| 3 | $p\wedge q\rightarrow q$ | ANDeR |
| 4 | $p$ | MP 1, 2 |
| 5 | $q$ | MP 1, 3 |
| 6 | $q\rightarrow (p\rightarrow q\wedge p)$ | ANDi |
| 7 | $p\rightarrow q\wedge p$ | MP 5, 6 |
| 8 | $q\wedge p$ | MP 4, 7 |
| 9 | $p\wedge q\vdash q\wedge p$ | Summary 1; 8 |
| 10 | $\vdash p\wedge q\rightarrow q\wedge p$ | DT 9 |

### Axiom III

| index | formula | justification |
| 1 | $p\rightarrow q$ | Hypothesis |
| 2 | $p\wedge r$ | Hypothesis |
| 3 | $p\wedge r\rightarrow p$ | ANDeL |
| 4 | $p\wedge r\rightarrow r$ | ANDeR |
| 5 | $p$ | MP 2, 3 |
| 6 | $r$ | MP 2, 4 |
| 7 | $q$ | MP 5, 1 |
| 8 | $q\rightarrow (r\rightarrow q\wedge r)$ | ANDi |
| 9 | $r\rightarrow q\wedge r$ | MP 7, 8 |
| 10 | $q\wedge r$ | MP 6, 9 |
| 11 | $p\rightarrow q,\ p\wedge r\vdash q\wedge r$ | Summary 1, 2; 10 |
| 12 | $p\rightarrow q\vdash p\wedge r\rightarrow q\wedge r$ | DT 11 |
| 13 | $\vdash (p\rightarrow q)\rightarrow (p\wedge r\rightarrow q\wedge r)$ | DT 12 |

### Axiom IV

| index | formula | justification |
| 1 | $(p\rightarrow q)\wedge (q\rightarrow r)$ | Hypothesis |
| 2 | $((p\rightarrow q)\wedge (q\rightarrow r))\rightarrow (p\rightarrow q)$ | ANDeL |
| 3 | $((p\rightarrow q)\wedge (q\rightarrow r))\rightarrow (q\rightarrow r)$ | ANDeR |
| 4 | $p\rightarrow q$ | MP 1, 2 |
| 5 | $q\rightarrow r$ | MP 1, 3 |
| 6 | $p$ | Hypothesis |
| 7 | $q$ | MP 6, 4 |
| 8 | $r$ | MP 7, 5 |
| 9 | $(p\rightarrow q)\wedge (q\rightarrow r),\ p\vdash r$ | Summary 1, 6; 8 |
| 10 | $(p\rightarrow q)\wedge (q\rightarrow r)\vdash p\rightarrow r$ | DT 9 |
| 11 | $\vdash ((p\rightarrow q)\wedge (q\rightarrow r))\rightarrow (p\rightarrow r)$ | DT 10 |

### Axiom V

    $q\rightarrow (p\rightarrow q)$
is Axiom THENiC

### Axiom VI

| index | formula | justification |
| 1 | $p\wedge (p\rightarrow q)$ | Hypothesis |
| 2 | $p\wedge (p\rightarrow q)\rightarrow p$ | ANDeL |
| 3 | $p\wedge (p\rightarrow q)\rightarrow (p\rightarrow q)$ | ANDeR |
| 4 | $p$ | MP 1, 2 |
| 5 | $p\rightarrow q$ | MP 1, 3 |
| 6 | $q$ | MP 4, 5 |
| 7 | $p\wedge (p\rightarrow q)\vdash q$ | Summary 1; 6 |
| 8 | $\vdash (p\wedge (p\rightarrow q))\rightarrow q$ | DT 7 |

### Axiom VII

    $p\rightarrow p\vee q$
is Axiom ORiL

### Axiom VIII

| index | formula | justification |
| 1 | $p\rightarrow q\vee p$ | ORiR |
| 2 | $q\rightarrow q\vee p$ | ORiL |
| 3 | $(p\rightarrow q\vee p)\rightarrow ((q\rightarrow q\vee p)\rightarrow (p\vee q\rightarrow q\vee p))$ | ORiA |
| 4 | $(q\rightarrow q\vee p)\rightarrow (p\vee q\rightarrow q\vee p)$ | MP 1, 3 |
| 5 | $p\vee q\rightarrow q\vee p$ | MP 2, 4 |

### Axiom IX

| index | formula | justification |
| 1 | $(p\rightarrow r)\wedge (q\rightarrow r)$ | Hypothesis |
| 2 | $((p\rightarrow r)\wedge (q\rightarrow r))\rightarrow (p\rightarrow r)$ | ANDeL |
| 3 | $((p\rightarrow r)\wedge (q\rightarrow r))\rightarrow (q\rightarrow r)$ | ANDeR |
| 4 | $p\rightarrow r$ | MP 1, 2 |
| 5 | $q\rightarrow r$ | MP 1, 3 |
| 6 | $(p\rightarrow r)\rightarrow ((q\rightarrow r)\rightarrow (p\vee q\rightarrow r))$ | ORiA |
| 7 | $(q\rightarrow r)\rightarrow (p\vee q\rightarrow r)$ | MP 4, 6 |
| 8 | $p\vee q\rightarrow r$ | MP 5, 7 |
| 9 | $(p\rightarrow r)\wedge (q\rightarrow r)\vdash (p\vee q)\rightarrow r$ | Summary 1; 8 |
| 10 | $\vdash ((p\rightarrow r)\wedge (q\rightarrow r))\rightarrow (p\vee q\rightarrow r)$ | DT 9 |

### Axiom X

    $\neg p\rightarrow (p\rightarrow q)$
is Axiom THENiA

### Axiom XI

| index | formula | justification |
| 1 | $(p\rightarrow q)\wedge (p\rightarrow \neg q)$ | Hypothesis |
| 2 | $((p\rightarrow q)\wedge (p\rightarrow \neg q))\rightarrow (p\rightarrow q)$ | ANDeL |
| 3 | $((p\rightarrow q)\wedge (p\rightarrow \neg q))\rightarrow (p\rightarrow \neg q)$ | ANDeR |
| 4 | $p\rightarrow q$ | MP 1, 2 |
| 5 | $p\rightarrow \neg q$ | MP 1, 3 |
| 6 | $(p\rightarrow q)\rightarrow ((p\rightarrow \neg q)\rightarrow \neg p)$ | NOTi |
| 7 | $(p\rightarrow \neg q)\rightarrow \neg p$ | MP 4, 6 |
| 8 | $\neg p$ | MP 5, 7 |
| 9 | $(p\rightarrow q)\wedge (p\rightarrow \neg q)\vdash \neg p$ | Summary 1; 8 |
| 10 | $\vdash ((p\rightarrow q)\wedge (p\rightarrow \neg q))\rightarrow \neg 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:
    $IPC\supset HPC$.
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:
    $HPC\supset IPC$.
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.