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.
9 Lean 4 results: 9 proofs in exact arithmetic.
Move the controls to explore a theorem’s behavior and assumptions. These browser calculations use floating-point numbers to illustrate the mathematical model. They do not run Lean or the audio engine. Lean checks the general statement; a plotted example does not prove it.
Eout = (L + R)² / 2 + w² (L − R)² / 2 ≤ max(1, w²) Ein
Exact arithmetic. The gain bound uses a factor at least 1 and at least w²; this example chooses max(1, w²).
Within theorem assumptions
At widths up to 1, energy cannot increase. Above 1, the permitted gain grows with w². The vertical line marks the selected width.