Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarTensorConstants

Download original .lean · View on GitHub · Jump to source

Direct imports

Imported by project modules

3 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

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

30 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.Algebra.BigOperators.Intervals89/-! # Exact scalar factors for Haar tensor replacement1011This file connects the actual prescribed moment order to the dimension12condition used by the growing-moment estimate. It also expresses the tensor13iteration's moment multiplier in the precise logarithmic form consumed by14the channel construction.15-/1617noncomputable section18namespace Nonadditivity.HaarTensorConstants19open scoped BigOperators2021/-- The prescribed even order has sufficient slack for the tracked22two-generator growing-moment estimate. -/23theorem moment_parameter_dimension_bound {h n : ℝ}24    (hh : (2 : ℝ) / 3 ≤ h) (hn : 2 ≤ n) :25    2 ^ 32 * (Quantitative.momentParameter h n : ℝ) ^ 80 ≤26      (Quantitative.dimensionChoice h n : ℝ) := by27  obtain ⟨_, _, _, hp⟩ := Quantitative.moment_parameter_bounds hh hn28  have hD : 0 < (Quantitative.dimensionChoice h n : ℝ) :=29    (Real.exp_pos _).trans_le (Nat.le_ceil _)30  have htwop : 2 * (Quantitative.momentParameter h n : ℝ) ≤31      Real.exp (Real.log (Quantitative.dimensionChoice h n : ℝ) / 80) := by32    linarith33  have he : (Real.exp (Real.log (Quantitative.dimensionChoice h n : ℝ) / 80)) ^ 80 =34      (Quantitative.dimensionChoice h n : ℝ) := by35    rw [← Real.exp_nat_mul]36    have ha : (80 : ℝ) * (Real.log (Quantitative.dimensionChoice h n : ℝ) / 80) =37        Real.log (Quantitative.dimensionChoice h n : ℝ) := by ring38    norm_num only [Nat.cast_ofNat]39    rw [ha]40    rw [Real.exp_log hD]41  calc42    _ ≤ (2 * (Quantitative.momentParameter h n : ℝ)) ^ 80 := by43      rw [mul_pow]44      exact mul_le_mul_of_nonneg_right (by norm_num) (by positivity)45    _ ≤ _ := he ▸ pow_le_pow_left₀ (by positivity) htwop 804647def triangle (n : ℕ) : ℕ := n * (n + 1) / 24849theorem triangle_cast (n : ℕ) :50    (triangle n : ℝ) = (n : ℝ) * ((n : ℝ) + 1) / 2 := by51  rw [triangle, Nat.cast_div (Nat.two_dvd_mul_add_one n) (by norm_num)]52  push_cast53  rfl5455/-- The generous power-form multiplier in the manuscript's expectation56bound, before taking the `p`th root. -/57def momentMultiplier (m D : ℝ) (p n : ℕ) : ℝ :=58  (2 * m) ^ (n + 1) * D ^ triangle n * (p : ℝ) ^ (3 * triangle n) *59    (1 + D ^ (-(1 / 2 : ℝ))) ^ (n * p)6061theorem momentMultiplier_pos {m D : ℝ} (hm : 0 < m) (hD : 0 < D)62    {p n : ℕ} (hp : 0 < p) : 0 < momentMultiplier m D p n := by63  unfold momentMultiplier64  positivity6566/-- Exact conversion to the logarithmic factor already used by the explicit67dimension proof; no asymptotic simplification is made here. -/68theorem momentMultiplier_root_eq_exp {h m : ℝ} {n : ℕ}69    (hh : (2 : ℝ) / 3 ≤ h) (hn : 2 ≤ n) (hm : 0 < m) :70    (momentMultiplier m (Quantitative.dimensionChoice h n)71      (Quantitative.momentParameter h n) n) ^72        (1 / (Quantitative.momentParameter h n : ℝ)) =73      Real.exp (Quantitative.haarLogMultiplier h n (Real.log (2 * m))) := by74  obtain ⟨_, hp, _, _⟩ := Quantitative.moment_parameter_bounds (n := (n : ℝ)) hh75    (by exact_mod_cast hn)76  have hp0 : 0 < Quantitative.momentParameter h (n : ℝ) := by omega77  have hD : 0 < (Quantitative.dimensionChoice h n : ℝ) :=78    (Real.exp_pos _).trans_le (Nat.le_ceil _)79  have hR : 0 < 1 + (Quantitative.dimensionChoice h n : ℝ) ^ (-(1 / 2 : ℝ)) := by80    positivity81  rw [Real.rpow_def_of_pos (momentMultiplier_pos hm hD hp0)]82  congr 183  unfold momentMultiplier84  rw [Real.log_mul (by positivity) (by positivity),85    Real.log_mul (by positivity) (by positivity),86    Real.log_mul (by positivity) (by positivity)]87  simp only [Real.log_pow, Nat.cast_add, Nat.cast_one, Nat.cast_mul, Nat.cast_ofNat,88    triangle_cast]89  have hroot : (Quantitative.dimensionChoice h n : ℝ) ^ (-(1 / 2 : ℝ)) =90      Real.exp (-(Real.log (Quantitative.dimensionChoice h n : ℝ) / 2)) := by91    rw [Real.rpow_def_of_pos hD]92    congr 193    ring94  rw [hroot]95  unfold Quantitative.haarLogMultiplier96  have hpnz : (Quantitative.momentParameter h (n : ℝ) : ℝ) ≠ 0 := by positivity97  field_simp9899/-- The smaller multiplier obtained by replacing one coordinate at a time. -/100def replacementMultiplier (m D : ℝ) (p n : ℕ) : ℝ :=101  (2 * m) ^ n * D ^ triangle n * (p : ℝ) ^ (3 * (n * (n - 1) / 2)) *102    (1 + D ^ (-(1 / 2 : ℝ))) ^ n103104/-- The actual iteration leaves slack in the coefficient, free-coordinate,105and error factors, all in the favorable direction. -/106theorem replacementMultiplier_le {m D : ℝ} (hm : 1 ≤ m) (hD : 0 ≤ D)107    {p n : ℕ} (hp : 1 ≤ p) :108    replacementMultiplier m D p n ≤ momentMultiplier m D p n := by109  have ht : n * (n - 1) / 2 ≤ triangle n := by110    unfold triangle111    exact Nat.div_le_div_right (Nat.mul_le_mul_left n (by omega))112  have he : n ≤ n * p := by nlinarith113  have hc : (2 * m) ^ n ≤ (2 * m) ^ (n + 1) :=114    pow_le_pow_right₀ (by linarith) (by omega)115  have hpow : (p : ℝ) ^ (3 * (n * (n - 1) / 2)) ≤116      (p : ℝ) ^ (3 * triangle n) :=117    pow_le_pow_right₀ (by exact_mod_cast hp) (Nat.mul_le_mul_left 3 ht)118  have hr : (1 + D ^ (-(1 / 2 : ℝ))) ^ n ≤119      (1 + D ^ (-(1 / 2 : ℝ))) ^ (n * p) :=120    pow_le_pow_right₀ (by linarith [Real.rpow_nonneg hD (-(1 / 2 : ℝ))]) he121  unfold replacementMultiplier momentMultiplier122  have hab := mul_le_mul_of_nonneg_right hc (pow_nonneg hD (triangle n))123  have habc := mul_le_mul hab hpow (by positivity) (by positivity)124  exact mul_le_mul habc hr (by positivity) (by positivity)125126/-- The dimension exponents accumulate to the triangular number. -/127theorem sum_stage_dimension (n : ℕ) :128    (∑ k ∈ Finset.range n, (k + 1)) = triangle n := by129  have h := Finset.sum_range_id (n + 1)130  rw [Finset.sum_range_succ'] at h131  simpa [triangle, Nat.mul_comm] using h132133/-- The count of free coordinates decreases once at every replacement. -/134theorem sum_stage_free (n : ℕ) :135    (∑ k ∈ Finset.range n, 3 * (n - (k + 1))) = 3 * (n * (n - 1) / 2) := by136  calc137    _ = ∑ k ∈ Finset.range n, 3 * (n - 1 - k) := by138      apply Finset.sum_congr rfl139      intro k _140      congr 1141      omega142    _ = _ := by143      rw [← Finset.mul_sum, Finset.sum_range_reflect (fun k : ℕ => k), Finset.sum_range_id]144145/-- Exact product of the costs at all forward replacement stages. -/146theorem prod_stage_factors (m D : ℝ) (p n : ℕ) :147    (∏ k ∈ Finset.range n,148      (2 * m * D ^ (k + 1) * (p : ℝ) ^ (3 * (n - (k + 1))) *149        (1 + D ^ (-(1 / 2 : ℝ))))) = replacementMultiplier m D p n := by150  simp only [Finset.prod_mul_distrib]151  rw [Finset.prod_pow_eq_pow_sum, Finset.prod_pow_eq_pow_sum,152    sum_stage_dimension, sum_stage_free]153  simp [replacementMultiplier, mul_pow]154155theorem triangle_succ (n : ℕ) : triangle (n + 1) = triangle n + n + 1 := by156  rw [← sum_stage_dimension, Finset.sum_range_succ, sum_stage_dimension]157  omega158159theorem triangle_eq_lower_add (n : ℕ) :160    triangle n = n * (n - 1) / 2 + n := by161  rw [← sum_stage_dimension, Finset.sum_add_distrib, Finset.sum_range_id]162  simp163164theorem replacementMultiplier_nonneg {m D : ℝ} (hm : 0 ≤ m) (hD : 0 ≤ D)165    (p n : ℕ) : 0 ≤ replacementMultiplier m D p n := by166  unfold replacementMultiplier167  positivity168169/-- The coefficient index grows by one matrix factor at every recursive170replacement. This identity records that growth without any loss. -/171theorem replacementMultiplier_succ (m D : ℝ) (p n : ℕ) :172    replacementMultiplier (m * D) D p n *173      (2 * m * D * (p : ℝ) ^ (3 * n) * (1 + D ^ (-(1 / 2 : ℝ)))) =174        replacementMultiplier m D p (n + 1) := by175  have hl : (n + 1) * ((n + 1) - 1) / 2 = triangle n := by176    simp [triangle, Nat.mul_comm]177  unfold replacementMultiplier178  rw [hl, triangle_succ, triangle_eq_lower_add]179  simp only [mul_pow, pow_add, pow_one, Nat.mul_add]180  ring181182end Nonadditivity.HaarTensorConstants