From e5da4e90fdc131109d585e7878589ae7fe9c0e1c Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 13:36:32 +0800 Subject: [PATCH] fix(prove): unfold bounded arithmetic helper equations in Lean auto proofs of imported pure functions --- src/prove/emit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prove/emit.rs b/src/prove/emit.rs index b112e8d..6efea9e 100755 --- a/src/prove/emit.rs +++ b/src/prove/emit.rs @@ -138,7 +138,7 @@ fn emit_theorems(out: &mut String, fun: &FnPlan) { let _ = writeln!( out, " all_goals - simp_all [mqTruth, Op.name, mqAccess, mqResultOk, mqResultError, mqValueOr, mqAnd, mqOr, mqNot, mqEq] + simp_all [mqTruth, Op.name, mqAccess, mqResultOk, mqResultError, mqValueOr, mqAnd, mqOr, mqNot, mqEq, mqAdd, mqSub, mqMul, mqNeg] try first | exact (mqGt_mqLe_false ‹mqGt _ (Val.int _) = true› ‹mqLe _ (Val.int _) = true›).elim