Skip to content
Snippets Groups Projects
Commit ea682699 authored by Octavian-Eugen Ganea's avatar Octavian-Eugen Ganea
Browse files

No commit message

No commit message
parent bf0ad70a
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,10 @@ object Naturals { ...@@ -33,6 +33,10 @@ object Naturals {
plus(Zero(), x) == plus(x, Zero()) plus(Zero(), x) == plus(x, Zero())
} holds } holds
// induction is made on first parameter
//induction on x works here!
//induction on y = stack overflow
@induct @induct
def oneCommut(x : Nat, y : Nat) : Boolean = { def oneCommut(x : Nat, y : Nat) : Boolean = {
Succ(plus(x,y)) == plus(x, Succ(y)) Succ(plus(x,y)) == plus(x, Succ(y))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment