Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.FreeBridge

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

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

29 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.FreeModel7import Nonadditivity.Net8import Nonadditivity.BlockConstruction9import Mathlib.Data.Fin.Tuple.Basic1011/-!12# Exact observable-basis transport for the product free model1314The nested block labels are canonically converted into ordered branch tuples.15Trace, Hermitian symmetry, and Hilbert--Schmidt length are preserved by the16actual matrix reindexing. Thus the Collins--Youn hypothesis supplies the17finite-net comparison bound after output coordinates have been specified.18-/1920noncomputable section2122namespace Nonadditivity.FreeBridge2324open Nonadditivity.Entropy Nonadditivity.AdjointPurity25open scoped BigOperators Matrix2627universe u2829/-- The canonical ordered tuple associated with a recursively nested tensor label.30The last local tensor coordinate is the last coordinate of the finite tuple. -/31def chainTupleEquiv (α : Type u) : (n : ℕ) → TensorChainIndex α n ≃ (Fin n → α)32  | 0 =>33    { toFun := fun _ i => Fin.elim0 i34      invFun := fun _ => PUnit.unit35      left_inv := fun x => by cases x; rfl36      right_inv := fun x => by funext i; exact Fin.elim0 i }37  | n + 1 =>38    { toFun := fun x => Fin.snoc (chainTupleEquiv α n x.1) x.239      invFun := fun x => ((chainTupleEquiv α n).symm (Fin.init x), x (Fin.last n))40      left_inv := fun x => by rcases x with ⟨a,b⟩; simp41      right_inv := fun x => by simp [Fin.snoc_init_self] }4243@[simp] theorem chainTupleEquiv_succ (α : Type u) (n : ℕ)44    (a : TensorChainIndex α n) (b : α) :45    chainTupleEquiv α (n + 1) (a,b) = Fin.snoc (chainTupleEquiv α n a) b := rfl4647@[simp] theorem chainTupleEquiv_succ_symm (α : Type u) (n : ℕ) (a : Fin (n + 1) → α) :48    (chainTupleEquiv α (n + 1)).symm a =49      ((chainTupleEquiv α n).symm (Fin.init a), a (Fin.last n)) := rfl5051def chainBranchEquiv (K n : ℕ) :52    TensorChainIndex (Fin K) n ≃ FreeModel.Branch K n := chainTupleEquiv (Fin K) n5354section Reindex5556variable {ι ο : Type*} [Fintype ι] [DecidableEq ι]57  [Fintype ο] [DecidableEq ο]5859omit [DecidableEq ι] [DecidableEq ο] in60/-- Trace is preserved by a bijective change of matrix basis labels. -/61theorem trace_submatrix_equiv (e : ι ≃ ο) (A : Matrix ο ο ℂ) :62    (A.submatrix e e).trace = A.trace := by63  exact e.sum_comp (fun i => A i i)6465omit [DecidableEq ι] [DecidableEq ο] in66/-- The matrix trace definition of Hilbert--Schmidt length is invariant under reindexing. -/67theorem hsLength_submatrix_equiv (e : ι ≃ ο) (A : Matrix ο ο ℂ) :68    hsLength (A.submatrix e e) = hsLength A := by69  unfold hsLength70  rw [Matrix.conjTranspose_submatrix, Matrix.submatrix_mul_equiv,71    trace_submatrix_equiv]7273omit [Fintype ι] [DecidableEq ι] [Fintype ο] [DecidableEq ο] in74/-- Hermitian observables stay Hermitian under the same concrete basis transport. -/75theorem isHermitian_submatrix_equiv (e : ι ≃ ο) (A : Matrix ο ο ℂ)76    (hA : A.IsHermitian) : (A.submatrix e e).IsHermitian := hA.submatrix e7778end Reindex7980section Comparison8182variable {K n : ℕ} {ο : Type*} [Fintype ο] [DecidableEq ο]8384/-- The actual free comparison norm after an explicitly specified output-basis relabeling. -/85def reindexedFreeNorm (e : FreeModel.Branch K n ≃ ο) (A : Matrix ο ο ℂ) : ℝ :=86  FreeModel.freeNorm (A.submatrix e e)8788theorem freeConstant_eq : FreeModel.c K n = Nonadditivity.collinsYounConstant K n := rfl8990omit [DecidableEq ο] in91/-- The exact unit-HS test bound needed by the finite-realization theorem.92Its sole analytic premise is the concrete Collins--Youn operator bound. -/93theorem reindexedFreeNorm_le (e : FreeModel.Branch K n ≃ ο)94    (hCY : FreeModel.CollinsYounBound K n) (A : Matrix ο ο ℂ)95    (htrace : A.trace = 0) (hunit : hsLength A = 1) :96    reindexedFreeNorm e A ≤ Nonadditivity.collinsYounConstant K n := by97  have ht : (A.submatrix e e).trace = 0 := (trace_submatrix_equiv e A).trans htrace98  have hu : hsLength (A.submatrix e e) = 1 := (hsLength_submatrix_equiv e A).trans hunit99  exact (FreeModel.freeNorm_le_of_collinsYoun hCY (A.submatrix e e) ht hu).trans_eq100    freeConstant_eq101102end Comparison103104section Block105106variable {K n : ℕ} [NeZero K]107108/-- Ordered free-generator branches in the very output coordinates used by109`BlockConstruction.blockChannel`. The tuple conversion fixes the order of110the local tensor legs before applying the block's output basis equivalence. -/111def branchToOutput (K n : ℕ) [NeZero K] :112    FreeModel.Branch K n ≃ ZMod (K ^ n) :=113  (chainBranchEquiv K n).symm.trans (BlockConstruction.blockOutputEquiv K n)114115@[simp] theorem branchToOutput_chain (a : TensorChainIndex (Fin K) n) :116    branchToOutput K n (chainBranchEquiv K n a) =117      BlockConstruction.blockOutputEquiv K n a := by118  simp [branchToOutput]119120/-- The exact infinite-dimensional free operator norm for an observable on121the output of the concrete block channel. -/122def outputFreeNorm (K n : ℕ) [NeZero K]123    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) : ℝ :=124  reindexedFreeNorm (branchToOutput K n) A125126theorem outputFreeNorm_nonneg127    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) :128    0 ≤ outputFreeNorm K n A := FreeModel.freeNorm_nonneg _129130theorem outputObservable_trace131    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) :132    (A.submatrix (branchToOutput K n) (branchToOutput K n)).trace = A.trace :=133  trace_submatrix_equiv _ _134135theorem outputObservable_hsLength136    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) :137    hsLength (A.submatrix (branchToOutput K n) (branchToOutput K n)) = hsLength A :=138  hsLength_submatrix_equiv _ _139140theorem outputObservable_isHermitian141    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) (hA : A.IsHermitian) :142    (A.submatrix (branchToOutput K n) (branchToOutput K n)).IsHermitian :=143  isHermitian_submatrix_equiv _ _ hA144145/-- The published operator inequality, expressed on the output coordinates146of the actual block channel, supplies exactly the unit-HS bound needed by147finite realization. -/148theorem outputFreeNorm_le_of_collinsYoun149    (hCY : FreeModel.CollinsYounBound K n)150    (A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ)151    (htrace : A.trace = 0) (hunit : hsLength A = 1) :152    outputFreeNorm K n A ≤ Nonadditivity.collinsYounConstant K n :=153  reindexedFreeNorm_le (branchToOutput K n) hCY A htrace hunit154155/-- The full finite-realization test predicate, including its Hermitian156condition, follows from Collins--Youn for this concrete free model. -/157theorem outputFreeNorm_unit_bound158    (hCY : FreeModel.CollinsYounBound K n) :159    ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,160      A.IsHermitian → A.trace = 0 → hsLength A = 1 →161        outputFreeNorm K n A ≤ Nonadditivity.collinsYounConstant K n := by162  intro A _ htrace hunit163  exact outputFreeNorm_le_of_collinsYoun hCY A htrace hunit164165end Block166167end Nonadditivity.FreeBridge