Exact Lean source
Nonadditivity.HaarMomentSlack
Download original .lean · View on GitHub · Jump to source
Direct imports
Imported by project modules
2 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
6 project constants, including generated, internal and private declarations.
6 declarations
Nonadditivity.HaarMomentConstants.final_error_bound_with_overheadNonadditivity.HaarMomentConstants.final_error_bound_with_overhead._proof_1_1internal/detail/privateNonadditivity.HaarMomentConstants.length_sum_bound_with_overheadNonadditivity.HaarMomentConstants.length_sum_bound_with_overhead._proof_1_1internal/detail/privateNonadditivity.HaarMomentConstants.sum_length_errors_le_with_overheadNonadditivity.HaarMomentConstants.sum_length_errors_le_with_overhead._proof_1_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarMomentConstants78/-! # Polynomial slack in the prescribed-dimension moment estimate910The tracked dimension hypothesis absorbs up to sixteen additional powers11of the moment order. In particular, a corrected path encoding may use an12extra factor `m^3` without changing the prescribed dimension or the final13`N^(-1/2)` error. These are numerical implications; no path count is assumed14to have been proved by this module.15-/1617noncomputable section18namespace Nonadditivity.HaarMomentConstants19open scoped BigOperators2021theorem final_error_bound_with_overhead {p N : ℝ} {k : ℕ}22(hp : 2 ≤ p) (hN : 2 ^ 32 * p ^ 80 ≤ N) (hk : k ≤ 16) :236400 * Real.exp 1 * p ^ (24 + k) / N ≤ N ^ (-(1 / 2 : ℝ)) := by24have hN0 := dimension_pos hp hN25have hs := square_root_lower hp hN26have hpow : p ^ (24 + k) ≤ p ^ 40 :=27pow_le_pow_right₀ (by linarith) (by omega)28have hsmall : 6400 * Real.exp 1 * p ^ (24 + k) ≤ N ^ (1 / 2 : ℝ) := by29have he := Real.exp_one_lt_three30have hp0 : 0 ≤ p ^ (24 + k) := by positivity31have hmul := mul_le_mul_of_nonneg_right he.le hp032nlinarith33have hroot : N ^ (1 / 2 : ℝ) * N ^ (1 / 2 : ℝ) = N := by34rw [← Real.rpow_add hN0]35norm_num36rw [Real.rpow_neg hN0.le, ← one_div]37apply (div_le_div_iff₀ hN0 (Real.rpow_pos_of_pos hN0 _)).238nlinarith [mul_le_mul_of_nonneg_right hsmall (Real.rpow_nonneg hN0.le (1 / 2 : ℝ))]3940theorem length_sum_bound_with_overhead (p k : ℕ) :41(∑ t ∈ Finset.Icc 1 p, (t : ℝ) ^ (12 + k)) ≤ (p : ℝ) ^ (13 + k) := by42calc43_ ≤ ∑ _t ∈ Finset.Icc 1 p, (p : ℝ) ^ (12 + k) := by44apply Finset.sum_le_sum45intro t ht46apply pow_le_pow_left₀ (by positivity)47exact_mod_cast (Finset.mem_Icc.mp ht).248_ = _ := by49rw [show 13 + k = (12 + k) + 1 by omega, pow_succ]50simp [mul_comm]5152/-- The complete length sum remains within the same target error after a53polynomial overhead of degree at most sixteen in the path count. -/54theorem sum_length_errors_le_with_overhead {p k : ℕ} {N ρ : ℝ}55(hp : 2 ≤ p) (hN : 2 ^ 32 * (p : ℝ) ^ 80 ≤ N)56(hk : k ≤ 16) (hρ : 0 ≤ ρ)57(D : ℕ → ℝ) (a b : ℕ → ℕ)58(hD : ∀ t ∈ Finset.Icc 1 p,59|D t| ≤ (t : ℝ) ^ k * lengthMajorant p N t (a t) (b t) * ρ ^ p) :60|∑ t ∈ Finset.Icc 1 p, D t| ≤ N ^ (-(1 / 2 : ℝ)) * ρ ^ p := by61have hpr : (2 : ℝ) ≤ p := by exact_mod_cast hp62have hN0 := dimension_pos hpr hN63have hpoint : ∀ t ∈ Finset.Icc 1 p,64|D t| ≤ (6400 * Real.exp 1 * (p : ℝ) ^ 11 / N * (t : ℝ) ^ (12+k)) * ρ ^ p := by65intro t ht66apply (hD t ht).trans67have hb := lengthMajorant_le hpr hN (by positivity : (0:ℝ) ≤ t)68(by exact_mod_cast (Finset.mem_Icc.mp ht).2) (a t) (b t)69calc70_ ≤ (t : ℝ)^k * (6400 * Real.exp 1 * (p : ℝ)^11 / N * (t : ℝ)^12) * ρ^p := by71gcongr72_ = _ := by rw [pow_add]; ring73calc74_ ≤ ∑ t ∈ Finset.Icc 1 p, |D t| := Finset.abs_sum_le_sum_abs _ _75_ ≤ ∑ t ∈ Finset.Icc 1 p,76(6400 * Real.exp 1 * (p : ℝ)^11 / N * (t : ℝ)^(12+k)) * ρ^p :=77Finset.sum_le_sum hpoint78_ = (6400 * Real.exp 1 * (p : ℝ)^11 / N *79(∑ t ∈ Finset.Icc 1 p, (t : ℝ)^(12+k))) * ρ^p := by80rw [← Finset.sum_mul, ← Finset.mul_sum]81_ ≤ (6400 * Real.exp 1 * (p : ℝ)^11 / N * (p : ℝ)^(13+k)) * ρ^p := by82gcongr83exact length_sum_bound_with_overhead p k84_ = (6400 * Real.exp 1 * (p : ℝ)^(24+k) / N) * ρ^p := by85rw [show 24+k = 11+(13+k) by omega, pow_add]86ring87_ ≤ _ := mul_le_mul_of_nonneg_right88(final_error_bound_with_overhead hpr hN hk) (pow_nonneg hρ p)8990end Nonadditivity.HaarMomentConstants