Submission Details
Challenge: solveSub
Submitted by: Robin
Submitted at: 2025-03-28 18:37:02
Code:
import Init.Data.Int
def solveSub(a b:Int): Int
:= a - b
First Theorem Proof:
theorem solveSub_correct(a b:Int): a - (solveSub a b)=b
:= Int.sub_sub_self a b
Status: Correct
Feedback:
------------------
Replaying /root/CodeProofTheArena/temp/tmpqkg8hi7x/target.olean
Finished imports
Finished replay
---
theorem
solveSub_correct
∀ (a b : Int), a - solveSub a b = b
#[sorryAx]
---
def
solveSub
Int → Int → Int
:= fun (a : Int) (b : Int) => sorryAx.{1} Int Bool.false
#[sorryAx]
------------------
Replaying /root/CodeProofTheArena/temp/tmpqkg8hi7x/proof.olean
Finished imports
Finished replay
---
theorem
solveSub_correct
∀ (a b : Int), a - solveSub a b = b
#[propext]
---
def
solveSub
Int → Int → Int
:= fun (a : Int) (b : Int) => HSub.hSub.{0, 0, 0} Int Int Int (instHSub.{0} Int Int.instSub) a b
#[]
Finished with no errors.