Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.OperationalReindex

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

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

7 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.OperationalConverse7import Nonadditivity.ChannelReindex89/-! # Basis relabeling of physical quantum codes -/10noncomputable section11namespace Nonadditivity.Operational12open Entropy Channels13open scoped BigOperators Matrix ComplexOrder14set_option backward.isDefEq.respectTransparency false1516namespace POVM17variable {ι ο μ : Type*} [Fintype ι] [DecidableEq ι]18  [Fintype ο] [DecidableEq ο] [Fintype μ]1920def reindex (P : POVM ι μ) (e : ι ≃ ο) : POVM ο μ where21  effect := fun m => Matrix.reindex e e (P.effect m)22  positive := fun m => (P.positive m).submatrix e.symm23  complete := by24    ext i j25    have h := congrArg (fun A : Matrix ι ι ℂ => A (e.symm i) (e.symm j)) P.complete26    simpa [Matrix.sum_apply,Matrix.reindex_apply,Matrix.one_apply] using h2728theorem probability_reindex (P : POVM ι μ) (e : ι ≃ ο)29    (ρ : DensityMatrix ι) (m : μ) :30    (P.reindex e).probability (ρ.reindex e) m = P.probability ρ m := by31  unfold probability reindex DensityMatrix.reindex32  simp only [Matrix.reindex_apply,Matrix.submatrix_mul_equiv]33  exact congrArg Complex.re (e.symm.sum_comp (fun j => (ρ.matrix*P.effect m) j j))3435end POVM3637namespace Code38variable {ι ο κ ι' ο' : Type*} [Fintype ι] [DecidableEq ι]39  [Fintype ο] [DecidableEq ο] [Fintype κ]40  [Fintype ι'] [DecidableEq ι'] [Fintype ο'] [DecidableEq ο']41  {T : KrausChannel ι ο κ} {M : ℕ}4243def reindex (C : Code T M) (ei : ι ≃ ι') (eo : ο ≃ ο') :44    Code (T.reindex ei eo) M where45  encode := fun m => (C.encode m).reindex ei46  decode := C.decode.reindex eo4748theorem reindex_success (C : Code T M) (ei : ι ≃ ι') (eo : ο ≃ ο') :49    (C.reindex ei eo).success = C.success := by50  unfold success reindex51  congr 152  apply Finset.sum_congr rfl53  intro m hm54  change (C.decode.reindex eo).probability55    ((T.reindex ei eo).output ((C.encode m).reindex ei)) m = _56  have h : (T.reindex ei eo).output ((C.encode m).reindex ei) =57      (T.output (C.encode m)).reindex eo := by58    apply DensityMatrix.ext59    exact T.reindex_map ei eo (C.encode m).matrix60  rw [h,POVM.probability_reindex]6162theorem reindex_error (C : Code T M) (ei : ι ≃ ι') (eo : ο ≃ ο') :63    (C.reindex ei eo).error = C.error := by64  simp only [error,reindex_success]6566end Code67end Nonadditivity.Operational