Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarModel

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

Catalog entries: Generic Haar-convergence interfaces

Direct imports

Imported by project modules

4 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

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

24 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.ComplementaryAdjoint7import Nonadditivity.Qualitative8import Mathlib.Topology.Algebra.Star.Unitary9import Mathlib.MeasureTheory.Measure.Haar.Basic10import Mathlib.Probability.Independence.Basic11import Mathlib.Analysis.Normed.Module.FiniteDimension1213/-! # The canonical independent Haar unitary sampling model1415The probability spaces and their unitary random variables are constructed16here. Strong convergence is the remaining explicit analytic proposition,17formulated for these concrete sampled block channels.18-/1920noncomputable section2122set_option backward.isDefEq.respectTransparency false2324namespace Nonadditivity.HaarModel2526open MeasureTheory ProbabilityTheory Channels.KrausChannel BlockConstruction Entropy27open scoped Matrix Topology2829/-- The finite unitary group in local dimension `N+1`. -/30abbrev LocalUnitary (N : ℕ) := unitary (Matrix (Fin (N + 1)) (Fin (N + 1)) ℂ)3132open scoped Matrix.Norms.Elementwise in33instance localUnitaryCompact (N : ℕ) : CompactSpace (LocalUnitary N) := by34  apply isCompact_iff_compactSpace.mp35  exact Metric.isCompact_of_isClosed_isBounded isClosed_unitary36    (isBounded_iff_forall_norm_le.mpr ⟨1, fun U hU =>37      entrywise_sup_norm_bound_of_unitary hU⟩)3839open scoped Matrix.Norms.L2Operator4041instance localUnitaryMeasurable (N : ℕ) : MeasurableSpace (LocalUnitary N) :=42  borel (LocalUnitary N)4344instance localUnitaryBorel (N : ℕ) : BorelSpace (LocalUnitary N) := ⟨rfl⟩4546/-- Normalized Haar measure on the compact complex unitary group. -/47def haar (N : ℕ) : Measure (LocalUnitary N) := Measure.haarMeasure ⊤4849instance haarProbability (N : ℕ) : IsProbabilityMeasure (haar N) := by50  constructor51  exact Measure.haarMeasure_self5253instance haarInvariant (N : ℕ) : Measure.IsHaarMeasure (haar N) := by54  unfold haar55  infer_instance5657/-- One independent Haar unitary for every block/branch pair. -/58abbrev Sample (K n N : ℕ) := (Fin n × Fin K) → LocalUnitary N5960/-- The actual joint law, the finite product of normalized Haar measures. -/61def sampleMeasure (K n N : ℕ) : Measure (Sample K n N) :=62  Measure.pi (fun _ => haar N)6364instance sampleProbability (K n N : ℕ) : IsProbabilityMeasure (sampleMeasure K n N) := by65  unfold sampleMeasure66  infer_instance6768/-- The coordinate random unitaries are independent under their joint law. -/69theorem independent_coordinates (K n N : ℕ) :70    iIndepFun (fun a : Fin n × Fin K => fun ω : Sample K n N => ω a)71      (sampleMeasure K n N) := by72  exact iIndepFun_pi (μ := fun _ => haar N) (X := fun _ => id)73    (fun _ => measurable_id.aemeasurable)7475/-- Every coordinate has exactly the normalized Haar marginal. -/76theorem coordinate_law (K n N : ℕ) (a : Fin n × Fin K) :77    (sampleMeasure K n N).map (fun ω => ω a) = haar N :=78  (measurePreserving_eval (fun _ : Fin n × Fin K => haar N) a).map_eq7980/-- Extend the sampled blocks by identities beyond the fixed block length. -/81def sampleUnitary (K n N : ℕ) (ω : Sample K n N) (j : ℕ) (a : Fin K) :82    LocalUnitary N :=83  if h : j < n then ω (⟨j, h⟩, a) else 18485theorem sampleUnitary_coordinate (K n N : ℕ) (ω : Sample K n N)86    (j : Fin n) (a : Fin K) : sampleUnitary K n N ω j a = ω (j, a) := by87  simp [sampleUnitary]8889theorem continuous_sampleUnitary (K n N j : ℕ) (a : Fin K) :90    Continuous (fun ω : Sample K n N => sampleUnitary K n N ω j a) := by91  unfold sampleUnitary92  split93  · exact continuous_apply _94  · exact continuous_const9596/-- Every ordered tensor word is a continuous matrix polynomial of the97sampled unitary coordinates. -/98theorem continuous_tensorWord (K n N r : ℕ) (a : TensorChainIndex (Fin K) r) :99    Continuous (fun ω : Sample K n N => tensorWord (sampleUnitary K n N ω) r a) := by100  induction r with101  | zero => exact continuous_const102  | succ r ih =>103    apply continuous_matrix104    intro i j105    change Continuous (fun ω : Sample K n N =>106      tensorWord (sampleUnitary K n N ω) r a.1 i.1 j.1 *107        (sampleUnitary K n N ω r a.2 :108          Matrix (Fin (N + 1)) (Fin (N + 1)) ℂ) i.2 j.2)109    exact ((ih a.1).matrix_elem _ _).mul110      ((continuous_subtype_val.comp (continuous_sampleUnitary K n N r a.2)).matrix_elem _ _)111112variable {K : ℕ} [NeZero K]113114/-- The concrete fixed-observable block adjoint is continuous. The proof115uses its checked normalized tensor-word polynomial identity. -/116theorem continuous_blockAdjoint (n N : ℕ)117    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) :118    Continuous (fun ω : Sample K n N =>119      (blockChannel (sampleUnitary K n N ω) n).adjointMap A) := by120  simp_rw [blockChannel_adjoint_eq_tensor_polynomial]121  apply Continuous.const_smul122  apply continuous_finset_sum123  intro a _124  apply continuous_finset_sum125  intro b _126  exact ((continuous_tensorWord K n N n a).matrix_conjTranspose.matrix_mul127    (continuous_tensorWord K n N n b)).const_smul _128129/-- The genuine operator norm, with the matrix `L2Operator` instance,130is a measurable random variable for every fixed observable. -/131theorem measurable_blockAdjoint_norm (n N : ℕ)132    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) :133    Measurable (fun ω : Sample K n N =>134      ‖(blockChannel (sampleUnitary K n N ω) n).adjointMap A‖) :=135  (continuous_blockAdjoint n N A).norm.measurable136137/-- In particular, the exact strong-convergence failure events are Borel. -/138theorem measurableSet_norm_deviation (n N : ℕ)139    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) (δ : ℝ) :140    MeasurableSet {ω : Sample K n N | δ ≤141      |‖(blockChannel (sampleUnitary K n N ω) n).adjointMap A‖ -142        FreeBridge.outputFreeNorm K n A|} := by143  exact measurableSet_le measurable_const144    (continuous_abs.measurable.comp145      ((measurable_blockAdjoint_norm n N A).sub measurable_const))146147/-- The remaining deep strong-convergence assertion, now stated for the148canonical independent normalized Haar model and the actual free comparison149operator. All probability, sampling and measurability data are fixed. -/150def HaarStrongConvergence (K n : ℕ) [NeZero K] : Prop :=151  ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,152    A.IsHermitian → A.trace = 0 → AdjointPurity.hsLength A = 1 →153    ∀ δ : ℝ, 0 < δ → Filter.Tendsto154      (fun N => sampleMeasure K n N {ω | δ ≤155        |‖(blockChannel (sampleUnitary K n N ω) n).adjointMap A‖ -156          FreeBridge.outputFreeNorm K n A|})157      Filter.atTop (nhds 0)158159/-- Actual finite channel realization from just the two external analytic160statements, with canonical Haar sampling and no probability-model premises. -/161theorem qualitative_realization_of_CY_and_Haar_strong_convergence162    (n : ℕ) (hK : 2 ≤ K) (hn : 1 ≤ n) {ε : ℝ} (hε : 0 < ε)163    (hCY : FreeModel.CollinsYounBound K n) (hBC : HaarStrongConvergence K n) :164    ∃ N ω,165      (Conversion.converted (blockChannel (sampleUnitary K n N ω) n)).holevo ≤166        (n : ℝ) * Real.log (1 + 9 / (K : ℝ)) + ε ∧167      (n : ℝ) * Real.log K / (K : ℝ) ≤168        ((Conversion.converted (blockChannel (sampleUnitary K n N ω) n)).tensor169          (Conversion.converted (blockChannel (sampleUnitary K n N ω) n))).holevo ∧170      (n : ℝ) * BlockScalars.gapCoefficient K - 2 * ε ≤171        ((Conversion.converted (blockChannel (sampleUnitary K n N ω) n)).tensor172          (Conversion.converted (blockChannel (sampleUnitary K n N ω) n))).holevo -173            2 * (Conversion.converted (blockChannel (sampleUnitary K n N ω) n)).holevo := by174  exact Qualitative.qualitative_realization_of_CY_and_strong_convergence175    n hK hn hε (sampleMeasure K n) (sampleUnitary K n) Filter.atTop hCY hBC176177end Nonadditivity.HaarModel