Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.GaussianScalar

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

Direct imports

  • Mathlib.Analysis.SpecialFunctions.Log.Basic dependency
  • Mathlib.Data.Real.Archimedean dependency
  • Mathlib.Tactic dependency

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

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

1 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.Analysis.SpecialFunctions.Log.Basic7import Mathlib.Data.Real.Archimedean8import Mathlib.Tactic910/-! # Simultaneous scalar parameters for the Gaussian construction -/11noncomputable section1213namespace Nonadditivity.GaussianScalar1415/-- One sufficiently large integer makes the one-use upper bound arbitrarily16small and the two-use ratio lower bound arbitrarily large, simultaneously. -/17theorem exists_parameter {ε : ℝ} (hε : 0 < ε) (R : ℝ) :18    ∃ K : ℕ, 4096 ≤ K ∧19      (512:ℝ)^2 / ((K:ℝ) * Real.log 2) ≤ ε ∧20      R ≤ (Real.log K - 1) / (2 * (512:ℝ)^2) ∧21      0 ≤ Real.log K - 1 := by22  have hlogtwo : 0 < Real.log 2 := Real.log_pos (by norm_num)23  let C : ℝ := (512:ℝ)^224  have hC : 0 < C := by norm_num [C]25  obtain ⟨K, hK⟩ := exists_nat_gt26    (max (4096:ℝ) (max (C / (ε * Real.log 2)) (Real.exp (2*C*max R 0+1))))27  have hsize : (4096:ℝ) ≤ K := (le_max_left _ _).trans hK.le28  have hKpos : (0:ℝ) < K := lt_of_lt_of_le (by norm_num) hsize29  have hsmall : C / (ε * Real.log 2) ≤ K :=30    (le_max_left _ _).trans ((le_max_right _ _).trans hK.le)31  have hexp : Real.exp (2*C*max R 0+1) ≤ K :=32    (le_max_right _ _).trans ((le_max_right _ _).trans hK.le)33  have hlarge : 2*C*max R 0+1 ≤ Real.log K := by34    simpa only [Real.log_exp] using Real.log_le_log (Real.exp_pos _) hexp35  refine ⟨K, ?_, ?_, ?_, ?_⟩36  · exact_mod_cast hsize37  · change C / ((K:ℝ) * Real.log 2) ≤ ε38    apply (div_le_iff₀ (mul_pos hKpos hlogtwo)).mpr39    have hs := (div_le_iff₀ (mul_pos hε hlogtwo)).mp hsmall40    nlinarith41  · change R ≤ (Real.log K - 1) / (2*C)42    apply (le_div_iff₀ (mul_pos (by norm_num) hC)).mpr43    have hm := mul_le_mul_of_nonneg_left (le_max_left R 0) (le_of_lt (mul_pos (by norm_num : (0:ℝ)<2) hC))44    linarith45  · have hm : 0 ≤ max R 0 := le_max_right _ _46    have hcmax : 0 ≤ 2*C*max R 0 := mul_nonneg (by positivity) hm47    linarith4849end Nonadditivity.GaussianScalar