Holevo Additivity Gap in Lean 4

Lean explorer

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

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) :23    6400 * Real.exp 1 * p ^ (24 + k) / N ≤ N ^ (-(1 / 2 : ℝ)) := by24  have hN0 := dimension_pos hp hN25  have hs := square_root_lower hp hN26  have hpow : p ^ (24 + k) ≤ p ^ 40 :=27    pow_le_pow_right₀ (by linarith) (by omega)28  have hsmall : 6400 * Real.exp 1 * p ^ (24 + k) ≤ N ^ (1 / 2 : ℝ) := by29    have he := Real.exp_one_lt_three30    have hp0 : 0 ≤ p ^ (24 + k) := by positivity31    have hmul := mul_le_mul_of_nonneg_right he.le hp032    nlinarith33  have hroot : N ^ (1 / 2 : ℝ) * N ^ (1 / 2 : ℝ) = N := by34    rw [← Real.rpow_add hN0]35    norm_num36  rw [Real.rpow_neg hN0.le, ← one_div]37  apply (div_le_div_iff₀ hN0 (Real.rpow_pos_of_pos hN0 _)).238  nlinarith [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) := by42  calc43    _ ≤ ∑ _t ∈ Finset.Icc 1 p, (p : ℝ) ^ (12 + k) := by44      apply Finset.sum_le_sum45      intro t ht46      apply pow_le_pow_left₀ (by positivity)47      exact_mod_cast (Finset.mem_Icc.mp ht).248    _ = _ := by49      rw [show 13 + k = (12 + k) + 1 by omega, pow_succ]50      simp [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 := by61  have hpr : (2 : ℝ) ≤ p := by exact_mod_cast hp62  have hN0 := dimension_pos hpr hN63  have hpoint : ∀ t ∈ Finset.Icc 1 p,64      |D t| ≤ (6400 * Real.exp 1 * (p : ℝ) ^ 11 / N * (t : ℝ) ^ (12+k)) * ρ ^ p := by65    intro t ht66    apply (hD t ht).trans67    have hb := lengthMajorant_le hpr hN (by positivity : (0:ℝ) ≤ t)68      (by exact_mod_cast (Finset.mem_Icc.mp ht).2) (a t) (b t)69    calc70      _ ≤ (t : ℝ)^k * (6400 * Real.exp 1 * (p : ℝ)^11 / N * (t : ℝ)^12) * ρ^p := by71        gcongr72      _ = _ := by rw [pow_add]; ring73  calc74    _ ≤ ∑ 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 :=77      Finset.sum_le_sum hpoint78    _ = (6400 * Real.exp 1 * (p : ℝ)^11 / N *79        (∑ t ∈ Finset.Icc 1 p, (t : ℝ)^(12+k))) * ρ^p := by80      rw [← Finset.sum_mul, ← Finset.mul_sum]81    _ ≤ (6400 * Real.exp 1 * (p : ℝ)^11 / N * (p : ℝ)^(13+k)) * ρ^p := by82      gcongr83      exact length_sum_bound_with_overhead p k84    _ = (6400 * Real.exp 1 * (p : ℝ)^(24+k) / N) * ρ^p := by85      rw [show 24+k = 11+(13+k) by omega, pow_add]86      ring87    _ ≤ _ := mul_le_mul_of_nonneg_right88      (final_error_bound_with_overhead hpr hN hk) (pow_nonneg hρ p)8990end Nonadditivity.HaarMomentConstants