Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.GapFractionAsymptotics

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

Catalog entries: Output-normalized gap lower limit and its large-K expansion

Direct imports

Imported by project modules

1 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

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

17 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.Scalar78/-! # An explicit remainder for the guaranteed gap fraction910The error bound below proves the manuscript's stated big-O expansion with11constant 162, without introducing an unspecified asymptotic constant.12-/1314noncomputable section15namespace Nonadditivity.Scalar1617theorem gap_fraction_identity {K : ℝ} (hK : 1 < K) :18    deltaK K / log2 K = 1 / K - 2 * Real.log (1 + 9 / K) / Real.log K := by19  have hlog := (Real.log_pos hK).ne'20  unfold deltaK aK log221  field_simp2223private theorem log_remainder_bounds {x : ℝ} (hx : 0 ≤ x) :24    0 ≤ x - Real.log (1 + x) ∧ x - Real.log (1 + x) ≤ x^2 := by25  have hp : 0 < 1 + x := by linarith26  have hu := Real.log_le_sub_one_of_pos hp27  have hl := Real.one_sub_inv_le_log_of_pos hp28  have hrec : 1 - (1 + x)⁻¹ = x / (1 + x) := by field_simp; ring29  rw [hrec] at hl30  have hb : x - x / (1 + x) ≤ x^2 := by31    apply (le_of_mul_le_mul_right (a := 1+x) ?_ hp)32    field_simp33    nlinarith [sq_nonneg x]34  exact ⟨by linarith, by linarith⟩3536/-- In particular `r_K = (1 - 18 / ln K) / K + O(1/(K² ln K))`. -/37theorem gap_fraction_explicit_remainder {K : ℝ} (hK : 1 < K) :38    0 ≤ deltaK K / log2 K - (1 - 18 / Real.log K) / K ∧39    deltaK K / log2 K - (1 - 18 / Real.log K) / K ≤40      162 / (K^2 * Real.log K) := by41  have hK0 : 0 < K := by linarith42  have hl : 0 < Real.log K := Real.log_pos hK43  have hx := log_remainder_bounds (by positivity : 0 ≤ 9 / K)44  have he : deltaK K / log2 K - (1 - 18 / Real.log K) / K =45      2 * (9 / K - Real.log (1 + 9 / K)) / Real.log K := by46    rw [gap_fraction_identity hK]47    ring48  rw [he]49  constructor50  · exact div_nonneg (mul_nonneg (by norm_num) hx.1) hl.le51  · calc52      2 * (9 / K - Real.log (1 + 9 / K)) / Real.log K ≤53          2 * (9 / K)^2 / Real.log K := by gcongr; exact hx.254      _ = 162 / (K^2 * Real.log K) := by ring5556end Nonadditivity.Scalar