pith. machine review for the scientific record. sign in
theorem

succ_injective

proved
show as:
view math explainer →
module
IndisputableMonolith.Foundation.ArithmeticFromLogic
domain
Foundation
line
99 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.Foundation.ArithmeticFromLogic on GitHub at line 99.

browse module

All declarations in this module, on Recognition.

explainer page

A cached Ask Recognition explainer exists for this declaration.

open explainer

Derivations using this theorem

depends on

used by

formal source

  96/-- **Peano P2 (successor injectivity)**: forced by the constructor
  97disjointness of the inductive type, which itself reflects the
  98injectivity of multiplication by the generator on the orbit. -/
  99theorem succ_injective : Function.Injective succ := by
 100  intro a b h
 101  cases h
 102  rfl
 103
 104/-- **Peano P3 (induction)**: any property closed under successor and
 105holding at zero holds for every `LogicNat`. -/
 106theorem induction
 107    {motive : LogicNat → Prop}
 108    (h0 : motive zero)
 109    (hs : ∀ n, motive n → motive (succ n)) :
 110    ∀ n, motive n := by
 111  intro n
 112  induction n with
 113  | identity => exact h0
 114  | step n ih => exact hs n ih
 115
 116/-! ## 4. Addition and Multiplication
 117
 118Addition is repeated successor; multiplication is repeated addition.
 119Both are defined by recursion on the second argument. We register
 120them as `Add` and `Mul` instances so Lean's standard `+` and `*`
 121notation work on `LogicNat` directly. -/
 122
 123/-- Addition by recursion on the second argument. -/
 124def add : LogicNat → LogicNat → LogicNat
 125  | n, .identity => n
 126  | n, .step m   => .step (add n m)
 127
 128instance : Add LogicNat := ⟨add⟩
 129instance : Zero LogicNat := ⟨zero⟩