Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.PrescribedCostLogarithms

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

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

8 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.PrescribedCostDimensions78/-! # Logarithmic input-cost scale of the actual growing family -/9noncomputable section10namespace Nonadditivity.PrescribedCost11open Filter Topology Asymptotics1213def inputQubits (K : ℕ) : ℝ := Scalar.log2 (Fintype.card (growingFamily K).Input)1415theorem inputQubits_div_sq_tendsto :16    Tendsto (fun K : ℕ => inputQubits K/(K:ℝ)^2) atTop (𝓝 (280/Real.log 2)) :=17  growingFamily_input_qubits_div_sq_tendsto1819theorem inputQubits_pos_eventually : ∀ᶠ K : ℕ in atTop, 0 < inputQubits K := by20  have hc : (0:ℝ)<280/Real.log 2 := by positivity21  have hh := inputQubits_div_sq_tendsto.eventually (lt_mem_nhds hc)22  filter_upwards [hh,eventually_ge_atTop 2] with K h hK23  have hk : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)24  simpa using (lt_div_iff₀ (sq_pos_of_pos hk)).mp h2526/-- Taking the logarithm of the actual input-qubit count gives twice ln K27at leading order, because that count is asymptotic to a positive multiple of K². -/28theorem log_inputQubits_div_log_tendsto :29    Tendsto (fun K : ℕ => Real.log (inputQubits K)/Real.log K) atTop (𝓝 2) := by30  have hc : (0:ℝ)<280/Real.log 2 := by positivity31  have hlogK : Tendsto (fun K : ℕ => Real.log (K:ℝ)) atTop atTop :=32    Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop33  have h := (inputQubits_div_sq_tendsto.log hc.ne').div_atTop hlogK34  have h' : Tendsto (fun K : ℕ =>35      Real.log (inputQubits K/(K:ℝ)^2)/Real.log K + 2) atTop (𝓝 2) := by36    simpa using h.add_const 237  apply h'.congr'38  filter_upwards [inputQubits_pos_eventually,eventually_ge_atTop 2] with K hq hK39  have hk : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)40  have hl := (log_nat_pos hK).ne'41  rw [Real.log_div hq.ne' (pow_ne_zero _ hk.ne'),Real.log_pow]42  field_simp43  ring4445/-- The logarithm is in bits, as in the manuscript's information quantities. -/46theorem log2_inputQubits_div_log_tendsto :47    Tendsto (fun K : ℕ => Scalar.log2 (inputQubits K)/Real.log K)48      atTop (𝓝 (2/Real.log 2)) := by49  convert log_inputQubits_div_log_tendsto.div_const (Real.log 2) using 150  funext K51  unfold Scalar.log252  ring5354theorem sqrt_inputLog_ratio_tendsto :55    Tendsto (fun K : ℕ => Real.sqrt (Scalar.log2 (inputQubits K)/Real.log K))56      atTop (𝓝 (Real.sqrt (2/Real.log 2))) :=57  log2_inputQubits_div_log_tendsto.sqrt5859end Nonadditivity.PrescribedCost