Exact Lean source
Nonadditivity.HaarInputScaling
Download original .lean · View on GitHub · Jump to source
Catalog entries: Gap scaling with input and output qubits
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
9 project constants, including generated, internal and private declarations.
9 declarations
Nonadditivity.HaarPrescribedDimension.inputLeadingNonadditivity.HaarPrescribedDimension.inputLeading._proof_1internal/detail/privateNonadditivity.HaarPrescribedDimension.inputLeading_posNonadditivity.HaarPrescribedDimension.inputLeading_pos._proof_1_1internal/detail/privateNonadditivity.HaarPrescribedDimension.prescribed_gap_sqrt_input_boundsNonadditivity.HaarPrescribedDimension.prescribed_gap_sqrt_input_bounds._proof_1_1internal/detail/privateNonadditivity.HaarPrescribedDimension.prescribed_input_div_sq_tendstoNonadditivity.HaarPrescribedDimension.prescribed_input_div_sq_tendsto._proof_1_1internal/detail/privateNonadditivity.HaarPrescribedDimension.prescribed_sqrt_input_div_tendsto
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPrescribedScaling78/-! # Matching square-root input-qubit scaling of the actual Holevo gap -/9noncomputable section10namespace Nonadditivity.HaarPrescribedDimension11open Filter Topology ActualConsequences1213def inputLeading (K : ℕ) : ℝ := Quantitative.dimensionExponent (Real.log K)/Real.log 21415theorem inputLeading_pos {K : ℕ} (hK : 2≤K) : 0 < inputLeading K := by16have hl : 0≤Real.log (K:ℝ) := Real.log_nonneg (by exact_mod_cast (show 1≤K by omega))17unfold inputLeading Quantitative.dimensionExponent18positivity1920theorem prescribed_input_div_sq_tendsto {K : ℕ} (hK : 2≤K) :21Tendsto (fun n : ℕ => Scalar.log2 (Fintype.card (prescribedFamily hK n).Input)/(n:ℝ)^2)22atTop (𝓝 (inputLeading K)) := by23have hi : Tendsto (fun n : ℕ => (n:ℝ)⁻¹) atTop (𝓝 0) :=24tendsto_inv_atTop_zero.comp tendsto_natCast_atTop_atTop25have he := (prescribedFamily_input_size_remainder_tendsto hK).mul (hi.pow 2)26have hh := (((tendsto_const_nhds : Tendsto (fun _ : ℕ => inputLeading K)27atTop (𝓝 (inputLeading K))).add (hi.const_mul (2*Scalar.log2 K))).add28(hi.pow 2)).add he29simp only [mul_zero,add_zero,zero_pow (by decide : 2≠0)] at hh30apply hh.congr'31filter_upwards [eventually_ge_atTop 1] with n hn32have hn0 : (n:ℝ)≠0 := by exact_mod_cast (show n≠0 by omega)33unfold inputLeading34field_simp35ring3637theorem prescribed_sqrt_input_div_tendsto {K : ℕ} (hK : 2≤K) :38Tendsto (fun n : ℕ => Real.sqrt (Scalar.log2 (Fintype.card (prescribedFamily hK n).Input))/(n:ℝ))39atTop (𝓝 (Real.sqrt (inputLeading K))) := by40apply (prescribed_input_div_sq_tendsto hK).sqrt.congr'41filter_upwards [eventually_ge_atTop 1] with n hn42rw [Real.sqrt_div' _ (sq_nonneg _), Real.sqrt_sq_eq_abs,abs_of_nonneg (Nat.cast_nonneg n)]4344/-- The stated Θ(sqrt(input qubits)) gap with positive explicit comparison45constants and the actual channel dimension inside the square root. -/46theorem prescribed_gap_sqrt_input_bounds {K : ℕ} (hK : 2≤K)47(hδ : 0<Scalar.deltaK K) :48∃ c C : ℝ, 0<c ∧ 0<C ∧ ∀ᶠ n : ℕ in atTop,49c*Real.sqrt (Scalar.log2 (Fintype.card (prescribedFamily hK n).Input)) ≤50(prescribedFamily hK n).gap ∧51(prescribedFamily hK n).gap ≤52C*Real.sqrt (Scalar.log2 (Fintype.card (prescribedFamily hK n).Input)) := by53let s := Real.sqrt (inputLeading K)54have hs : 0<s := Real.sqrt_pos.mpr (inputLeading_pos hK)55have hlog : 0<Scalar.log2 K := lt_of_lt_of_le (by norm_num : (0:ℝ)<1) (log2_ge_one hK)56refine ⟨Scalar.deltaK K/(4*s),4*Scalar.log2 K/s,by positivity,by positivity,?_⟩57have hl := (prescribed_sqrt_input_div_tendsto hK).eventually58(lt_mem_nhds (show s/2<s by linarith))59have hu := (prescribed_sqrt_input_div_tendsto hK).eventually60(gt_mem_nhds (show s<2*s by linarith))61filter_upwards [hl,hu,prescribedFamily_gap_linear_bounds hK hδ,eventually_ge_atTop 1]62with n hnlo hnhi hg hn63have hnR : (0:ℝ)<n := by exact_mod_cast (show 0<n by omega)64have hlo := (lt_div_iff₀ hnR).mp hnlo65have hhi := (div_lt_iff₀ hnR).mp hnhi66constructor67· rw [div_mul_eq_mul_div]68apply (div_le_iff₀ (by positivity : 0<4*s)).269nlinarith [mul_le_mul_of_nonneg_left hhi.le hδ.le,70mul_le_mul_of_nonneg_left hg.1 hs.le]71· rw [div_mul_eq_mul_div]72apply (le_div_iff₀ hs).273nlinarith [mul_le_mul_of_nonneg_left hlo.le hlog.le,74mul_le_mul_of_nonneg_left hg.2 hs.le]7576end Nonadditivity.HaarPrescribedDimension