Exact expanded PA statement
forall a b. a = b \/ ~(a = b)Structural proof guide
Generated structural guide
Equality of natural numbers is constructively decidable.
This root lemma is proved directly from the PA rules and the hypotheses introduced by its statement.
The proof proceeds by structural induction (3), case analysis (1).
Referenced ingredients
none
Proof neighborhood
Direct dependencies
none
Direct dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Linked names are exact direct references. This Stable checked-use theorem is independently kernel-checked when replayed.
- 0001
intro a - 0002
induction a - 0003
intro b - 0004
induction b - 0005
left - 0006
refl - 0007
right - 0008
intro h - 0009
apply PA1 - 0010
symm - 0011
exact h - 0012
intro b - 0013
induction b - 0014
right - 0015
intro h - 0016
apply PA1 - 0017
exact h - 0018
specialize IH b - 0019
cases IH - 0020
left - 0021
congr - 0022
exact IH_left - 0023
right - 0024
intro h - 0025
apply IH_right - 0026
apply PA2 - 0027
exact h