From 50786ddea0b88b1f7cf7d3cfc0a8a637f5a49ed8 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 12:51:44 +0800 Subject: [PATCH] security(proof): keep imported division opaque pending interpreter-to-Lean quotient semantic equivalence --- src/prove/lower.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/prove/lower.rs b/src/prove/lower.rs index b72c58c..829d97f 100755 --- a/src/prove/lower.rs +++ b/src/prove/lower.rs @@ -979,7 +979,9 @@ fn imported_leaf_arithmetic_safe(target:&Function, call:&CallExpr)->bool { BinaryOp::Add=>x.checked_add(y), BinaryOp::Sub=>x.checked_sub(y), BinaryOp::Mul=>x.checked_mul(y), - BinaryOp::Div=>x.checked_div(y), + // Division semantics (integer rounding/Num coercion) + // require a differential proof before source transparency. + BinaryOp::Div=>None, _=>None, } }