Submission Details

Back to Submissions List

Challenge: mapInt

Submitted by: Command Master

Submitted at: 2024-11-15 12:11:42

Code:

def mapInt(xs:List Int)(f:Int->Int):List Int
:= []

#exit 0

First Theorem Proof:

theorem mapInt_correct(xs:List Int)(f:Int->Int)
: (mapInt xs f).length=xs.length
∧  ∀ i:Fin xs.length, (mapInt xs f)[i]! = f xs[i]
:= sorry

Status: Correct

Feedback:

/tmp/tmpch13fypv/proof.lean:4:11: warning: unused variable `xs`
note: this linter can be disabled with `set_option linter.unusedVariables false`
/tmp/tmpch13fypv/proof.lean:4:24: warning: unused variable `f`
note: this linter can be disabled with `set_option linter.unusedVariables false`
/tmp/tmpch13fypv/proof.lean:7:0: warning: using 'exit' to interrupt Lean