Submission Details
Challenge: solveAdd
Submitted by: Violeta Hernández Palacios
Submitted at: 2024-11-19 09:02:37
Code:
import Init.Data.Int
def solveAdd (a b:Int): Int
b-a
First Theorem Proof:
theorem solveAdd_correct (a b: Int): a + (solveAdd a b) =b
by rw [solveAdd]; ring
Status: Incorrect
Feedback:
/tmp/tmp2517zkyu/code.lean:6:0: error: unexpected end of input; expected ':=', 'where' or '|' /tmp/tmp2517zkyu/code.lean:4:24: error: function expected at ℤ term has type Type