Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPrescribedBound

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

Catalog entries: Prescribed finite dimensions and Holevo gap · Uniform adjoint norm estimate at prescribed dimensions

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

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

14 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarRefinedCoefficientBound7import Nonadditivity.HaarPathClassAssembly8import Nonadditivity.HaarPrescribedDimension910/-! # The unconditional prescribed-dimension Haar and channel bounds1112Actual Haar integration, refined path classes, operator coefficient sums,13finite scalar majorants, and tensor replacement are joined here. No random14matrix, path-counting, or coefficient estimate remains an input.15-/16noncomputable section17set_option backward.isDefEq.respectTransparency false18set_option maxHeartbeats 150000019namespace Nonadditivity.HaarPrescribedDimension20open HaarOperatorPathBridge HaarOperatorCurry HaarOnePairAssembly21  HaarWordExpansion HaarIteratedMoments StructuredHaarConsequences22open scoped Matrix Matrix.Norms.L2Operator2324/-- The literal mixed moment contributions satisfy the tracked length budget. -/25theorem onePairLengthBounds {N p : ℕ} (hp : 2≤p)26    (hN : 2^80*(p:ℝ)^80≤N+1) : OnePairLengthBounds N p := by27  classical28  intro j ι _ _ _ f _ hlinear t ht29  have ht0 : 0<t := (Finset.mem_Icc.mp ht).130  have htp : t≤p := (Finset.mem_Icc.mp ht).231  have hA := operatorCurry_linear f (fun w hw => (hlinear w hw).1)32  have hb : ∀ P : HaarPathGraph.Path (Fin (N+1)) 2 t, pathWeight P≠0 →33      ‖refinedCoefficientSum (operatorCurry f) p P‖ ≤ (N+1:ℝ)^P.vertices.card *34        (2^(HaarPathMultiplicity.singletonEdges P.edgeList).card *35          (p:ℝ)^(9*P.defectTwice+11)*‖regularEval f‖^p) := by36    intro P _37    have h := coefficient_bound (operatorCurry f) hA p (by omega) P ht038    simpa only [Fintype.card_fin,Nat.cast_add,Nat.cast_one,operatorCurry_norm,mul_assoc] using h39  have h := norm_pathOperatorSum_le_of_coefficient_bound hp ht0 htp hN40    (operatorCurry f) (pow_nonneg (norm_nonneg (regularEval f)) p) hb41  exact mixedLengthContribution_le_of_pathSum N p t ht0 f h4243/-- The full one-pair trace comparison in the manuscript's growing moment range. -/44theorem onePairTraceBound {N p : ℕ} (hp : 2≤p)45    (hN : 2^80*(p:ℝ)^80≤N+1) : OnePairTraceBound N p :=46  onePairTraceBound_of_lengthBounds hp hN (onePairLengthBounds hp hN)4748/-- The exact canonical Haar expectation needed by the channel construction. -/49theorem explicitHaarExpectation {K n : ℕ} (hK : 2≤K) (hn : Quantitative.n₀ K≤n) :50    ExplicitHaarExpectation K n := by51  have hKreal : (2:ℝ)≤K := by exact_mod_cast hK52  have hlogK := Real.log_le_log (by norm_num : (0:ℝ)<2) hKreal53  have hh : (2:ℝ)/3≤Real.log (K:ℝ) := by linarith [Real.log_two_gt_d9]54  obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn55  have hn2 : (2:ℝ)≤n := by linarith56  have hp := (Quantitative.moment_parameter_bounds hh hn2).2.157  have hD := HaarMomentConstants.prescribed_dimension_strong hh hn258  have he : sampleSize K n+1=Quantitative.dimensionChoice (Real.log K) n :=59    sampleSize_add_one K n60  rw [←he,Nat.cast_add,Nat.cast_one] at hD61  exact explicitHaarExpectation_of_onePairTraceBound hK hn (onePairTraceBound hp hD)6263/-- A genuine finite CPTP channel with the manuscript's prescribed dimensions64and the supplementary single-use lower bound, on the same channel witness. -/65theorem exists_prescribed_channel_with_lower_bound {K n : ℕ}66    (hK : 2≤K) (hn : Quantitative.n₀ K≤n) :67    ∃ T : ActualConsequences.FiniteQuantumChannel,68      Fintype.card T.Input = 2*(localDimension K n)^n*K^(2*n) ∧69      Fintype.card T.Output = K^n ∧70      0 < T.chi ∧71      2*(n:ℝ)/(K:ℝ) ≤ T.chi ∧72      T.chi ≤ (n:ℝ)*Scalar.aK K+2*Scalar.log2 (kappa n) ∧73      (n:ℝ)*Scalar.log2 K/(K:ℝ)≤T.chiTwo ∧74      (n:ℝ)*Scalar.deltaK K-4*Scalar.log2 (kappa n)≤T.gap := by75  letI : NeZero K := ⟨by omega⟩76  obtain ⟨ω,hupper,hlower,_⟩ := exists_explicit_channel hK hn77    (explicitHaarExpectation hK hn)78  let U := StructuredHaarModel.derivedUnitary K n (sampleSize K n) hK ω79  let T := ActualConsequences.FiniteQuantumChannel.ofKraus80    (Conversion.converted (BlockConstruction.blockChannel U n))81  obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn82  have hn1 : 1 ≤ n := by exact_mod_cast (show (1:ℝ) ≤ n by linarith)83  have hp : 0 < T.chi := PositiveHolevo.block_converted_holevoBits_pos hK U hn184  have hs : 2*(n:ℝ)/(K:ℝ) ≤ T.chi :=85    PositiveHolevo.block_converted_holevoBits_lower hK U n86  have he : (2*Scalar.log2 (kappa n))*Real.log 2 = 2*Real.log (kappa n) := by87    dsimp [Scalar.log2]88    field_simp89  have hu : T.chi ≤ (n:ℝ)*Scalar.aK K+2*Scalar.log2 (kappa n) :=90    HolevoBits.natural_upper_to_bits n (by simpa only [he] using hupper)91  have hl : (n:ℝ)*Scalar.log2 K/(K:ℝ) ≤ T.chiTwo :=92    HolevoBits.natural_lower_to_bits n hlower93  refine ⟨T,explicit_input_dimension,ZMod.card _,hp,hs,hu,hl,?_⟩94  unfold ActualConsequences.FiniteQuantumChannel.gap Scalar.deltaK95  rw [mul_sub,←mul_div_assoc]96  nlinarith only [hu,hl]9798/-- A genuine finite CPTP channel with the manuscript's prescribed dimensions99and its one-use, two-use, and additive-gap bounds, all in bits. -/100theorem exists_prescribed_channel {K n : ℕ} (hK : 2≤K) (hn : Quantitative.n₀ K≤n) :101    ∃ T : ActualConsequences.FiniteQuantumChannel,102      Fintype.card T.Input = 2*(localDimension K n)^n*K^(2*n) ∧103      Fintype.card T.Output = K^n ∧104      0 < T.chi ∧105      T.chi ≤ (n:ℝ)*Scalar.aK K+2*Scalar.log2 (kappa n) ∧106      (n:ℝ)*Scalar.log2 K/(K:ℝ)≤T.chiTwo ∧107      (n:ℝ)*Scalar.deltaK K-4*Scalar.log2 (kappa n)≤T.gap := by108  obtain ⟨T,hinput,houtput,hpos,_,hupper,hlower,hgap⟩ :=109    exists_prescribed_channel_with_lower_bound hK hn110  exact ⟨T,hinput,houtput,hpos,hupper,hlower,hgap⟩111112end Nonadditivity.HaarPrescribedDimension