PA002A

le_total

Stable checked-use theorem · independently closed

Every pair of natural numbers is comparable in the defined order.

Exact expanded PA statement

forall n m. n <= m \/ m <= n

Structural proof guide

Generated structural guide

Every pair of natural numbers is comparable in the defined order.

This root lemma is proved directly from the PA rules and the hypotheses introduced by its statement.

The proof proceeds by structural induction (2), case analysis (3), equality transport (2), certified simplification (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.

  1. 0001induction n
  2. 0002intro m
  3. 0003left
  4. 0004exists m
  5. 0005simp
  6. 0006induction m
  7. 0007right
  8. 0008exists (S n)
  9. 0009simp
  10. 0010specialize IH m
  11. 0011cases IH
  12. 0012cases IH_left
  13. 0013left
  14. 0014exists x
  15. 0015rewrite PA4
  16. 0016congr
  17. 0017exact IH_left_witness
  18. 0018cases IH_right
  19. 0019right
  20. 0020exists x
  21. 0021rewrite PA4
  22. 0022congr
  23. 0023exact IH_right_witness