Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.StructuredFiniteChannel

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

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

9 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.InitialNetReduction78/-! # From the actual paired net polynomial to the actual block channel910The branch and standardized output indices are explicitly transported. A finite11polynomial norm bound therefore gives the concrete adjoint certificate used by12the entropy and channel-conversion theorems.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false17set_option maxHeartbeats 60000018set_option linter.unusedSectionVars false1920namespace Nonadditivity.StructuredFiniteChannel21open Entropy Channels Channels.KrausChannel FreeModel FreeBridge FiniteRealization22open scoped BigOperators Matrix Matrix.Norms.L2Operator2324variable {ι : Type*} [Fintype ι] [DecidableEq ι]25variable {K n : ℕ} [NeZero K]2627/-- An observable in branch coordinates, expressed in the output basis of the28concrete block channel. -/29def outputMatrix (A : Matrix (Branch K n) (Branch K n) ℂ) :30    Matrix (ZMod (K^n)) (ZMod (K^n)) ℂ :=31  A.submatrix (branchToOutput K n).symm (branchToOutput K n).symm3233@[simp] theorem branchToOutput_symm_output (a : TensorChainIndex (Fin K) n) :34    (branchToOutput K n).symm (BlockConstruction.blockOutputEquiv K n a) =35      chainBranchEquiv K n a := by36  apply (branchToOutput K n).injective37  simp3839/-- The exact matrix identity, including the factor `1/K^n` and the orientation40`U_aᴴ U_b`, after conversion from nested tensor indices to branch tuples. -/41theorem block_adjoint_eq_branch_polynomial42    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ))43    (A : Matrix (Branch K n) (Branch K n) ℂ) :44    (BlockConstruction.blockChannel U n).adjointMap (outputMatrix A) =45      ∑ a : Branch K n, ∑ b : Branch K n,46        ((Fintype.card (Branch K n) : ℂ)⁻¹ * A a b) •47          ((tensorWord U n ((chainBranchEquiv K n).symm a)).conjTranspose *48            tensorWord U n ((chainBranchEquiv K n).symm b)) := by49  rw [blockChannel_adjoint_eq_tensor_polynomial]50  simp only [Finset.smul_sum, smul_smul]51  apply Fintype.sum_equiv (chainBranchEquiv K n)52  intro a53  apply Fintype.sum_equiv (chainBranchEquiv K n)54  intro b55  simp [outputMatrix, Branch, one_div]5657section Families58variable {J : Type} [Fintype J] [DecidableEq J]5960/-- The literal polynomial norm is the maximum of actual channel adjoint norms.61The word-evaluation premise is purely algebraic and is supplied by the concrete62tensor representation. -/63theorem finitePaired_norm_eq_block_adjoints64    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ))65    (W : Branch K n → unitary (Matrix (TensorChainIndex ι n) (TensorChainIndex ι n) ℂ))66    (hW : ∀ b, (W b : Matrix (TensorChainIndex ι n) (TensorChainIndex ι n) ℂ) =67      tensorWord U n ((chainBranchEquiv K n).symm b))68    (A : J → Matrix (Branch K n) (Branch K n) ℂ) :69    ‖InitialNetReduction.finitePaired W A‖ =70      ‖fun j => (BlockConstruction.blockChannel U n).adjointMap (outputMatrix (A j))‖ := by71  rw [InitialNetReduction.finitePaired_norm]72  congr 173  funext j74  rw [block_adjoint_eq_branch_polynomial]75  simp only [hW]7677end Families7879section Certificates80local instance (tests : Finset (ObservableSpace (Branch K n))) : DecidableEq tests := Classical.decEq _8182/-- A verified norm bound on the combined net polynomial gives a uniform83Hilbert--Schmidt to operator-norm certificate for the actual block channel. -/84theorem certificate_of_finitePaired_bound85    (U : ℕ → Fin K → unitary (Matrix ι ι ℂ))86    (W : Branch K n → unitary (Matrix (TensorChainIndex ι n) (TensorChainIndex ι n) ℂ))87    (hW : ∀ b, (W b : Matrix (TensorChainIndex ι n) (TensorChainIndex ι n) ℂ) =88      tensorWord U n ((chainBranchEquiv K n).symm b))89    (tests : Finset (ObservableSpace (Branch K n)))90    (δ C : ℝ) (hδ : 0 ≤ δ) (hδ1 : δ < 1) (hC : 0 ≤ C)91    (hnet : UnitSphereNet tests δ)92    (hbound : ‖InitialNetReduction.finitePaired W (fun j : tests => observableMatrix j.val)‖ ≤ C) :93    ∀ A : Matrix (ZMod (K^n)) (ZMod (K^n)) ℂ, A.IsHermitian → A.trace = 0 →94      ‖(BlockConstruction.blockChannel U n).adjointMap A‖ ≤95        (C / (1-δ)) * AdjointPurity.hsLength A := by96  classical97  let T := (BlockConstruction.blockChannel U n).reindex98    (Equiv.refl (TensorChainIndex ι n)) (branchToOutput K n).symm99  have hnorm : ‖fun j : tests => (BlockConstruction.blockChannel U n).adjointMap100      (outputMatrix (observableMatrix j.val))‖ ≤ C := by101    rw [← finitePaired_norm_eq_block_adjoints U W hW]102    exact hbound103  have htest : ∀ x ∈ tests, ‖adjointOnObservables T x‖ ≤ C := by104    intro x hx105    have hh := (norm_le_pi_norm (fun j : tests => (BlockConstruction.blockChannel U n).adjointMap106      (outputMatrix (observableMatrix j.val))) ⟨x,hx⟩).trans hnorm107    change ‖T.adjointMap (observableMatrix x)‖ ≤ C108    simpa only [T, reindex_output_adjointMap, outputMatrix] using hh109  have hall := matrix_certificate_of_observable_bound T (C/(1-δ)) (fun x =>110    norm_apply_le_of_unitSphereNet (adjointOnObservables T) hδ hδ1 hC hnet htest x)111  intro A hA htrace112  have ht : (A.submatrix (branchToOutput K n) (branchToOutput K n)).trace = 0 := by113    rw [trace_submatrix_equiv, htrace]114  have hh := hall (A.submatrix (branchToOutput K n) (branchToOutput K n))115    (hA.submatrix _) ht116  dsimp only [T] at hh117  rw [reindex_output_adjointMap, hsLength_submatrix_equiv] at hh118  have he : (A.submatrix (branchToOutput K n) (branchToOutput K n)).submatrix119      (branchToOutput K n).symm (branchToOutput K n).symm = A := by120    ext a b121    simp122  rwa [he] at hh123124end Certificates125end Nonadditivity.StructuredFiniteChannel