Exact Lean source
Nonadditivity.StructuredFiniteChannel
Download original .lean · View on GitHub · Jump to source
Direct imports
Imported by project modules
3 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
9 project constants, including generated, internal and private declarations.
9 declarations
Nonadditivity.FreeBridge.branchToOutput.congr_simpNonadditivity.StructuredFiniteChannel.block_adjoint_eq_branch_polynomialNonadditivity.StructuredFiniteChannel.branchToOutput_symm_outputNonadditivity.StructuredFiniteChannel.certificate_of_finitePaired_boundNonadditivity.StructuredFiniteChannel.finitePaired_norm_eq_block_adjointsNonadditivity.StructuredFiniteChannel.instDecidableEqSubtypeEntrySpaceBranchMemSubmoduleRealObservableSpaceFinsetNonadditivity.StructuredFiniteChannel.outputMatrixNonadditivity.StructuredFiniteChannel.outputMatrix.congr_simpNonadditivity.StructuredFiniteChannel.outputMatrix.eq_1internal/detail/private
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) ℂ) :30Matrix (ZMod (K^n)) (ZMod (K^n)) ℂ :=31A.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) =35chainBranchEquiv K n a := by36apply (branchToOutput K n).injective37simp3839/-- 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 *48tensorWord U n ((chainBranchEquiv K n).symm b)) := by49rw [blockChannel_adjoint_eq_tensor_polynomial]50simp only [Finset.smul_sum, smul_smul]51apply Fintype.sum_equiv (chainBranchEquiv K n)52intro a53apply Fintype.sum_equiv (chainBranchEquiv K n)54intro b55simp [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) ℂ) =67tensorWord 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))‖ := by71rw [InitialNetReduction.finitePaired_norm]72congr 173funext j74rw [block_adjoint_eq_branch_polynomial]75simp 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) ℂ) =88tensorWord 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 := by96classical97let T := (BlockConstruction.blockChannel U n).reindex98(Equiv.refl (TensorChainIndex ι n)) (branchToOutput K n).symm99have hnorm : ‖fun j : tests => (BlockConstruction.blockChannel U n).adjointMap100(outputMatrix (observableMatrix j.val))‖ ≤ C := by101rw [← finitePaired_norm_eq_block_adjoints U W hW]102exact hbound103have htest : ∀ x ∈ tests, ‖adjointOnObservables T x‖ ≤ C := by104intro x hx105have hh := (norm_le_pi_norm (fun j : tests => (BlockConstruction.blockChannel U n).adjointMap106(outputMatrix (observableMatrix j.val))) ⟨x,hx⟩).trans hnorm107change ‖T.adjointMap (observableMatrix x)‖ ≤ C108simpa only [T, reindex_output_adjointMap, outputMatrix] using hh109have hall := matrix_certificate_of_observable_bound T (C/(1-δ)) (fun x =>110norm_apply_le_of_unitSphereNet (adjointOnObservables T) hδ hδ1 hC hnet htest x)111intro A hA htrace112have ht : (A.submatrix (branchToOutput K n) (branchToOutput K n)).trace = 0 := by113rw [trace_submatrix_equiv, htrace]114have hh := hall (A.submatrix (branchToOutput K n) (branchToOutput K n))115(hA.submatrix _) ht116dsimp only [T] at hh117rw [reindex_output_adjointMap, hsLength_submatrix_equiv] at hh118have he : (A.submatrix (branchToOutput K n) (branchToOutput K n)).submatrix119(branchToOutput K n).symm (branchToOutput K n).symm = A := by120ext a b121simp122rwa [he] at hh123124end Certificates125end Nonadditivity.StructuredFiniteChannel