Documentation

Formalizations.Reusable.Analysis

Reusable layer: analysis #

Stable names for analysis results of the archive. Each theorem is proved by the archive theorem it re-exposes (no proof is copied).

Since v0.2.0 the real-rootedness result splits_of_alternating_sign (and its bridge realRooted_iff_splits) lives in Formalizations.Reusable.Polynomial, with the other results on real roots; this module imports it, so import Formalizations.Reusable.Analysis still provides it under the same name.

Main results #

theorem Formalizations.Reusable.airy_eq_zeros_unbounded_below (f f' : ℝ → ℝ) (hf : ∀ (x : ℝ), HasDerivAt f (f' x) x) (hf' : ∀ (x : ℝ), HasDerivAt f' (x * f x) x) (M : ℝ) :
∃ x < M, f x = 0

Oscillation of the Airy equation. If f is differentiable with derivative f', and f' is differentiable with derivative x ↦ x f x (that is, f'' = x f everywhere), then f has a zero below every bound: for every M there is x < M with f x = 0. This holds for every solution, including the zero solution; the proof is a Sturm comparison with sin (√c (x − a)) built from Rolle's theorem and the intermediate value theorem (Mathlib has no Sturm theory).

theorem Formalizations.Reusable.glasser_integral {a b : ℝ} (ha : 0 ≤ a) (hb : 0 < b) :
∫ (v : ℝ) in Set.Ioi 0, v ^ (-1 / 2) * Real.exp (-a / v - b * v) = √(Real.pi / b) * Real.exp (-(2 * √(a * b)))

Glasser's integral (the modified Bessel K_{1/2} integral). For a ≥ 0 and b > 0, ∫_{v > 0} v^{-1/2} exp(−a/v − b v) dv = √(π/b) · exp(−2 √(a b)). The case a = 0 is the Gamma integral; for a > 0 the proof substitutes v = √(a/b) s² and uses Schlömilch's change of variables u = s − 1/s.

theorem Formalizations.Reusable.prod_two_sin_mul_pi_div (n : ℕ) (hn : 1 ≤ n) :
∏ k ∈ Finset.Ico 1 n, 2 * Real.sin (↑k * Real.pi / ↑n) = ↑n

Product of sines. For every n ≥ 1, ∏_{k=1}^{n-1} 2 sin(kπ/n) = n. The proof goes through IsPrimitiveRoot.prod_pow_sub_one_eq_order and |e^{2πik/n} − 1| = 2 sin(πk/n).

theorem Formalizations.Reusable.enestrom_kakeya_ne_zero {n : ℕ} (a : ℕ → ℝ) (hpos : ∀ k ≤ n, 0 < a k) (hmono : ∀ k < n, a (k + 1) ≤ a k) {z : ℂ} (hz : ‖z‖ < 1) :
∑ k ∈ Finset.range (n + 1), ↑(a k) * z ^ k ≠ 0

The Eneström–Kakeya theorem. A polynomial ∑_{k=0}^n a_k z^k with real coefficients a_0 ≥ a_1 ≥ ⋯ ≥ a_n > 0 has no zero in the open unit disc ‖z‖ < 1. The proof multiplies by 1 − z, telescopes and applies the triangle inequality. (In the other common form, increasing positive coefficients give no zero outside the closed unit disc; it follows by reversing the polynomial.)

theorem Formalizations.Reusable.hlawka_generalised {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {n : ℕ} (hn : 3 ≤ n) (x : Fin n → E) :
∑ k ∈ Finset.Icc 2 (n - 1), ∑ S ∈ Finset.powersetCard k Finset.univ, ‖∑ i ∈ S, x i‖ ≤ (2 ^ (n - 2) - 1) * (∑ i : Fin n, ‖x i‖ + ‖∑ i : Fin n, x i‖)

Generalised Hlawka inequality (Djoković 1963; Smiley–Smiley 1964). For n ≥ 3 vectors of a real inner product space, write d_k for the sum of the norms of all k-element subsums. Then d_2 + ⋯ + d_{n-1} ≤ (2^(n-2) - 1) (d_1 + d_n). For n = 3 this is Hlawka's inequality ‖x+y‖ + ‖y+z‖ + ‖z+x‖ ≤ ‖x‖ + ‖y‖ + ‖z‖ + ‖x+y+z‖.

  • Archive: Hlawka.generalised (Formalizations.Analysis.InnerProductSpace.Hlawka; the case n = 3 is Hlawka.norm_add_add_le); the module cites no paper DOI of ours.
  • Classical reference: D. Ž. Djoković, Generalizations of Hlawka's inequality, Glasnik Mat.-Fiz. Astronom. 18 (1963) 169–175; D. M. Smiley, M. F. Smiley, The polygonal inequalities, Amer. Math. Monthly 71 (1964) 755–760.
  • Example: four vectors of ℝ, n = 4: d_2 + d_3 ≤ 3 (d_1 + d_4).
theorem Formalizations.Reusable.zielinski_zych_inequality {α x : ℝ} (hα : 0 < α) (hx : 0 ≤ x) :
0 ≤ x ^ α - Real.pi ^ α / 2 + Real.pi ^ α / 2 * Real.cos x + α * Real.pi ^ (α - 1) * Real.sin x

The Zieliński–Zych inequality. For every α > 0 and x ≥ 0, 0 ≤ x^α − π^α/2 + (π^α/2) cos x + α π^(α−1) sin x. It is the analytic core of the fractional-moment quantum speed limit π^α ≤ 2 M_α τ^α; α = 1 is the Margolus–Levitin case.

  • Archive: QSL.zz_inequality_all (Formalizations.Physics.QuantumMechanics.SpeedLimit.ZielinskiZych; the archive proves it for 0 < α ≤ 1 by a harmonic-mean bound and for α ≥ 1 by Bernoulli plus a split of tan); the module cites no paper DOI of ours.
  • Classical reference: the inequality is stated (without proof) in M. Zieliński, M. Zych, Phys. Rev. A 74, 034301 (2006), as cited in the archive module.
  • Example: α = 1, the inequality 0 ≤ x − π/2 + (π/2) cos x + sin x behind the Margolus–Levitin bound.
theorem Formalizations.Reusable.margolus_levitin {p E : ℕ → ℝ} {Ebar τ : ℝ} (hp : ∀ (n : ℕ), 0 ≤ p n) (hE : ∀ (n : ℕ), 0 ≤ E n) (hτ : 0 ≤ τ) (hsum : HasSum p 1) (hmean : HasSum (fun (n : ℕ) => p n * E n) Ebar) (hRe : HasSum (fun (n : ℕ) => p n * Real.cos (E n * τ)) 0) (hIm : HasSum (fun (n : ℕ) => p n * Real.sin (E n * τ)) 0) :
Real.pi ≤ 2 * Ebar * τ

The Margolus–Levitin theorem (ℏ = 1). If a normalized population distribution p over nonnegative energies E has mean energy Ebar and its autocorrelation S(τ) = ∑ₙ pₙ e^(−i Eₙ τ) vanishes at a time τ ≥ 0 (real and imaginary parts given separately), then π ≤ 2 · Ebar · τ: a state needs at least π / (2 ⟨E⟩) to evolve into an orthogonal one.

theorem Formalizations.Reusable.mandelstam_tamm_L1 {p E : ℕ → ℝ} {Ebar D1 τ : ℝ} (hp : ∀ (n : ℕ), 0 ≤ p n) (hτ : 0 ≤ τ) (hsum : HasSum p 1) (hdev : HasSum (fun (n : ℕ) => p n * |E n - Ebar|) D1) (horth : HasSum (fun (n : ℕ) => ↑(p n) * Complex.exp (↑(-(E n * τ)) * Complex.I)) 0) :
1 ≤ D1 * τ

The Mandelstam–Tamm-type speed limit in L¹ form (ℏ = 1). If the autocorrelation vanishes at a nonnegative time τ, then 1 ≤ D1 * τ, where D1 is the mean absolute energy deviation from the reference energy Ebar. Archive: QSL.mandelstam_tamm_L1.

theorem Formalizations.Reusable.variance_mixture_kurtosis_identity (μV : MeasureTheory.Measure ℝ) [MeasureTheory.IsProbabilityMeasure μV] (hV2 : MeasureTheory.MemLp (fun (v : ℝ) => v) 2 μV) (hVnn : ∀ᵐ (v : ℝ) ∂μV, 0 ≤ v) (heV : 0 < ∫ (v : ℝ), v ∂μV) :
(∫ (ω : ℝ × ℝ), (√ω.1 * ω.2) ^ 4 ∂μV.prod (ProbabilityTheory.gaussianReal 0 1)) / (∫ (ω : ℝ × ℝ), (√ω.1 * ω.2) ^ 2 ∂μV.prod (ProbabilityTheory.gaussianReal 0 1)) ^ 2 = (3 * ∫ (v : ℝ), v ^ 2 ∂μV) / (∫ (v : ℝ), v ∂μV) ^ 2 ∧ (∫ (ω : ℝ × ℝ), (√ω.1 * ω.2) ^ 4 ∂μV.prod (ProbabilityTheory.gaussianReal 0 1)) / (∫ (ω : ℝ × ℝ), (√ω.1 * ω.2) ^ 2 ∂μV.prod (ProbabilityTheory.gaussianReal 0 1)) ^ 2 - 3 = 3 * (∫ (v : ℝ), v ^ 2 ∂μV - (∫ (v : ℝ), v ∂μV) ^ 2) / (∫ (v : ℝ), v ∂μV) ^ 2 ∧ 3 ≤ (∫ (ω : ℝ × ℝ), (√ω.1 * ω.2) ^ 4 ∂μV.prod (ProbabilityTheory.gaussianReal 0 1)) / (∫ (ω : ℝ × ℝ), (√ω.1 * ω.2) ^ 2 ∂μV.prod (ProbabilityTheory.gaussianReal 0 1)) ^ 2

The kurtosis of √V * Z, for independent nonnegative V and standard normal Z, is 3 E[V²] / E[V]². Its excess kurtosis is 3 Var(V) / E[V]² and is nonnegative. Archive: Superstatistics.variance_mixture_kurtosis_identity'.

Euler's reflection formula for the real dilogarithm on (0, 1): Li₂(x) + Li₂(1 − x) = π²/6 − log(x) log(1 − x). Archive: Dilog.Li₂_add_Li₂_one_sub.

theorem Formalizations.Reusable.Li₂_landen {x : ℝ} (hx : x ∈ Set.Ioo 0 (1 / 2)) :
Dilog.Li₂ x + Dilog.Li₂ (x / (x - 1)) = -Real.log (1 - x) ^ 2 / 2

Landen's identity for the real dilogarithm on (0, 1/2): Li₂(x) + Li₂(x / (x − 1)) = −log²(1 − x)/2. Archive: Dilog.Li₂_landen.

Duplication for the real dilogarithm on [-1, 1]: Li₂(x²) = 2 (Li₂(x) + Li₂(−x)). Archive: Dilog.Li₂_sq.

theorem Formalizations.Reusable.rogersL_fiveterm {x y : ℝ} (hx : x ∈ Set.Ioo 0 1) (hy : y ∈ Set.Ioo 0 1) :
Dilog.rogersL x + Dilog.rogersL y = Dilog.rogersL (x * y) + Dilog.rogersL (x * (1 - y) / (1 - x * y)) + Dilog.rogersL (y * (1 - x) / (1 - x * y))

Abel's five-term relation for the Rogers dilogarithm. For x, y ∈ (0, 1), L(x) + L(y) = L(xy) + L(x(1 − y)/(1 − xy)) + L(y(1 − x)/(1 − xy)). Archive: Dilog.rogersL_fiveterm.

The dilogarithm at the imaginary unit is Li₂(i) = −π²/48 + i G, where G is Catalan's constant. Archive: Dilog.Li₂c_I.