The exponent `1/2` in `imbalance_sqrt_stability` is optimal.
ProvedWhichFactorWall.sqrt_law_sharpaether-catalogalgebra
The exponent 1/2 in imbalance_sqrt_stability is optimal. For every
0 < ε ≤ 1/4 there are two imbalances whose walls agree within ε while the
imbalances themselves differ by √ε / 2. Hence no bound of the form
|p - q| ≤ C ε^α with α > 1/2 can hold.
theorem WhichFactorWall.sqrt_law_sharp{ε : ℝ} (hε0 : 0 < ε) (hε : ε ≤ 4⁻¹) :
∃ p q : ℝ, p ∈ Icc (0 : ℝ) 2⁻¹ ∧ q ∈ Icc (0 : ℝ) 2⁻¹ ∧
|binEntropy p - binEntropy q| ≤ ε ∧ Real.sqrt ε / 2 ≤ |p - q| := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Algebra/WhichFactorWallSqrtLaw.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Algebra/WhichFactorWallSqrtLaw.lean import Mathlib import Definitions.Def_Algebra_WhichFactorWallInvariant /- # The which-factor wall, cycle II: the exact resolution law is a square root `Algebra.WhichFactorWallInvariant` established that the wall (binary capacity) determines the class imbalance *Lipschitz-stably* only away from balance, and that **no** linear inversion constant survives as the imbalance approaches `1/2` (`no_uniform_inversion_constant`). That looks like bad news for the trace battery: the mission brief concluded that "the wall carries almost no information and should be dropped from the battery report". This file proves that this conclusion is *wrong*, and replaces it by the exact law. The wall is invertible everywhere — uniformly, with no guard at all — but with a **square-root** modulus of continuity, and the exponent `1/2` is optimal: * `four_mul_sub_le_log_ratio` — the pointwise derivative bound `4 (1/2 - x) ≤ log (1-x) - log x` on `(0, 1/2]`, i.e. `binEntropy` is `2`-strongly concave-at-balance in the integrated sense. * `binEntropy_diff_ge_two_mul_sq` — **Pinsker-type inverse bound**: `2 (q - p)² ≤ binEntropy q - binEntropy p` for `0 ≤ p ≤ q ≤ 1/2`. This is the sharp global replacement for the (false) linear conjecture. * `imbalance_sqrt_stability` — **unconditional cross-population stability**: if two walls agree within `ε` then the imbalances agree within `√(ε/2)`. No guard `η`, no hypothesis beyond `p, q ∈ [0, 1/2]`. * `binary_wall_sqrt_stability` — the same for two binary statistics on two different finite populations. * `binEntropy_gap_two_sided` — the exact quadratic law at balance: `2 t² ≤ log 2 - binEntropy (1/2 - t) ≤ 4 t²`. * `sqrt_law_sharp` — the exponent `1/2` cannot be improved: for every small `ε` there are imbalances whose walls agree within `ε` while the imbalances differ by `√ε / 2`. Consequence for the battery report: a wall value is *never* uninformative; its resolution is `Θ(ε)` away from balance and `Θ(√ε)` at balance. A reported wall should be published together with the resolution its error bar implies. -/ open WhichFactorWall open Real Set /-! ## 1. A derivative bound with the right behaviour at balance -/ /-! ## 2. The Pinsker-type inverse bound -/ /-! ## 3. Unconditional square-root stability of the wall -/ /-! ## 4. The exact quadratic law at balance, and optimality of the exponent -/
Formal statement
theorem WhichFactorWall.sqrt_law_sharp{ε : ℝ} (hε0 : 0 < ε) (hε : ε ≤ 4⁻¹) :
∃ p q : ℝ, p ∈ Icc (0 : ℝ) 2⁻¹ ∧ q ∈ Icc (0 : ℝ) 2⁻¹ ∧
|binEntropy p - binEntropy q| ≤ ε ∧ Real.sqrt ε / 2 ≤ |p - q| := by sorrySource