Exact expanded PA statement
forall a b. a = b \/ ((exists k. k + S a = b) \/ exists k. k + S b = a)Structural proof guide
Generated structural guide
Two naturals are equal or strictly ordered in exactly one displayed direction.
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 (4), equality transport (2).
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
induction a - 0002
induction b - 0003
left - 0004
refl - 0005
right - 0006
left - 0007
exists b - 0008
trans S (b + 0) - 0009
apply PA4 - 0010
congr - 0011
apply PA3 - 0012
induction b - 0013
right - 0014
right - 0015
exists a - 0016
trans S (a + 0) - 0017
apply PA4 - 0018
congr - 0019
apply PA3 - 0020
specialize IH b - 0021
cases IH - 0022
left - 0023
congr - 0024
exact IH_left - 0025
cases IH_right - 0026
right - 0027
left - 0028
cases IH_right_left - 0029
exists x - 0030
rewrite PA4 - 0031
congr - 0032
exact IH_right_left_witness - 0033
right - 0034
right - 0035
cases IH_right_right - 0036
exists x - 0037
rewrite PA4 - 0038
congr - 0039
exact IH_right_right_witness