pith. machine review for the scientific record. sign in
def definition def or abbrev

add

show as:
view Lean formalization →

No prose has been written for this declaration yet. The Lean source and graph data below render without it.

generate prose now

formal statement (Lean)

 124def add : LogicNat → LogicNat → LogicNat
 125  | n, .identity => n
 126  | n, .step m   => .step (add n m)
 127
 128instance : Add LogicNat := ⟨add⟩

proof body

Definition body.

 129instance : Zero LogicNat := ⟨zero⟩
 130instance : One LogicNat := ⟨succ zero⟩
 131

depends on (6)

Lean names referenced from this declaration's body.