DSP Proofs · 2026-11-18 · 5 min read
Mathematically Proven DSP: Machine-Checked Waveguides & FFTs
From allpass unit magnitude to weighted overlap-add and antiderivative anti-aliasing: every core formula carries a Lean proof that fails if mutated.
Subtle DSP bugs hide for years: a 1-sample window offset in an overlap-add loop, an allpass coefficient that drifts off unit magnitude, or a waveshaper that folds aliases back into the audible band.
In Perception Studio, core synthesis mathematics is formally proved in Lean with zero axioms and replayed against the shipped formulas in CI. Because Perception is built in Osprey, the exact same proved formulas compile ahead of time to native LLVM code with no garbage collector pauses — deterministic memory management for real-time audio.
What is proved today
- Physical modeling:
travelingWavePropagationverifies waveguide delay behavior;allpassMagnitudeandallpassRecurrenceprove unit-magnitude phase dispersion. - Spectral & granular:
weightedOverlapAdd,overlapNormalizationNecessary,hannEndpoints, andradixTwoSplitprove exact STFT/FFT reconstruction and window energy. - Anti-aliasing:
antiderivativeAverageandantiderivativeOffsetverify our nonlinear waveshaper's antiderivative anti-aliasing formulas. - Macro curves: Hardware and UI macro exponents (0.25–4.0) are proved monotone and strictly bounded inside target parameter ranges.
If anyone introduces a regression into a DSP formula, the proof kernel rejects it before a single audio sample is ever shipped.