Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.BlockConstruction

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

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.BlockBell7import Nonadditivity.Conversion8import Mathlib.Data.Fintype.EquivFin910/-!11# The concrete block channel with standard output coordinates1213The tensor block is made from the complementary channels of the actual14uniform random-unitary families. Its output basis alone is relabelled to15`ZMod (K^n)`, with the dimension equality proved here. The Bell witness is16transported from the checked block construction, not supplied as a premise.17-/1819noncomputable section2021namespace Nonadditivity2223open scoped BigOperators ComplexOrder ComplexConjugate Kronecker Matrix2425namespace Entropy2627/-- The empty block has dimension one; each tensor step multiplies dimension. -/28theorem tensorChainIndex_card (ι : Type*) [Fintype ι] (n : ℕ) :29    Fintype.card (TensorChainIndex ι n) = Fintype.card ι ^ n := by30  induction n with31  | zero => simp [TensorChainIndex]32  | succ n ih =>33    change Fintype.card (TensorChainIndex ι n × ι) = _34    simp [ih, pow_succ]3536/-- Every finite tensor block of a nonempty index type is nonempty. -/37instance tensorChainIndexNonempty (ι : Type*) [Nonempty ι] :38    (n : ℕ) → Nonempty (TensorChainIndex ι n)39  | 0 => inferInstanceAs (Nonempty PUnit)40  | n + 1 => by41    change Nonempty (TensorChainIndex ι n × ι)42    letI := tensorChainIndexNonempty ι n43    infer_instance4445@[simp] theorem DensityMatrix.reindex_refl {ι : Type*} [Fintype ι] [DecidableEq ι]46    (ρ : DensityMatrix ι) : ρ.reindex (Equiv.refl ι) = ρ := by47  apply DensityMatrix.ext48  rfl4950end Entropy5152namespace Channels.KrausChannel5354open Entropy5556variable {ι ο κ μ ν η : Type*}57variable [Fintype ι] [DecidableEq ι] [Fintype ο] [DecidableEq ο] [Fintype κ]5859omit [DecidableEq ο] in60/-- Relabeling matrix entries commutes with entrywise complex conjugation. -/61theorem reindex_conjugate_eq [Fintype μ] [DecidableEq μ] [Fintype ν]62    (T : Channels.KrausChannel ι ο κ) (ei : ι ≃ μ) (eo : ο ≃ ν) :63    (T.reindex ei eo).conjugate = T.conjugate.reindex ei eo := by64  apply ext65  funext k66  ext a b67  rfl6869omit [DecidableEq ο] in70/-- Relabeling the two tensor factors is relabeling by the product equivalence. -/71theorem reindex_tensor_eq [Fintype μ] [DecidableEq μ] [Fintype ν] [Fintype η]72    {ι' ο' μ' ν' : Type*}73    [Fintype ι'] [DecidableEq ι'] [Fintype ο']74    [Fintype μ'] [DecidableEq μ'] [Fintype ν']75    (T : Channels.KrausChannel ι ο κ) (S : Channels.KrausChannel μ ν η)76    (ei : ι ≃ ι') (eo : ο ≃ ο') (em : μ ≃ μ') (en : ν ≃ ν') :77    (T.reindex ei eo).tensor (S.reindex em en) =78      (T.tensor S).reindex (ei.prodCongr em) (eo.prodCongr en) := by79  apply ext80  funext k81  ext a b82  rfl8384/-- Relabel the actual output state together with the actual channel. -/85theorem reindex_output_eq [Fintype μ] [DecidableEq μ] [Fintype ν] [DecidableEq ν]86    (T : Channels.KrausChannel ι ο κ) (ei : ι ≃ μ) (eo : ο ≃ ν) (ρ : DensityMatrix ι) :87    (T.reindex ei eo).output (ρ.reindex ei) = (T.output ρ).reindex eo := by88  apply DensityMatrix.ext89  exact T.reindex_map ei eo ρ.matrix9091/-- A common output-basis relabeling preserves the entropy of any original/conjugate92joint output, including entangled inputs. -/93theorem reindex_tensor_conjugate_entropy [Fintype ν] [DecidableEq ν]94    (T : Channels.KrausChannel ι ο κ) (e : ο ≃ ν) (ρ : DensityMatrix (ι × ι)) :95    (((T.reindex (Equiv.refl ι) e).tensor96      (T.reindex (Equiv.refl ι) e).conjugate).output ρ).vonNeumann =97      ((T.tensor T.conjugate).output ρ).vonNeumann := by98  have hi : (Equiv.refl ι).prodCongr (Equiv.refl ι) = Equiv.refl (ι × ι) := by99    ext a <;> rfl100  rw [reindex_conjugate_eq, reindex_tensor_eq, hi]101  have ho := reindex_output_eq (T.tensor T.conjugate) (Equiv.refl (ι × ι)) (e.prodCongr e) ρ102  rw [DensityMatrix.reindex_refl] at ho103  rw [ho, DensityMatrix.reindex_entropy]104105end Channels.KrausChannel106107namespace BlockConstruction108109open Entropy Channels Channels.KrausChannel Conversion110open scoped Matrix.Norms.L2Operator111112variable {ι : Type*} [Fintype ι] [DecidableEq ι]113variable {K : ℕ} [NeZero K]114115/-- A basis equivalence justified by the actual block's dimension count. -/116def blockOutputEquiv (K n : ℕ) [NeZero K] :117    TensorChainIndex (Fin K) n ≃ ZMod (K ^ n) :=118  Fintype.equivOfCardEq (by simp [tensorChainIndex_card])119120/-- The actual tensor block, with the standard `K^n`-dimensional output basis. -/121def blockChannel (U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) :122    KrausChannel (TensorChainIndex ι n) (ZMod (K ^ n)) (TensorChainIndex ι n) :=123  (BlockBell.blockComplementary U n).reindex (Equiv.refl _) (blockOutputEquiv K n)124125omit [DecidableEq ι] in126/-- The base block has precisely the manuscript's input dimension. -/127theorem blockChannel_input_dimension (n : ℕ) :128    Fintype.card (TensorChainIndex ι n) = Fintype.card ι ^ n := tensorChainIndex_card ι n129130/-- The base block has precisely the manuscript's output dimension. -/131theorem blockChannel_output_dimension (n : ℕ) : Fintype.card (ZMod (K ^ n)) = K ^ n :=132  ZMod.card _133134/-- The explicit block Bell witness survives output-basis standardization.135There is no joint-output entropy assumption in this theorem. -/136theorem block_channel_bell_entropy_le [Nonempty ι]137    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) :138    ∃ ρ : DensityMatrix (TensorChainIndex ι n × TensorChainIndex ι n),139      (((blockChannel U n).tensor (blockChannel U n).conjugate).output ρ).vonNeumann ≤140        (n : ℝ) * (2 * Real.log K - Real.log K / (K : ℝ)) := by141  obtain ⟨ρ,hρ⟩ := BlockBell.block_complementary_bell_entropy_le U n142  refine ⟨ρ, ?_⟩143  unfold blockChannel144  rw [reindex_tensor_conjugate_entropy]145  simpa only [Fintype.card_fin] using hρ146147/-- Actual block channels followed by the checked switch and Weyl extension148satisfy the Holevo estimates from a base adjoint norm certificate alone.149The entangled Bell witness and all channel/entropy conversions are proved. -/150theorem block_converted_bounds_of_certificate [Nonempty ι]151    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) {t : ℝ} (ht : 0 ≤ t)152    (hcertificate : ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,153      A.IsHermitian → A.trace = 0 → ‖(blockChannel U n).adjointMap A‖ ≤ t * AdjointPurity.hsLength A) :154    (converted (blockChannel U n)).holevo ≤ Real.log (1 + (K ^ n : ℝ) * t ^ 2) ∧155    (n : ℝ) * Real.log K / (K : ℝ) ≤156      ((converted (blockChannel U n)).tensor (converted (blockChannel U n))).holevo ∧157    (n : ℝ) * Real.log K / (K : ℝ) - 2 * Real.log (1 + (K ^ n : ℝ) * t ^ 2) ≤158      ((converted (blockChannel U n)).tensor (converted (blockChannel U n))).holevo -159        2 * (converted (blockChannel U n)).holevo := by160  obtain ⟨ρ,hρ⟩ := block_channel_bell_entropy_le U n161  have h := converted_bounds_of_certificate (blockChannel U n) ht hcertificate ρ hρ162  have hl : Real.log ((K ^ n : ℕ) : ℝ) = (n : ℝ) * Real.log K := by163    rw [Nat.cast_pow, Real.log_pow]164  simp only [Nat.cast_pow] at h hl165  have hs : 2 * ((n : ℝ) * Real.log K) -166      (n : ℝ) * (2 * Real.log K - Real.log K / (K : ℝ)) =167      (n : ℝ) * Real.log K / (K : ℝ) := by ring168  rw [hl, hs] at h169  exact h170171end BlockConstruction172end Nonadditivity