Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.CanonicalBlockBell

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

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

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

13 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.BlockConstruction78/-! The tensor Bell witness is exactly the canonical Bell density matrix. -/9noncomputable section10set_option backward.isDefEq.respectTransparency false11set_option linter.unusedSectionVars false12namespace Nonadditivity.CanonicalBlockBell13open Entropy Channels Channels.KrausChannel BlockBell BlockConstruction14open scoped BigOperators Matrix Kronecker1516variable {ι : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]1718theorem bellState_entry (a b : ι × ι) :19    (BellOutput.bellState (ι := ι)).matrix a b =20      if a.1=a.2 ∧ b.1=b.2 then (Fintype.card ι:ℂ)⁻¹ else 0 := by21  by_cases ha : a.1=a.2 <;> by_cases hb : b.1=b.2 <;>22    simp [BellOutput.bellState,Matrix.vecMulVec,BellOutput.normalizedBellVector,23      bellVector,ha,hb]24  rw [←mul_inv_rev,←Complex.ofReal_mul,Real.mul_self_sqrt (by positivity)]25  simp2627theorem blockBellState_eq_canonical (n : ℕ) :28    blockBellState (ι := ι) n = BellOutput.bellState (ι := TensorChainIndex ι n) := by29  induction n with30  | zero =>31    apply DensityMatrix.ext32    ext a b33    rw [bellState_entry]34    rcases a with ⟨a₁,a₂⟩35    rcases b with ⟨b₁,b₂⟩36    cases a₁; cases a₂; cases b₁; cases b₂37    simp [blockBellState,DensityMatrix.tensorChain,DensityMatrix.reindex,38      emptyTensorState,TensorChainIndex]39  | succ n ih =>40    apply DensityMatrix.ext41    ext a b42    rcases a with ⟨⟨a₀,a₁⟩,⟨a₂,a₃⟩⟩43    rcases b with ⟨⟨b₀,b₁⟩,⟨b₂,b₃⟩⟩44    have hx := congrArg (fun ρ : DensityMatrix (TensorChainIndex ι n × TensorChainIndex ι n) =>45      ρ.matrix (a₀,a₂) (b₀,b₂)) ih46    dsimp only at hx47    change (DensityMatrix.tensorChain (fun _ => BellOutput.bellState (ι := ι)) n).matrix48        ((pairChainEquiv ι ι n).symm (a₀,a₂)) ((pairChainEquiv ι ι n).symm (b₀,b₂)) = _ at hx49    change (DensityMatrix.tensorChain (fun _ => BellOutput.bellState (ι := ι)) n).matrix50        ((pairChainEquiv ι ι n).symm (a₀,a₂)) ((pairChainEquiv ι ι n).symm (b₀,b₂)) *51          (BellOutput.bellState (ι := ι)).matrix (a₁,a₃) (b₁,b₃) = _52    rw [hx,bellState_entry,bellState_entry,bellState_entry]53    by_cases ha : a₀=a₂ <;> by_cases hb : b₀=b₂ <;>54      by_cases hc : a₁=a₃ <;> by_cases hd : b₁=b₃ <;>55      simp [ha,hb,hc,hd,TensorChainIndex,Fintype.card_prod,mul_comm]5657/-- The explicit complementary-block estimate at the canonical Bell state. -/58theorem block_complementary_canonical_entropy_le {κ : Type*}59    [Fintype κ] [DecidableEq κ] [Nonempty κ]60    (U : ℕ → κ → unitary (Matrix ι ι ℂ)) (n : ℕ) :61    (((blockComplementary U n).tensor (blockComplementary U n).conjugate).output62      (BellOutput.bellState (ι := TensorChainIndex ι n))).vonNeumann ≤63        (n:ℝ)*(2*Real.log (Fintype.card κ)-Real.log (Fintype.card κ)/(Fintype.card κ:ℝ)) := by64  rw [←blockBellState_eq_canonical]65  let T (j : ℕ) := (KrausChannel.uniformUnitary (U j)).complementary66  have he := pairedTensorChain_output_entropy T (fun j => (T j).conjugate)67    (fun _ => BellOutput.bellState (ι := ι)) n68  rw [←tensorChain_conjugate T n] at he69  calc70    _ = ∑ j ∈ Finset.range n,71        (((T j).tensor (T j).conjugate).output (BellOutput.bellState (ι := ι))).vonNeumann := he72    _ ≤ ∑ j ∈ Finset.range n,73        (2*Real.log (Fintype.card κ)-Real.log (Fintype.card κ)/(Fintype.card κ:ℝ)) :=74      Finset.sum_le_sum (fun j _ => BellOutput.complementary_bell_entropy_le (U j))75    _ = _ := by simp; ring7677/-- The actual standardized block channel at the same canonical Bell input. -/78theorem block_channel_canonical_entropy_le {K : ℕ} [NeZero K]79    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) :80    (((blockChannel U n).tensor (blockChannel U n).conjugate).output81      (BellOutput.bellState (ι := TensorChainIndex ι n))).vonNeumann ≤82        (n:ℝ)*(2*Real.log K-Real.log K/(K:ℝ)) := by83  unfold blockChannel84  rw [reindex_tensor_conjugate_entropy]85  simpa only [Fintype.card_fin] using block_complementary_canonical_entropy_le U n8687end Nonadditivity.CanonicalBlockBell