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.
2 Lean 4 results: 1 proof in exact arithmetic; 1 refused rewrite.