Re:Exploring the Peano Axioms Through Algebraic Data Types
by intuitionist on Tuesday January 15, 2019 @01:10AM
(#18909142)
Strictly speaking, aren’t these the axioms of Robinson arithmetic (a much weaker system)? For Peano arithmetic you need the axiom schema of induction as well.
Base case is 0 add y = 0
Recursion is Sx add y = Sy add x
Which is of course _swap_
Shouldn't it be = S (x add y)
you are doing x add Sy which isn't the same as Sy add x