docs(lean4): add Rust cross-references to formal specs

Add documentation comments linking Lean 4 specifications to their
corresponding Rust implementations (tree_predict, mlp_predict_32,
PackedNode). Reference TorchLean arXiv ID for future axiom replacement.

Signed-off-by: Sienna Meridian Satterwhite <sienna@sunbeam.pt>
This commit is contained in:
2026-03-10 23:38:22 +00:00
parent 97e58b5a42
commit 3628424f43
3 changed files with 19 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ float inputs. They cannot be proved inside Lean because `Float` operations are
`@[extern]` (opaque to the kernel). The axioms form a documented trust boundary:
we trust the C runtime's `exp` implementation.
When TorchLean ships its verified Float32 kernel, these axioms can be replaced
with proofs against that kernel.
When TorchLean (arXiv:2602.22631) ships its verified Float32 kernel, these
axioms can be replaced with proofs against that kernel.
-/
/-- Sigmoid output is always positive: exp(-x) ≥ 0 ⟹ 1+exp(-x) ≥ 1 ⟹ 1/(1+exp(-x)) > 0. -/