Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarSharpConstants

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

3 project constants, including generated, internal and private declarations.

3 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarMomentConstants7import Mathlib.Tactic.IntervalCases89/-! # The sharp scalar budget at the original Haar dimension threshold1011The polynomial prefactor is bounded uniformly for every integer moment12order at least two. Together with the original square-root dimension13budget this yields the final inverse-square-root error without increasing14the prescribed constant `2^32`.15-/1617noncomputable section18namespace Nonadditivity.HaarSharpConstants1920set_option maxHeartbeats 0 in21/-- A uniform bound on the moment-order prefactor. The finite initial range22is checked by exact rational arithmetic; the tail uses `exp 1 < 3`. -/23theorem polynomial_prefactor_bound (p : ℕ) (hp : 2 ≤ p) :24    (1 + 64 / (p : ℝ)) ^ p ≤ 16 * (p : ℝ) ^ 14 := by25  by_cases hlarge : 128 ≤ p26  · have hp0 : (0 : ℝ) < p := by exact_mod_cast (lt_of_lt_of_le (by norm_num : 0 < 2) hp)27    have hbase : 1 + 64 / (p : ℝ) ≤ Real.exp (64 / (p : ℝ)) := by28      simpa only [add_comm] using Real.add_one_le_exp (64 / (p : ℝ))29    have hpow := pow_le_pow_left₀ (show 0 ≤ 1 + 64 / (p : ℝ) by positivity) hbase p30    have hexp : (Real.exp (64 / (p : ℝ))) ^ p = Real.exp 64 := by31      rw [← Real.exp_nat_mul]32      congr 133      field_simp34    have he64 : Real.exp (64 : ℝ) ≤ (3 : ℝ) ^ 64 := by35      calc36        Real.exp (64 : ℝ) = (Real.exp 1) ^ (64 : ℕ) := by37          rw [← Real.exp_nat_mul]38          norm_num39        _ ≤ (3 : ℝ) ^ 64 := pow_le_pow_left₀ (Real.exp_nonneg 1) Real.exp_one_lt_three.le _40    have hfinite : (3 : ℝ) ^ 64 ≤ 16 * (128 : ℝ) ^ 14 := by norm_num41    have hp128 : (128 : ℝ) ≤ p := by exact_mod_cast hlarge42    exact (hpow.trans_eq hexp).trans (he64.trans (hfinite.trans43      (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by norm_num) hp128 14) (by norm_num))))44  · have hsmall : p ≤ 127 := by omega45    interval_cases p <;> norm_num4647/-- The corrected full prefactor fits the original prescribed dimension48bound, with no enlargement of its numerical constant. -/49theorem sharp_final_error_bound {p : ℕ} {N : ℝ} (hp : 2 ≤ p)50    (hN : 2 ^ 32 * (p : ℝ) ^ 80 ≤ N) :51    4096 * (p : ℝ) ^ 26 / N * (1 + 64 / (p : ℝ)) ^ p ≤52      N ^ (-(1 / 2 : ℝ)) := by53  have hpr : (2 : ℝ) ≤ p := by exact_mod_cast hp54  have hN0 := HaarMomentConstants.dimension_pos hpr hN55  have hs := HaarMomentConstants.square_root_lower hpr hN56  have hsmall : 4096 * (p : ℝ) ^ 26 * (1 + 64 / (p : ℝ)) ^ p ≤57      N ^ (1 / 2 : ℝ) := by58    calc59      _ ≤ 4096 * (p : ℝ) ^ 26 * (16 * (p : ℝ) ^ 14) :=60        mul_le_mul_of_nonneg_left (polynomial_prefactor_bound p hp) (by positivity)61      _ = 65536 * (p : ℝ) ^ 40 := by ring62      _ ≤ _ := hs63  have hroot : N ^ (1 / 2 : ℝ) * N ^ (1 / 2 : ℝ) = N := by64    rw [← Real.rpow_add hN0]65    norm_num66  have hrewrite : 4096 * (p : ℝ) ^ 26 / N * (1 + 64 / (p : ℝ)) ^ p =67      (4096 * (p : ℝ) ^ 26 * (1 + 64 / (p : ℝ)) ^ p) / N := by ring68  rw [hrewrite, Real.rpow_neg hN0.le, ← one_div]69  apply (div_le_div_iff₀ hN0 (Real.rpow_pos_of_pos hN0 _)).mpr70  simpa only [one_mul] using71    (mul_le_mul_of_nonneg_right hsmall (Real.rpow_nonneg hN0.le (1 / 2 : ℝ))).trans_eq hroot7273end Nonadditivity.HaarSharpConstants