Skip to content

Instantly share code, notes, and snippets.

plus' : (1 a : Nat) -> (1 b : Nat) -> Nat
plus' 0 b = b
plus' (S k) b = S (plus' k b)
data NatE = ZE | SE NatE
plusE : (1 a : NatE) -> (1 b : NatE) -> NatE
plusE ZE b = b
plusE (SE x) b = SE (plusE x b)