From 1763891ba99f7e17bf5607957c2bfe40c2dc731e Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 13:02:18 +0800 Subject: [PATCH] test(proof): kernel must replay callee proof and closed caller premise before contract becomes available --- tests/prove_lean.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/prove_lean.rs b/tests/prove_lean.rs index 8a30d48..23c000a 100755 --- a/tests/prove_lean.rs +++ b/tests/prove_lean.rs @@ -361,6 +361,8 @@ import: String::from_utf8_lossy(&result.stderr))); assert_eq!(json["lean_preconditions_verified"],1, "no kernel checked callsite: {json}"); + assert!(json["lean_receipts_replayed"].as_u64().unwrap_or(0)>=1, + "callee theorem must be replayed by Lean, not trusted from JSON: {json}"); let call=json["obligations"].as_array().unwrap().iter() .find(|o|o["call_site"]=="math.math.exact").unwrap(); assert_eq!(call["contracts"][0]["call_precondition_status"],"lean_kernel_verified");