Lean 4 checks algorithm properties and candidate optimization rewrites within stated assumptions. A model proof does not establish that an optimization is enabled in this node or on any target. Performance measurements establish speed.
5 Lean 4 results: 4 proofs in exact arithmetic; 1 counterexample.