Replies: 3 comments
-
|
I'm not sure I understand the question. Are you asking how to prove that addition of nats is associative? This is trivial by using the SMT solver, so you can define a lemma like let add_assoc (x y z : nat) : Lemma ((x+y)+z == x+(y+z)) = ()Or probably just replace |
Beta Was this translation helpful? Give feedback.
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
-
|
See https://fstar-lang.org/tutorial/book/part1/part1_lemmas.html#lemmas-and-proofs-by-induction |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
how would you defined the add_assoc function below, in F*?
Many thanks.
P
Beta Was this translation helpful? Give feedback.
All reactions