Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.StructuredHaarConsequences

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

Catalog entries: 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

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

30 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.StructuredHaarModel7import Nonadditivity.StructuredFiniteChannel8import Nonadditivity.HaarConsequences910/-! # Explicit-dimension channels from the sole remaining Haar estimate1112The hypothesis below is a literal expectation inequality for actual linear13matrix polynomials evaluated in independent Haar pairs. Every net, embedding,14coefficient budget, error transfer, probability-space construction, and channel15conversion is proved by the imported constructions.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option linter.unusedSectionVars false20set_option maxHeartbeats 120000021namespace Nonadditivity.StructuredHaarConsequences22open MeasureTheory StructuredHaarModel StructuredLinearization PolynomialReduction23open Entropy Channels.KrausChannel BlockConstruction FreeModel24open scoped Matrix Matrix.Norms.L2Operator BigOperators Topology2526/-- The manuscript's exact integer local dimension. -/27def localDimension (K n : ℕ) : ℕ := Quantitative.dimensionChoice (Real.log K) n2829theorem localDimension_pos (K n : ℕ) : 0 < localDimension K n := by30  exact Nat.ceil_pos.mpr (Real.exp_pos _)3132/-- Convert to the canonical Haar model's `N+1` indexing convention. -/33def sampleSize (K n : ℕ) : ℕ := localDimension K n - 13435@[simp] theorem sampleSize_add_one (K n : ℕ) : sampleSize K n + 1 = localDimension K n :=36  Nat.sub_add_cancel (localDimension_pos K n)3738/-- The remaining analytic assertion, specialized only to the manuscript's39explicit N and even moment choice. There is no coefficient-size restriction.40The expectation, representation and regular norm are literal mathematical objects. -/41def ExplicitHaarExpectation (K n : ℕ) : Prop :=42  ∀ H : Polynomial (StructuredLinearization.G n),43    (∀ w ∈ H.support, w=1 ∨ ∃ x : Fin n × Fin 2,44      w=ProductPolynomialReduction.generator x ∨ w=(ProductPolynomialReduction.generator x)⁻¹) →45    (∀ (ν : Type) [Fintype ν] [DecidableEq ν] [Nonempty ν]46      (π : StructuredLinearization.G n →* unitary (Matrix ν ν ℂ)),47      (H.finiteEval π).IsHermitian) →48    (∫ ω : HaarModel.Sample 2 n (sampleSize K n),49      ‖H.finiteEval (sampleRepresentation n (sampleSize K n) ω)‖50        ∂HaarModel.sampleMeasure 2 n (sampleSize K n)) ≤51      ‖H.regularEval‖ * Real.exp (Quantitative.haarLogMultiplier (Real.log K) n52        (Real.log (2*(Fintype.card H.Index:ℝ))))5354/-- The exact net amplification for mesh `1/n`. -/55def kappa (n : ℕ) : ℝ := ((n:ℝ)+1)/((n:ℝ)-1)5657theorem kappa_ge_one {n : ℕ} (hn : 2 ≤ n) : 1 ≤ kappa n := by58  have hnr : (2:ℝ) ≤ n := by exact_mod_cast hn59  unfold kappa60  exact (le_div_iff₀ (by linarith)).mpr (by linarith)6162variable {K n : ℕ} [NeZero K]6364/-- Full explicit-dimension realization. The only remaining hypothesis is65`ExplicitHaarExpectation`; all prior separate dimension/error budgets are gone. -/66theorem exists_explicit_certificate (hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)67    (hHaar : ExplicitHaarExpectation K n) :68    ∃ ω : HaarModel.Sample 2 n (sampleSize K n),69      ∀ A : Matrix (ZMod (K^n)) (ZMod (K^n)) ℂ, A.IsHermitian → A.trace=0 →70        ‖(blockChannel (derivedUnitary K n (sampleSize K n) hK ω) n).adjointMap A‖ ≤71          (kappa n*c K n)*AdjointPurity.hsLength A := by72  obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn73  have hnr : (1:ℝ) < n := by linarith74  obtain ⟨tests,hne,htnorm,htsymm,hnet,H,hlinear,hL,htransfer⟩ :=75    exists_net_linearization hK hn76  have hL0 : 0 ≤ Real.log (2*(Fintype.card H.Index:ℝ)) := by77    have hc : (1:ℝ) ≤ Fintype.card H.Index := by exact_mod_cast Fintype.card_pos (α := H.Index)78    exact Real.log_nonneg (by linarith)79  obtain ⟨_,_,_,hlog⟩ := Quantitative.quantitative_certificate hK hn hL0 hL80  have htol : 0 < Quantitative.tolerance (Real.log K) n := by81    unfold Quantitative.tolerance82    positivity83  have hm : Real.exp (Quantitative.haarLogMultiplier (Real.log K) n84      (Real.log (2*(Fintype.card H.Index:ℝ)))) ≤ 1+Quantitative.tolerance (Real.log K) n := by85    have hh := Real.exp_lt_exp.mpr hlog86    rw [Real.exp_log (by linarith : 0 < 1+Quantitative.tolerance (Real.log K) n/2)] at hh87    linarith88  obtain ⟨ω,hω⟩ := exists_le_integral (integrable_polynomial_norm n (sampleSize K n) H)89  have he := hHaar H hlinear (fun ν _ _ _ π => (htransfer ν π).1)90  have hcomparison : ‖H.finiteEval (sampleRepresentation n (sampleSize K n) ω)‖ ≤91      (1+Quantitative.tolerance (Real.log K) n)*‖H.regularEval‖ := by92    exact hω.trans (he.trans (by nlinarith [mul_le_mul_of_nonneg_left hm (norm_nonneg H.regularEval)]))93  have hp := (htransfer (TensorChainIndex (Fin (sampleSize K n+1)) n)94    (sampleRepresentation n (sampleSize K n) ω)).2 (by95      simpa only [Quantitative.tolerance] using hcomparison)96  have hcert := StructuredFiniteChannel.certificate_of_finitePaired_bound97    (derivedUnitary K n (sampleSize K n) hK ω)98    (fun b => sampleRepresentation n (sampleSize K n) ω99      (InitialNetReduction.shortProductEmbedding K n hK (branchWord b)))100    (sampleRepresentation_branchWord K n (sampleSize K n) hK ω) tests101    (1/(n:ℝ)) ((1+1/(n:ℝ))*c K n) (by positivity)102    ((div_lt_one (by linarith)).mpr hnr) (by unfold c; positivity) hnet hp103  have hκ : ((1+1/(n:ℝ))*c K n)/(1-1/(n:ℝ)) = kappa n*c K n := by104    unfold kappa105    field_simp106  exact ⟨ω,by simpa only [hκ] using hcert⟩107108/-- The actual converted channel has exactly the claimed input dimension. -/109theorem explicit_input_dimension :110    Fintype.card ((ZMod (K^n) × ZMod (K^n)) ×111      (Bool × TensorChainIndex (Fin (sampleSize K n+1)) n)) =112        2 * (localDimension K n)^n * K^(2*n) := by113  rw [Conversion.converted_input_dimension,Entropy.tensorChainIndex_card]114  simp only [Fintype.card_fin,sampleSize_add_one,pow_mul,Nat.mul_comm 2 n]115116/-- The full finite channel bounds at the exact explicit dimensions. -/117theorem exists_explicit_channel (hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)118    (hHaar : ExplicitHaarExpectation K n) :119    ∃ ω : HaarModel.Sample 2 n (sampleSize K n),120      let T := Conversion.converted (blockChannel (derivedUnitary K n (sampleSize K n) hK ω) n)121      T.holevo ≤ (n:ℝ)*Real.log (1+9/(K:ℝ)) + 2*Real.log (kappa n) ∧122      (n:ℝ)*Real.log K/(K:ℝ) ≤ (T.tensor T).holevo ∧123      (n:ℝ)*BlockScalars.gapCoefficient K - 4*Real.log (kappa n) ≤124        (T.tensor T).holevo - 2*T.holevo := by125  obtain ⟨ω,hω⟩ := exists_explicit_certificate hK hn hHaar126  obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn127  have hn2 : 2 ≤ n := by exact_mod_cast (show (2:ℝ) ≤ n by linarith)128  have hκ := kappa_ge_one hn2129  have hbounds := block_converted_bounds_of_certificate130    (derivedUnitary K n (sampleSize K n) hK ω) n131    (show 0 ≤ kappa n*c K n by unfold c; positivity) hω132  have hscalar := BlockScalars.log_purity_factor_le (n := n) hK hκ133  change Real.log (1+(K:ℝ)^n*(kappa n*c K n)^2) ≤ _ at hscalar134  refine ⟨ω,?_,hbounds.2.1,?_⟩135  · exact hbounds.1.trans (by simpa only [Nat.cast_pow] using hscalar)136  · dsimp [BlockScalars.gapCoefficient]137    have hb := hbounds.2.2138    calc139      (n:ℝ)*(Real.log (K:ℝ)/(K:ℝ)-2*Real.log (1+9/(K:ℝ))) - 4*Real.log (kappa n) =140          (n:ℝ)*Real.log (K:ℝ)/(K:ℝ) -141            2*((n:ℝ)*Real.log (1+9/(K:ℝ)) + 2*Real.log (kappa n)) := by ring142      _ ≤ _ := by linarith143144145/-- Review-facing form: a genuine finite CPTP channel, the exact manuscript146input/output dimensions, strictly positive one-use Holevo information, and all147bounds in bits. Its sole nonnumeric premise is the literal Haar expectation. -/148theorem exists_explicit_finite_channel (hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)149    (hHaar : ExplicitHaarExpectation K n) :150    ∃ T : ActualConsequences.FiniteQuantumChannel,151      Fintype.card T.Input = 2*(localDimension K n)^n*K^(2*n) ∧152      Fintype.card T.Output = K^n ∧153      0 < T.chi ∧154      T.chi ≤ (n:ℝ)*Scalar.aK K + 2*Scalar.log2 (kappa n) ∧155      (n:ℝ)*Scalar.log2 K/(K:ℝ) ≤ T.chiTwo ∧156      (n:ℝ)*Scalar.deltaK K - 4*Scalar.log2 (kappa n) ≤ T.gap := by157  obtain ⟨ω,hupper,hlower,_⟩ := exists_explicit_channel hK hn hHaar158  let U := derivedUnitary K n (sampleSize K n) hK ω159  let T := ActualConsequences.FiniteQuantumChannel.ofKraus (Conversion.converted (blockChannel U n))160  obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn161  have hn1 : 1 ≤ n := by exact_mod_cast (show (1:ℝ) ≤ n by linarith)162  have hp : 0 < T.chi := PositiveHolevo.block_converted_holevoBits_pos hK U hn1163  have he : (2*Scalar.log2 (kappa n))*Real.log 2 = 2*Real.log (kappa n) := by164    dsimp [Scalar.log2]165    field_simp166  have hu : T.chi ≤ (n:ℝ)*Scalar.aK K + 2*Scalar.log2 (kappa n) :=167    HolevoBits.natural_upper_to_bits n (by simpa only [he] using hupper)168  have hl : (n:ℝ)*Scalar.log2 K/(K:ℝ) ≤ T.chiTwo :=169    HolevoBits.natural_lower_to_bits n hlower170  refine ⟨T,explicit_input_dimension,ZMod.card _,hp,hu,hl,?_⟩171  unfold ActualConsequences.FiniteQuantumChannel.gap Scalar.deltaK172  rw [mul_sub,← mul_div_assoc]173  nlinarith only [hu,hl]174175end Nonadditivity.StructuredHaarConsequences