What Can Nine Spherical Harmonics Determine? Sharp Minimax Bounds for Lambertian Irradiance
Second-order spherical harmonic (SH) irradiance probes store nine real coefficients of distant incident lighting and are a staple of real-time rendering. Classical analyses show that the nine-dimensional SH subspace captures 99.22% of the Lambertian cosine lobe's L2 energy and that standard L2 truncation incurs up to roughly 9% pointwise error, yet they leave open an operational question: given the nine exact SH coefficients S_2(mu) of an arbitrary nonnegative spherical lighting distribution mu of unit total incident mass, what is the smallest worst-case per-normal absolute irradiance error achievable by any decoder D(S_2(mu), n)—linear or nonlinear? We prove that the sharp minimax error is 1/16. The upper bound is attained by the explicit quadratic zonal kernel p*(t) = (1/2) t^2 + (1/2) t + 1/16, corresponding to SH band weights (11*pi/12, 2*pi/3, 4*pi/15): replacing two constants in the standard L2 SH evaluator cuts worst-case pointwise error by one third (from its exact value 3/32, attained on a horizon directional light, down to 1/16) while preserving the arithmetic count of the linear shader, and scales linearly as M/16 for total incident mass M. The matching lower bound is certified by an explicit pair of finite directional lightings with identical nine SH coefficients and an irradiance gap of 1/8 along e_z, defeating even arbitrary nonlinear decoders. For any fixed surface normal n and projected moments m = int (n . omega) dmu and q = int (n . omega)^2 dmu, we derive the exact reachable irradiance interval [(m + max(|m|, q))/2, (m + sqrt(q))/2], prove endpoint attainment, and show that its midpoint yields an always-nonnegative decoder that also achieves the global minimax error 1/16. Finally, by Caratheodory's theorem, the probe-conditioned irradiance set along any normal is a compact convex interval realized by finite directional lightings. All 13 numbered statements in Sections 2-5 are formally verified in Lean 4 against Mathlib with zero sorry and no custom axioms.
Authors
- Chengrui Li
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24654265
- Primary Topic
- Computer Graphics and Visualization Techniques
- Type
- preprint