Skip to content
Snippets Groups Projects
Commit 6d108adb authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Fix test for Church.Squared

parent dcd628dd
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,11 @@ object Numerals {
}
} ensuring (_ >= 0)
def add(x: Num, y: Num): Num = (x match {
case Z => y
case S(p) => add(p, S(y))
}) ensuring (value(_) == value(x) + value(y))
def mult(x: Num, y: Num): Num = (y match {
case S(p) =>
add(mult(x, p), x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment