dyadic_phase_envelope
Given a natural number s and a real number t, let A = 2^s, B = A^2, and for real y let S(y) = A^j / (A - 1) + (y - B^j / (B - 1)) * A^(-j) with j = ⌊Real.log (y * (B - 1)) / Real.log B⌋. Then dyadic_phase_envelope s t is the maximum over k in Finset.range (2 * s) (starting at 0) of max (S(x)^2 / x) (max (A * S(x / A)^2 / x) ((S(x) + Real.sqrt A * S(x / A))^2 / (2 * x))) where x = (2 : ℝ)^k * t.
Statement
noncomputable def dyadic_phase_envelope (s : ℕ) (t : ℝ) : ℝ
- Defined in
- arXiv:2611.07003; OP-1787
- Verified
- 17 Nov 2026
- Axioms
- none listed
- Used by 1
- fermion_pair_phase_envelope_s2_upper_boundFor s = 2 with p = 1/5 and q = 4/5, for all real t such that 1 <= t and t <= 2, dyadic_phase_envelope 2 t / Real.sqrt (2 * Real.pi * p *…
Read back from the Lean
dyadic_phase_envelope s t defines a real-valued function of s : ℕ and t : ℝ. Setting A = 2^s, it computes the fold with max starting at 0 over k ∈ {0, …, 2s - 1} of the maximum of three terms:
1. S(x)^2 / x
2. A * S(x / A)^2 / x
3. (S(x) + Real.sqrt A * S(x / A))^2 / (2 * x)
where x = 2^k * t, and S(y) is the piecewise-defined function:
S(y) = A^j / (A - 1) + (y - B^j / (B - 1)) * A^(-j)
with B = A^2 = 2^(2s) and j = ⌊Real.log (y * (B - 1)) / Real.log B⌋ (as an integer).
Because the fold starts at 0 with max, the result is the maximum of 0 and the values over k ∈ {0, …, 2s - 1} (and returns 0 when s = 0).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The dyadic phase envelope E_s(t) optimizing pure and balanced stabilizer sectors across dyadic scales. -/ noncomputable def dyadic_phase_envelope (s : ℕ) (t : ℝ) : ℝ := let A : ℝ := (2 : ℝ) ^ s (Finset.range (2 * s)).fold max 0 (fun k => let x : ℝ := (2 : ℝ) ^ k * t let sx : ℝ := S x let sxa : ℝ := S (x / A) max (sx ^ 2 / x) (max (A * sxa ^ 2 / x) ((sx + Real.sqrt A * sxa) ^ 2 / (2 * x)))) where S (x : ℝ) : ℝ := let A : ℝ := (2 : ℝ) ^ s let B : ℝ := A ^ 2 let j : ℤ := ⌊Real.log (x * (B - 1)) / Real.log B⌋ A ^ j / (A - 1) + (x - B ^ j / (B - 1)) * A ^ (-j)