Submission Details

Back to Submissions List

Challenge: solveAdd

Submitted by: Violeta Hernández Palacios

Submitted at: 2024-11-19 09:00:21

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 
ring

Status: Incorrect

Feedback:

/tmp/tmpf90dtw19/code.lean:6:0: error: unexpected end of input; expected ':=', 'where' or '|'
/tmp/tmpf90dtw19/code.lean:4:24: error: function expected at
  ℤ
term has type
  Type