Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.StructuredHaarModel

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

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

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

20 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.StructuredLinearization7import Mathlib.MeasureTheory.Function.LocallyIntegrable8import Mathlib.MeasureTheory.Integral.Average910/-! # Concrete tensor representation of independent Haar generator pairs1112The explicit construction samples two independent Haar matrices per tensor13factor, then evaluates the proved logarithmic-length words. The derived K14unitaries within each factor are not asserted independent or Haar.15-/16noncomputable section17set_option backward.isDefEq.respectTransparency false18set_option linter.unusedSectionVars false19set_option maxHeartbeats 80000020namespace Nonadditivity.StructuredHaarModel21open MeasureTheory Entropy Channels.KrausChannel22open scoped Matrix Matrix.Norms.L2Operator Kronecker BigOperators Topology2324section Tensor25variable {ι κ : Type} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ]2627def kroneckerUnitary (U : unitary (Matrix ι ι ℂ)) (V : unitary (Matrix κ κ ℂ)) :28    unitary (Matrix (ι×κ) (ι×κ) ℂ) :=29  ⟨(U:Matrix ι ι ℂ) ⊗ₖ (V:Matrix κ κ ℂ), by30    apply Unitary.mem_iff.mpr31    constructor32    · simp only [Matrix.star_eq_conjTranspose,Matrix.conjTranspose_kronecker]33      rw [← Matrix.mul_kronecker_mul]34      change (star (U:Matrix ι ι ℂ)*(U:Matrix ι ι ℂ)) ⊗ₖ35        (star (V:Matrix κ κ ℂ)*(V:Matrix κ κ ℂ)) = 136      rw [(Unitary.mem_iff.mp U.property).1,(Unitary.mem_iff.mp V.property).1,37        Matrix.one_kronecker_one]38    · simp only [Matrix.star_eq_conjTranspose,Matrix.conjTranspose_kronecker]39      rw [← Matrix.mul_kronecker_mul]40      change ((U:Matrix ι ι ℂ)*star (U:Matrix ι ι ℂ)) ⊗ₖ41        ((V:Matrix κ κ ℂ)*star (V:Matrix κ κ ℂ)) = 142      rw [(Unitary.mem_iff.mp U.property).2,(Unitary.mem_iff.mp V.property).2,43        Matrix.one_kronecker_one]⟩4445/-- A literal product-free-group representation on the tensor input space. -/46def tensorRepresentation (u : ℕ → (FreeGroup (Fin 2) →* unitary (Matrix ι ι ℂ))) :47    (r : ℕ) → (Fin r → FreeGroup (Fin 2)) →*48      unitary (Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ)49  | 0 => 150  | r+1 =>51    { toFun := fun g => kroneckerUnitary (tensorRepresentation u r (Fin.init g)) (u r (g (Fin.last r)))52      map_one' := by53        apply Subtype.ext54        change (tensorRepresentation u r (Fin.init (1 : Fin (r+1) → FreeGroup (Fin 2))) : Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ) ⊗ₖ55          (u r 1 : Matrix ι ι ℂ) = 156        have hi : Fin.init (1 : Fin (r+1) → FreeGroup (Fin 2)) = 1 := rfl57        rw [hi,map_one,map_one]58        exact Matrix.one_kronecker_one59      map_mul' := by60        intro g h61        apply Subtype.ext62        have hi : Fin.init (g*h) = Fin.init g * Fin.init h := rfl63        change (tensorRepresentation u r (Fin.init (g*h)) : Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ) ⊗ₖ64          (u r ((g*h) (Fin.last r)) : Matrix ι ι ℂ) = _65        rw [hi,map_mul]66        change ((tensorRepresentation u r (Fin.init g) : Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ) *67          (tensorRepresentation u r (Fin.init h) : Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ)) ⊗ₖ68          (u r (g (Fin.last r)*h (Fin.last r)) : Matrix ι ι ℂ) = _69        rw [map_mul]70        exact Matrix.mul_kronecker_mul _ _ _ _ }7172/-- The representation evaluates individual branch words to the actual ordered73tensor words used by the Kraus-channel construction. -/74theorem tensorRepresentation_word {K : ℕ}75    (u : ℕ → (FreeGroup (Fin 2) →* unitary (Matrix ι ι ℂ)))76    (w : ℕ → Fin K → FreeGroup (Fin 2)) (r : ℕ) (a : FreeModel.Branch K r) :77    (tensorRepresentation u r (fun i => w i.val (a i)) : Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ) =78      tensorWord (fun j b => u j (w j b)) r ((FreeBridge.chainBranchEquiv K r).symm a) := by79  induction r with80  | zero => rfl81  | succ r ih =>82    change (tensorRepresentation u r (fun i => w i.val (a i.castSucc)) : Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ) ⊗ₖ83      (u r (w r (a (Fin.last r))) : Matrix ι ι ℂ) = _84    change (tensorRepresentation u r (fun i => w i.val (a i.castSucc)) :85      Matrix (TensorChainIndex ι r) (TensorChainIndex ι r) ℂ) ⊗ₖ86      (u r (w r (a (Fin.last r))) : Matrix ι ι ℂ) =87      tensorWord (fun j b => u j (w j b)) r88        ((FreeBridge.chainBranchEquiv K r).symm (Fin.init a)) ⊗ₖ89      (u r (w r (a (Fin.last r))) : Matrix ι ι ℂ)90    congr 191    simpa only [Fin.init] using ih (Fin.init a)92end Tensor9394/-- Local free-group evaluation in each independently sampled Haar pair. -/95def localRepresentation (n N : ℕ) (ω : HaarModel.Sample 2 n N) (j : ℕ) :96    FreeGroup (Fin 2) →* HaarModel.LocalUnitary N :=97  FreeGroup.lift (HaarModel.sampleUnitary 2 n N ω j)9899/-- The canonical tensor representation of all sampled pairs. -/100def sampleRepresentation (n N : ℕ) (ω : HaarModel.Sample 2 n N) :101    StructuredLinearization.G n →*102      unitary (Matrix (TensorChainIndex (Fin (N+1)) n) (TensorChainIndex (Fin (N+1)) n) ℂ) :=103  tensorRepresentation (localRepresentation n N ω) n104105/-- The actual K derived unitaries, obtained from the logarithmic-length embedding. -/106def derivedUnitary (K n N : ℕ) (hK : 2 ≤ K) (ω : HaarModel.Sample 2 n N)107    (j : ℕ) (a : Fin K) : HaarModel.LocalUnitary N :=108  localRepresentation n N ω j (InitialNetReduction.shortWord K hK a)109110@[simp] theorem sampleRepresentation_branchWord (K n N : ℕ) (hK : 2 ≤ K)111    (ω : HaarModel.Sample 2 n N) (a : FreeModel.Branch K n) :112    (sampleRepresentation n N ω113      (InitialNetReduction.shortProductEmbedding K n hK (FreeModel.branchWord a)) : Matrix _ _ ℂ) =114      tensorWord (derivedUnitary K n N hK ω) n ((FreeBridge.chainBranchEquiv K n).symm a) :=115  tensorRepresentation_word (localRepresentation n N ω)116    (fun _ => InitialNetReduction.shortWord K hK) n a117118/-- Every fixed word is continuous in its two unitary arguments. -/119theorem continuous_localRepresentation (n N j : ℕ) (g : FreeGroup (Fin 2)) :120    Continuous (fun ω : HaarModel.Sample 2 n N => localRepresentation n N ω j g) := by121  have hl : ∀ l : List (Fin 2 × Bool), Continuous122      (fun ω : HaarModel.Sample 2 n N => localRepresentation n N ω j (FreeGroup.mk l)) := by123    intro l124    induction l with125    | nil => simpa using (continuous_const : Continuous (fun _ : HaarModel.Sample 2 n N => (1:HaarModel.LocalUnitary N)))126    | cons x l ih =>127      simp only [localRepresentation,FreeGroup.lift_mk,List.map_cons,List.prod_cons] at ih ⊢128      apply Continuous.mul _ ih129      cases hx : x.2130      · exact (HaarModel.continuous_sampleUnitary 2 n N j x.1).inv131      · exact HaarModel.continuous_sampleUnitary 2 n N j x.1132  simpa only [FreeGroup.mk_toWord] using hl g.toWord133134/-- Continuity holds for every fixed product-group word, without a linearity assumption. -/135theorem continuous_tensorRepresentation (n N r : ℕ) (g : Fin r → FreeGroup (Fin 2)) :136    Continuous (fun ω : HaarModel.Sample 2 n N =>137      (tensorRepresentation (localRepresentation n N ω) r g : Matrix (TensorChainIndex (Fin (N+1)) r) (TensorChainIndex (Fin (N+1)) r) ℂ)) := by138  induction r with139  | zero => exact continuous_const140  | succ r ih =>141    apply continuous_matrix142    intro a b143    change Continuous (fun ω : HaarModel.Sample 2 n N =>144      (tensorRepresentation (localRepresentation n N ω) r (Fin.init g) : Matrix (TensorChainIndex (Fin (N+1)) r) (TensorChainIndex (Fin (N+1)) r) ℂ) a.1 b.1 *145      (localRepresentation n N ω r (g (Fin.last r)) : Matrix (Fin (N+1)) (Fin (N+1)) ℂ) a.2 b.2)146    exact ((ih (Fin.init g)).matrix_elem _ _).mul147      ((continuous_subtype_val.comp (continuous_localRepresentation n N r (g (Fin.last r)))).matrix_elem _ _)148149/-- The literal finite polynomial norm is a continuous, integrable random variable. -/150theorem continuous_polynomial (n N : ℕ)151    (H : PolynomialReduction.Polynomial (StructuredLinearization.G n)) :152    Continuous (fun ω : HaarModel.Sample 2 n N => H.finiteEval (sampleRepresentation n N ω)) := by153  unfold PolynomialReduction.Polynomial.finiteEval154  apply continuous_finset_sum155  intro w hw156  apply continuous_matrix157  intro a b158  exact continuous_const.mul ((continuous_tensorRepresentation n N n w).matrix_elem a.2 b.2)159160theorem integrable_polynomial_norm (n N : ℕ)161    (H : PolynomialReduction.Polynomial (StructuredLinearization.G n)) :162    Integrable (fun ω : HaarModel.Sample 2 n N => ‖H.finiteEval (sampleRepresentation n N ω)‖)163      (HaarModel.sampleMeasure 2 n N) :=164  (continuous_polynomial n N H).norm.integrable_of_hasCompactSupport165    (HasCompactSupport.of_compactSpace _)166167end Nonadditivity.StructuredHaarModel