Definitions for Information preserving structures: A general framework for quantum zero-error information
DefinitionQAlgorithms_Papers_Independent_Intake100_P70The objects the formalized statements of Information preserving structures: A general framework for quantum zero-error information (arXiv:1006.1358) are stated in. Each was checked against the paper by a blind read-back and a moderator.
IsCode: PDF pp.2,6–7: convex sets of normalized density matrices; empty codes are allowed.weighted: PDF p.5: the weighted difference with prior p.Preserved: PDF p.7, Definition 7: every pair, every prior, including endpoints.IsCodeIsometry: PDF p.5, Definition 4: complex-linear span identification, bijective on codes, preserving weighted trace norms. An ambient linear extension exists in finite dimension.OneIsometric: PDF p.5: existence of a 1-isometry between normalized code sets.MaximumCode: PDF p.2, Definition 3: maximum in the isometric order, not inclusion-maximal.powerMixture: PDF pp.7,21: arbitrary probability mixtures of nonnegative powers including E^0. For CPTP E, summability follows from finite-dimensional power boundedness and HasSum q 1.Noiseless: PDF p.7, Definition 8: preserved by every probability mixture of powers.CorrectableCode: PDF p.7, Definition 9: recovery makes the code noiseless, not definitionally fixed.UnitarilyNoiseless: PDF p.13, Definition 12: preserved by every individual power, including zero.fixedOperators: PDF pp.8–9: all fixed operators, without a state restriction.statePart: PDF p.25, footnote 12: only positive trace-1 matrices in the specified space.fixedStates: PDF pp.8,22: all fixed density matrices.CornerSupported: PDF p.21: two-sided corner support, including non-Hermitian operators.jointSupport: PDF pp.8,22: least joint physical support, computed from a finite basis of the complex operator span. The resulting projection is basis independent.codeSupport: PDF p.8: support of the whole code.fixedSupport: PDF p.9: support of all fixed operators, not a chosen fixed density.CornerInvariant: PDF p.9(i): invariance of the entire operator corner.FullRankOn: PDF p.21: full rank relative to P, not relative to the ambient space.supportInvSqrt: PDF pp.8,20: support inverse square root, zero on the kernel.transposeRecovery: PDF p.8, Eq.(6): raw transpose recovery on supp(E(P)); no ambient TP claim.fullTransposeRecovery: PDF pp.15,17: full-input transpose recovery, with an explicit maximally mixed replacement on ker E(I). On the channel image it equals the printed formula.cornerAdjoint: PDF p.9(ii): restricted adjoint on B(P0), represented inside the ambient space.cornerAlgebra: PDF p.9(ii): the computed corner fixed algebra.IsMatrixAlgebra: PDF p.8: concrete complex star algebra, with support unit P and zero complement.BlockModel: PDF pp.8,23, Eqs.(7),(B4): orthogonal embedded nonzero tensor sectors. The remaining physical orthogonal complement is allowed.BlockModel.support: PDF p.23: support projection of the sector sum.BlockModel.blockSpace: PDF pp.9,23: arbitrary logical matrices tensored with specified gauge factors.BlockModel.algebra: PDF p.8, Eq.(7): full matrix factors tensored with unnormalized identities.BlockModel.DistortionFactors: PDF p.9, Definition 10: TP distortion normalization Tr(tau_k)=dim(B_k), excluding zero factors. Density gauge formulas use normalized factors instead.BlockModel.gaugeCode: PDF pp.9,25: all probability weights and all logical density matrices, with one density gauge per sector independent of the chosen logical states.IsFixedDecomposition: PDF pp.9,23: coordinates for the computed fixed-support adjoint algebra.cesaroAverage: PDF p.22: actual Cesaro average through power N, starting at n=0.rotatingSpace: PDF pp.16,26: complex span of all unit-modulus eigenoperators; a rotating point need not itself be an eigenoperator.operatorHSNorm: PDF p.27: Hilbert–Schmidt norm, not the entrywise infinity norm.RotatingRecurrence: PDF pp.27–28: strict induced Hilbert–Schmidt norm bound on Rot(E). A common real bound c is chosen before every operator.IsPeripheralProjection: PDF p.28: CPTP idempotent limit along unbounded positive powers, with range and fixed space Rot(E). Pointwise matrix convergence and superoperator-norm convergence are equivalent here by finite dimensionality.IsJordanChain: PDF p.27, Eq.(B9): a Jordan chain already transported to physical coordinates by the similarity. No orthogonality or spectral nondegeneracy is assumed.ProjectiveMeasurement: PDF p.15, Definition 15: projective partitions; zero outcomes are allowed.UnconditionalMeasurement: PDF p.15: exact POVM simulation on EVERY physical input density matrix.helstromPartition: PDF pp.5,15: positive, negative AND zero spectral projectors of Delta.UnconditionalCode: PDF p.15, Definition 16: unconditional simulation of every weighted Helstrom partition. Convexity and normalization belong to the separate code assumption.UnconditionalStructure: PDF pp.15–17: a common algebraic structure containing all unconditional codes up to isometry, including every maximum code as its full state shape.Subsystem: PDF pp.4,17: specified nonzero A tensor B sector embedded in physical H.Subsystem.support: PDF p.17: subsystem support projection.Subsystem.logical: PDF pp.4,17: subnormalized logical marginal, retaining sector population.StrictNoiselessSubsystem: PDF p.4, Eqs.(3)–(5): strict noiselessness, including confinement to the sector.InitializationFree: PDF pp.17–18: no perfect-initialization hypothesis; arbitrary outside population and off-diagonal coherences are retained.UnconditionalSubsystem: PDF pp.17–18: all logical projective measurements, each supplemented by the outside-sector outcome; this concerns every gauge, not one rank-deficient gauge code.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
/-! arXiv:1006.1358v1. All page numbers are PDF pages.
Paper-local definitions have complete bodies. Compilation is pending batch handoff. -/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder
open Filter
namespace QAlgorithms.Papers.Independent.Intake100.P70
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms.Papers.Independent.Dependency50.P21 (channelAdjoint)
open QAlgorithms.Papers.Independent.Information100.P07 (positivePart negativePart)
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P34 (supportProjector)
/-- PDF pp.2,6–7: convex sets of normalized density matrices; empty codes are allowed. -/
def IsCode {I : Type*} [Fintype I] (C : Set (Op I)) : Prop :=
Convex ℝ C ∧ ∀ X ∈ C, IsDensityMatrix X
/-- PDF p.5: the weighted difference with prior p. -/
def weighted {I : Type*} (p : ℝ) (X Y : Op I) : Op I :=
(p : ℂ) • X - ((1 - p : ℝ) : ℂ) • Y
/-- PDF p.7, Definition 7: every pair, every prior, including endpoints. -/
def Preserved {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
(E : Superop I J) (C : Set (Op I)) : Prop :=
∀ X ∈ C, ∀ Y ∈ C, ∀ p ∈ Set.Icc (0 : ℝ) 1,
traceNorm (E (weighted p X Y)) = traceNorm (weighted p X Y)
/-- PDF p.5, Definition 4: complex-linear span identification, bijective on codes,
preserving weighted trace norms. An ambient linear extension exists in finite dimension. -/
def IsCodeIsometry {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (f : Superop I J)
(C : Set (Op I)) (D : Set (Op J)) : Prop :=
(∃ L : Op I →ₗ[ℂ] Op J, ∀ X, L X = f X) ∧
(∀ X ∈ Submodule.span ℂ C, f X = 0 → X = 0) ∧ f '' C = D ∧
∀ X ∈ C, ∀ Y ∈ C, ∀ p ∈ Set.Icc (0 : ℝ) 1,
traceNorm (weighted p (f X) (f Y)) = traceNorm (weighted p X Y)
/-- PDF p.5: existence of a 1-isometry between normalized code sets. -/
def OneIsometric {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (C : Set (Op I)) (D : Set (Op J)) : Prop :=
∃ f : Superop I J, IsCodeIsometry f C D
/-- PDF p.2, Definition 3: maximum in the isometric order, not inclusion-maximal. -/
def MaximumCode {I : Type*} [Fintype I] [DecidableEq I]
(criterion : Set (Op I) → Prop) (C : Set (Op I)) : Prop :=
IsCode C ∧ criterion C ∧ ∀ D : Set (Op I), IsCode D → criterion D →
∀ S : Set (Op I), S ⊂ D → ¬ OneIsometric C S
/-- PDF pp.7,21: arbitrary probability mixtures of nonnegative powers including E^0.
For CPTP E, summability follows from finite-dimensional power boundedness and HasSum q 1. -/
def powerMixture {I : Type*} [Fintype I] (E : Superop I I) (q : ℕ → ℝ) : Superop I I :=
fun X => ∑' n : ℕ, (q n : ℂ) • (E^[n]) X
/-- PDF p.7, Definition 8: preserved by every probability mixture of powers. -/
def Noiseless {I : Type*} [Fintype I] [DecidableEq I]
(E : Superop I I) (C : Set (Op I)) : Prop :=
∀ q : ℕ → ℝ, (∀ n, 0 ≤ q n) → HasSum q 1 → Preserved (powerMixture E q) C
/-- PDF p.7, Definition 9: recovery makes the code noiseless, not definitionally fixed. -/
def CorrectableCode {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (E : Superop I J) (C : Set (Op I)) : Prop :=
∃ R : Superop J I, IsChannel R ∧ Noiseless (R ∘ E) C
/-- PDF p.13, Definition 12: preserved by every individual power, including zero. -/
def UnitarilyNoiseless {I : Type*} [Fintype I] [DecidableEq I]
(E : Superop I I) (C : Set (Op I)) : Prop := ∀ n : ℕ, Preserved (E^[n]) C
/-- PDF pp.8–9: all fixed operators, without a state restriction. -/
def fixedOperators {I : Type*} (E : Superop I I) : Set (Op I) := {X | E X = X}
/-- PDF p.25, footnote 12: only positive trace-1 matrices in the specified space. -/
def statePart {I : Type*} [Fintype I] (A : Set (Op I)) : Set (Op I) :=
{X | IsDensityMatrix X ∧ X ∈ A}
/-- PDF pp.8,22: all fixed density matrices. -/
def fixedStates {I : Type*} [Fintype I] (E : Superop I I) : Set (Op I) :=
statePart (fixedOperators E)
/-- PDF p.21: two-sided corner support, including non-Hermitian operators. -/
def CornerSupported {I : Type*} [Fintype I] (P X : Op I) : Prop := P * X * P = X
/-- PDF pp.8,22: least joint physical support, computed from a finite basis of
the complex operator span. The resulting projection is basis independent. -/
def jointSupport {I : Type*} [Fintype I] [DecidableEq I] (A : Set (Op I)) : Op I :=
let V := Submodule.span ℂ A
let b := Module.finBasis ℂ V
supportProjector (∑ i, (((b i : V) : Op I) * ((b i : V) : Op I)ᴴ +
((b i : V) : Op I)ᴴ * ((b i : V) : Op I)))
/-- PDF p.8: support of the whole code. -/
def codeSupport {I : Type*} [Fintype I] [DecidableEq I] (C : Set (Op I)) : Op I :=
jointSupport C
/-- PDF p.9: support of all fixed operators, not a chosen fixed density. -/
def fixedSupport {I : Type*} [Fintype I] [DecidableEq I] (E : Superop I I) : Op I :=
jointSupport (fixedOperators E)
/-- PDF p.9(i): invariance of the entire operator corner. -/
def CornerInvariant {I : Type*} [Fintype I] (E : Superop I I) (P : Op I) : Prop :=
∀ X, CornerSupported P X → CornerSupported P (E X)
/-- PDF p.21: full rank relative to P, not relative to the ambient space. -/
def FullRankOn {I : Type*} [Fintype I] (P X : Op I) : Prop :=
∀ v : I → ℂ, P.mulVec v = v → X.mulVec v = 0 → v = 0
/-- PDF pp.8,20: support inverse square root, zero on the kernel. -/
def supportInvSqrt {I : Type*} [Fintype I] [DecidableEq I] (X : Op I) : Op I :=
cfc (fun t : ℝ => (Real.sqrt t)⁻¹) X
/-- PDF p.8, Eq.(6): raw transpose recovery on supp(E(P)); no ambient TP claim. -/
def transposeRecovery {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (E : Superop I J) (P : Op I) : Superop J I :=
fun X => P * channelAdjoint E (supportInvSqrt (E P) * X * supportInvSqrt (E P)) * P
/-- PDF pp.15,17: full-input transpose recovery, with an explicit maximally mixed
replacement on ker E(I). On the channel image it equals the printed formula. -/
def fullTransposeRecovery {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (E : Superop I J) : Superop J I :=
fun X => transposeRecovery E 1 X + (((1 - supportProjector (E 1)) * X).trace) •
(((Fintype.card I : ℂ)⁻¹) • (1 : Op I))
/-- PDF p.9(ii): restricted adjoint on B(P0), represented inside the ambient space. -/
def cornerAdjoint {I : Type*} [Fintype I] [DecidableEq I]
(E : Superop I I) : Superop I I :=
let P := fixedSupport E
fun X => P * channelAdjoint E (P * X * P) * P
/-- PDF p.9(ii): the computed corner fixed algebra. -/
def cornerAlgebra {I : Type*} [Fintype I] [DecidableEq I]
(E : Superop I I) : Set (Op I) :=
{X | CornerSupported (fixedSupport E) X ∧ cornerAdjoint E X = X}
/-- PDF p.8: concrete complex star algebra, with support unit P and zero complement. -/
def IsMatrixAlgebra {I : Type*} [Fintype I] (P : Op I) (A : Set (Op I)) : Prop :=
P ∈ A ∧ (0 : Op I) ∈ A ∧ (∀ X ∈ A, CornerSupported P X) ∧
(∀ X ∈ A, ∀ Y ∈ A, X + Y ∈ A) ∧ (∀ z : ℂ, ∀ X ∈ A, z • X ∈ A) ∧
(∀ X ∈ A, ∀ Y ∈ A, X * Y ∈ A) ∧ (∀ X ∈ A, Xᴴ ∈ A)
/-- PDF pp.8,23, Eqs.(7),(B4): orthogonal embedded nonzero tensor sectors.
The remaining physical orthogonal complement is allowed. -/
structure BlockModel (I : Type*) [Fintype I] where
sectors : ℕ
logicalDim : Fin sectors → ℕ
gaugeDim : Fin sectors → ℕ
logical_pos : ∀ k, 0 < logicalDim k
gauge_pos : ∀ k, 0 < gaugeDim k
embed : (k : Fin sectors) → Matrix I (Fin (logicalDim k) × Fin (gaugeDim k)) ℂ
isometry : ∀ k, (embed k)ᴴ * embed k = 1
orthogonal : ∀ k l, k ≠ l → (embed k)ᴴ * embed l = 0
/-- PDF p.23: support projection of the sector sum. -/
def BlockModel.support {I : Type*} [Fintype I] (B : BlockModel I) : Op I :=
∑ k, B.embed k * (B.embed k)ᴴ
/-- PDF pp.9,23: arbitrary logical matrices tensored with specified gauge factors. -/
def BlockModel.blockSpace {I : Type*} [Fintype I] (B : BlockModel I)
(tau : (k : Fin B.sectors) → Op (Fin (B.gaugeDim k))) : Set (Op I) :=
Set.range fun X : (k : Fin B.sectors) → Op (Fin (B.logicalDim k)) =>
∑ k, B.embed k * Matrix.kronecker (X k) (tau k) * (B.embed k)ᴴ
/-- PDF p.8, Eq.(7): full matrix factors tensored with unnormalized identities. -/
def BlockModel.algebra {I : Type*} [Fintype I] (B : BlockModel I) : Set (Op I) :=
B.blockSpace (fun _ => 1)
/-- PDF p.9, Definition 10: TP distortion normalization Tr(tau_k)=dim(B_k),
excluding zero factors. Density gauge formulas use normalized factors instead. -/
def BlockModel.DistortionFactors {I : Type*} [Fintype I] (B : BlockModel I)
(tau : (k : Fin B.sectors) → Op (Fin (B.gaugeDim k))) : Prop :=
∀ k, (tau k).PosSemidef ∧ (tau k).trace = (B.gaugeDim k : ℂ)
/-- PDF pp.9,25: all probability weights and all logical density matrices, with
one density gauge per sector independent of the chosen logical states. -/
def BlockModel.gaugeCode {I : Type*} [Fintype I] (B : BlockModel I)
(tau : (k : Fin B.sectors) → Op (Fin (B.gaugeDim k))) : Set (Op I) :=
{rho | ∃ p : Fin B.sectors → ℝ, (∀ k, 0 ≤ p k) ∧ (∑ k, p k) = 1 ∧
∃ X : (k : Fin B.sectors) → Op (Fin (B.logicalDim k)),
(∀ k, IsDensityMatrix (X k)) ∧ rho = ∑ k, (p k : ℂ) •
(B.embed k * Matrix.kronecker (X k) (tau k) * (B.embed k)ᴴ)}
/-- PDF pp.9,23: coordinates for the computed fixed-support adjoint algebra. -/
def IsFixedDecomposition {I : Type*} [Fintype I] [DecidableEq I]
(E : Superop I I) (B : BlockModel I) : Prop :=
B.support = fixedSupport E ∧ B.algebra = cornerAlgebra E
/-- PDF p.22: actual Cesaro average through power N, starting at n=0. -/
def cesaroAverage {I : Type*} [Fintype I] (E : Superop I I) (N : ℕ) : Superop I I :=
fun X => ((N + 1 : ℕ) : ℂ)⁻¹ • ∑ n ∈ Finset.range (N + 1), (E^[n]) X
/-- PDF pp.16,26: complex span of all unit-modulus eigenoperators; a rotating
point need not itself be an eigenoperator. -/
def rotatingSpace {I : Type*} (E : Superop I I) : Submodule ℂ (Op I) :=
Submodule.span ℂ {X | ∃ z : ℂ, ‖z‖ = 1 ∧ E X = z • X}
/-- PDF p.27: Hilbert–Schmidt norm, not the entrywise infinity norm. -/
def operatorHSNorm {I : Type*} [Fintype I] (X : Op I) : ℝ :=
Real.sqrt (∑ i, ∑ j, Complex.normSq (X i j))
/-- PDF pp.27–28: strict induced Hilbert–Schmidt norm bound on Rot(E).
A common real bound c is chosen before every operator. -/
def RotatingRecurrence {I : Type*} [Fintype I]
(E : Superop I I) (N : ℕ) (eps : ℝ) : Prop :=
∃ c : ℝ, 0 ≤ c ∧ c < eps ∧ ∀ X ∈ rotatingSpace E,
operatorHSNorm ((E^[N]) X - X) ≤ c * operatorHSNorm X
/-- PDF p.28: CPTP idempotent limit along unbounded positive powers, with range
and fixed space Rot(E). Pointwise matrix convergence and superoperator-norm
convergence are equivalent here by finite dimensionality. -/
def IsPeripheralProjection {I : Type*} [Fintype I] [DecidableEq I]
(E F : Superop I I) : Prop :=
IsChannel F ∧ (∀ X, F (F X) = F X) ∧
Set.range F = (rotatingSpace E : Set (Op I)) ∧
fixedOperators F = (rotatingSpace E : Set (Op I)) ∧
∃ m : ℕ → ℕ, (∀ n, 0 < m n) ∧ Tendsto m atTop atTop ∧
∀ X, Tendsto (fun n => (E^[m n]) X) atTop (nhds (F X))
/-- PDF p.27, Eq.(B9): a Jordan chain already transported to physical coordinates
by the similarity. No orthogonality or spectral nondegeneracy is assumed. -/
def IsJordanChain {I : Type*} {m : ℕ} (E : Superop I I)
(z : ℂ) (v : Fin m → Op I) : Prop :=
LinearIndependent ℂ v ∧ ∀ i : Fin m, E (v i) = z • v i +
(if h : i.val = 0 then 0 else v ⟨i.val - 1, by omega⟩)
/-- PDF p.15, Definition 15: projective partitions; zero outcomes are allowed. -/
def ProjectiveMeasurement {I O : Type*} [Fintype I] [Fintype O]
[DecidableEq I] (P : O → Op I) : Prop :=
(∀ k, (P k)ᴴ = P k ∧ P k * P k = P k) ∧
(∀ k l, k ≠ l → P k * P l = 0) ∧ ∑ k, P k = 1
/-- PDF p.15: exact POVM simulation on EVERY physical input density matrix. -/
def UnconditionalMeasurement {I J O : Type*} [Fintype I] [Fintype J] [Fintype O]
[DecidableEq J] (E : Superop I J) (P : O → Op I) : Prop :=
∃ Q : O → Op J, (∀ k, (Q k).PosSemidef) ∧ (∑ k, Q k) = 1 ∧
∀ rho, IsDensityMatrix rho → ∀ k, (P k * rho).trace = (Q k * E rho).trace
/-- PDF pp.5,15: positive, negative AND zero spectral projectors of Delta. -/
def helstromPartition {I : Type*} [Fintype I] [DecidableEq I] (X : Op I) : Fin 3 → Op I :=
![cfc (fun t : ℝ => if 0 < t then 1 else 0) X,
cfc (fun t : ℝ => if t < 0 then 1 else 0) X,
cfc (fun t : ℝ => if t = 0 then 1 else 0) X]
/-- PDF p.15, Definition 16: unconditional simulation of every weighted Helstrom
partition. Convexity and normalization belong to the separate code assumption. -/
def UnconditionalCode {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (E : Superop I J) (C : Set (Op I)) : Prop :=
∀ X ∈ C, ∀ Y ∈ C, ∀ p ∈ Set.Icc (0 : ℝ) 1,
UnconditionalMeasurement E (helstromPartition (weighted p X Y))
/-- PDF pp.15–17: a common algebraic structure containing all unconditional
codes up to isometry, including every maximum code as its full state shape. -/
def UnconditionalStructure {I J : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (E : Superop I J) (A : Set (Op I)) : Prop :=
IsMatrixAlgebra 1 A ∧ IsCode (statePart A) ∧ UnconditionalCode E (statePart A) ∧
(∀ C, IsCode C → UnconditionalCode E C →
∃ D : Set (Op I), D ⊆ statePart A ∧ OneIsometric C D) ∧
∀ C, MaximumCode (UnconditionalCode E) C → OneIsometric C (statePart A)
/-- PDF pp.4,17: specified nonzero A tensor B sector embedded in physical H. -/
structure Subsystem (I : Type*) [Fintype I] where
logicalDim : ℕ
gaugeDim : ℕ
logical_pos : 0 < logicalDim
gauge_pos : 0 < gaugeDim
embed : Matrix I (Fin logicalDim × Fin gaugeDim) ℂ
isometry : embedᴴ * embed = 1
/-- PDF p.17: subsystem support projection. -/
def Subsystem.support {I : Type*} [Fintype I] (S : Subsystem I) : Op I :=
S.embed * S.embedᴴ
/-- PDF pp.4,17: subnormalized logical marginal, retaining sector population. -/
def Subsystem.logical {I : Type*} [Fintype I] (S : Subsystem I) (X : Op I) :
Op (Fin S.logicalDim) := traceRight (S.embedᴴ * X * S.embed)
/-- PDF p.4, Eqs.(3)–(5): strict noiselessness, including confinement to the sector. -/
def StrictNoiselessSubsystem {I : Type*} [Fintype I]
(E : Superop I I) (S : Subsystem I) : Prop :=
∀ rho, IsDensityMatrix rho → CornerSupported S.support rho →
CornerSupported S.support (E rho) ∧ S.logical (E rho) = S.logical rho
/-- PDF pp.17–18: no perfect-initialization hypothesis; arbitrary outside
population and off-diagonal coherences are retained. -/
def InitializationFree {I : Type*} [Fintype I]
(E : Superop I I) (S : Subsystem I) : Prop :=
∀ rho, IsDensityMatrix rho → S.logical (E rho) = S.logical rho
/-- PDF pp.17–18: all logical projective measurements, each supplemented by the
outside-sector outcome; this concerns every gauge, not one rank-deficient gauge code. -/
def UnconditionalSubsystem {I : Type*} [Fintype I] [DecidableEq I]
(E : Superop I I) (S : Subsystem I) : Prop :=
∀ m : ℕ, ∀ P : Fin m → Op (Fin S.logicalDim), ProjectiveMeasurement P →
UnconditionalMeasurement E (fun k : Option (Fin m) => match k with
| none => 1 - S.support
| some j => S.embed * Matrix.kronecker (P j) (1 : Op (Fin S.gaugeDim)) * S.embedᴴ)
/-- Sanity: the endpoint p=0 retains the entire second state, PDF p.5. -/
example {I : Type*} (X Y : Op I) : weighted 0 X Y = -Y := by
simp [weighted]
/-- Sanity: identity dynamics preserve every weighted difference, PDF p.2. -/
example {I : Type*} [Fintype I] [DecidableEq I] (C : Set (Op I)) :
Preserved (fun X : Op I => X) C := by
intro X hX Y hY p hp
rfl
/-- Sanity: zero support contains only zero, PDF p.21. -/
example {I : Type*} [Fintype I] (X : Op I) : CornerSupported 0 X ↔ X = 0 := by
simp [CornerSupported, eq_comm]
/-- Sanity: the imported positive and negative spectral parts vanish at zero, PDF p.21. -/
example {I : Type*} [Fintype I] [DecidableEq I] :
positivePart (0 : Op I) = 0 ∧ negativePart (0 : Op I) = 0 := by
simp [positivePart, negativePart, cfc_zero]
/-- Sanity: at N=0 the Cesaro average is identity, PDF p.22. -/
example {I : Type*} [Fintype I] (E : Superop I I) (X : Op I) :
cesaroAverage E 0 X = X := by
simp [cesaroAverage]
end QAlgorithms.Papers.Independent.Intake100.P70
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.DistortionFactors
For a finite type , a block model with sectors, positive dimensions , and mutually orthogonal isometric embeddings , and a family of complex matrices , this predicate means that every is positive semidefinite and has complex trace exactly . If , the predicate holds vacuously.
QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.algebra
For a finite type and a block model with sectors, positive dimensions , and embeddings satisfying and for distinct sectors, its algebra is the set
Here is the Kronecker product and is conjugate transpose. With zero sectors this set is .
QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.blockSpace
For a finite type , a block model with sectors, positive dimensions , and embeddings satisfying and for , and an arbitrary family of complex matrices , the block space is the set
The symbol denotes the Kronecker product. No positivity or normalization condition is imposed on either family. With zero sectors this set is .
QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.gaugeCode
For a finite type , a block model with sectors, positive dimensions , and mutually orthogonal isometric embeddings , and an arbitrary family of complex matrices , its gauge code is the set of matrices for which there exist real numbers with , and complex matrices that are positive semidefinite with trace , such that
No positivity or trace condition on the is part of this definition. With zero sectors the set is empty, because the empty sum of weights cannot equal .
QAlgorithms.Papers.Independent.Intake100.P70.BlockModel
For a finite type , a block model consists of a natural number of sectors; positive natural numbers and for each ; and complex matrices whose rows are indexed by and whose columns are indexed by , satisfying for every , and whenever . Here denotes conjugate transpose. There is no requirement that the ranges of the span the whole ambient space. Zero sectors are allowed, in which case all sector conditions are vacuous; the ambient type may also be empty.
QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.support
For a finite type and a block model with sectors, positive logical and gauge dimensions , and embeddings satisfying and for distinct sectors, its support is the matrix
The sum is zero when ; no equality of this sum with the ambient identity is required.
QAlgorithms.Papers.Independent.Intake100.P70.CornerInvariant
For any finite type , any function , and any matrix , this defines the condition
Neither linearity of nor any projection property of is assumed. If , the condition is exactly ; if is empty, it holds automatically.
QAlgorithms.Papers.Independent.Intake100.P70.CornerSupported
For any finite type and any complex matrices indexed by , this defines the condition . There is no assumption that is a projection or that is Hermitian or positive. Empty is allowed, in which case the equality holds for the unique matrices.
QAlgorithms.Papers.Independent.Intake100.P70.CorrectableCode
For any finite types with decidable equality, any function from complex matrices to complex matrices, and any set of complex matrices, this predicate means that there exists a function in the reverse direction admitting a finite Kraus representation: for some and complex matrices with rows indexed by and columns by ,
This same must satisfy, for every nonnegative real sequence whose series converges to , all , and every ,
The zeroth iterate is the identity, the trace norm is using functional calculus, and nonsummable matrix series are assigned zero. The function is arbitrary, and is not required to be convex or contain density matrices. Empty index types and are included subject to the displayed equations; when is empty, the preservation condition is vacuous but the existence of is still required.
QAlgorithms.Papers.Independent.Intake100.P70.FullRankOn
For any finite type and any matrices , this defines the condition that every vector satisfying both and must be zero. Thus it concerns the intersection of the fixed-vector space of with the kernel of , without assuming that is a projection or that is positive. It holds vacuously if has no nonzero fixed vector, including when , and also when is empty.
QAlgorithms.Papers.Independent.Intake100.P70.InitializationFree
For a finite type , an arbitrary function , and a subsystem with positive dimensions and embedding matrix satisfying , this property means that, for every positive semidefinite matrix of trace one and every , . This quantification includes density matrices with support outside the range of ; no support condition on , and no channel or linearity assumption on , is included.
QAlgorithms.Papers.Independent.Intake100.P70.IsCode
For any finite type and set of complex matrices indexed by , this predicate means that is convex over and every is positive semidefinite with . Thus whenever , , and . The empty set satisfies the predicate. The index type may be empty; in that case no matrix has trace , so only the empty set satisfies it.
QAlgorithms.Papers.Independent.Intake100.P70.IsCodeIsometry
For any finite types with decidable equality, any function from complex matrices to complex matrices, and any sets of matrices on , respectively, this predicate means all of the following: there exists a complex-linear map such that for every matrix ; every in the complex linear span of satisfying equals ; the image is exactly ; and, for every and ,
The square root is defined by functional calculus. Neither set is required to be convex or to consist of density matrices, and empty index types are allowed. If , this predicate holds exactly when is complex-linear and .
QAlgorithms.Papers.Independent.Intake100.P70.IsFixedDecomposition
For a finite type with decidable equality, an arbitrary function from complex matrices to themselves, and a block model with positive sector dimensions and mutually orthogonal isometric embeddings , this predicate asserts the following two equalities. To define their right-hand sides, let be the complex linear span of all matrices satisfying , take the finite basis of selected by the definition, and let be the orthogonal projection onto the range, acting on , of
For any matrix , define the matrix by
where has entry at and zero elsewhere. The required equalities are
There is no assumption here that is linear or a channel. Empty and zero sectors are included whenever the block-model data exist; empty sums are zero.
QAlgorithms.Papers.Independent.Intake100.P70.IsJordanChain
For any type , any natural number , any function , any complex number , and any family of complex matrices indexed by , this property means that the family is linearly independent over and that when , while for every . There is no finiteness assumption on , no linearity assumption on , and no restriction on . When , both conditions hold vacuously.
QAlgorithms.Papers.Independent.Intake100.P70.IsMatrixAlgebra
For a finite type , a complex matrix indexed by , and a set of such matrices, this predicate means that , , every satisfies , and is closed under addition, multiplication by every complex scalar, matrix multiplication, and conjugate transpose. No separate assumption that is Hermitian or idempotent appears in this definition. The finite type may be empty.
QAlgorithms.Papers.Independent.Intake100.P70.IsPeripheralProjection
For a finite type with decidable equality and arbitrary functions , this property means the following. Define to be the complex linear span of all matrices for which there exists with and . Then has a finite Kraus representation: there are and matrices such that and for every matrix ; moreover, for every , its range is exactly , and . Finally, there is one sequence , with for every and , such that, for every matrix , , where the exponent denotes repeated composition. No channel or linearity assumption is imposed on , and is allowed to be empty.
QAlgorithms.Papers.Independent.Intake100.P70.MaximumCode
For any finite type with decidable equality, any predicate on sets of complex matrices, and any such set , this predicate means that is real-convex, every member of is positive semidefinite with trace , and holds; moreover, for every real-convex set of positive semidefinite trace- matrices satisfying , and every proper subset , there is no function on the ambient matrix space which agrees everywhere with a complex-linear map, has zero kernel on the complex span of , maps onto , and obeys
for all and . Here , using functional calculus. The subset itself is not required to be convex or satisfy . Empty , , and are included wherever these conditions permit them.
QAlgorithms.Papers.Independent.Intake100.P70.Noiseless
For any finite type with decidable equality, any function on complex matrices, and any set of such matrices, this predicate means that for every real sequence with for all and , every , and every ,
Here is the identity, uses functional calculus, and a nonsummable matrix series is assigned the zero matrix. The scalar series for is required to converge to , but no separate matrix-series convergence hypothesis is supplied. The function is arbitrary and need not be a convex set of density matrices. Empty is allowed, and the predicate is vacuous for empty .
QAlgorithms.Papers.Independent.Intake100.P70.OneIsometric
For any finite types with decidable equality and sets of complex matrices on , respectively, this predicate means that there exists a function between these matrix spaces which agrees everywhere with a complex-linear map, satisfies for every in the complex linear span of , has image , and satisfies
for every and real , where , using functional calculus for the square root. The sets need not be convex or contain density matrices. Empty index types are allowed; if , the predicate holds exactly when .
QAlgorithms.Papers.Independent.Intake100.P70.Preserved
For any finite types , each equipped with decidable equality, any function from complex matrices to complex matrices, and any set of complex matrices, this predicate means that, for every and every real ,
where , with the square root defined by functional calculus. The function is arbitrary, and need not consist of density matrices or be convex. Empty index types are allowed, and the condition is vacuous when .
QAlgorithms.Papers.Independent.Intake100.P70.ProjectiveMeasurement
For finite types , with decidable equality on , and a family , this property means that every is Hermitian and idempotent, that whenever , and that . Individual projections may be zero. The index types may be empty; if is empty, the sum condition requires the zero matrix to equal the identity, which holds precisely when is empty.
QAlgorithms.Papers.Independent.Intake100.P70.RotatingRecurrence
For a finite type , an arbitrary function from complex matrices to themselves, a natural number , and a real number , this predicate means that there exists a real number with such that every matrix in the complex linear span of the matrices satisfying for some complex with obeys
No linearity or channel condition is imposed on . The witness condition is impossible when . The case is included, with the identity; for this case the predicate holds exactly when . Empty is also included, with both displayed norms equal to zero.
QAlgorithms.Papers.Independent.Intake100.P70.StrictNoiselessSubsystem
For a finite type , an arbitrary function , and a subsystem with positive dimensions and embedding matrix satisfying , put . This property means that every positive semidefinite matrix of trace one satisfying also satisfies , and, for every , . There is no requirement on density matrices outside this supported set, and is not assumed to be a channel or linear.
QAlgorithms.Papers.Independent.Intake100.P70.Subsystem.logical
For a finite type , a subsystem with positive dimensions and embedding matrix satisfying , and any matrix , this definition returns the matrix whose -entry is . In other words, it compresses using and sums over the gauge coordinate. No positivity, trace, or support assumption is imposed on .
QAlgorithms.Papers.Independent.Intake100.P70.Subsystem
For a finite type , a subsystem consists of two natural numbers , proofs that and , and a complex matrix with rows indexed by and columns indexed by , satisfying . Thus its columns form an orthonormal family. There is no requirement that . Although the definition allows any finite , no such subsystem exists when is empty, because both column dimensions are positive.
QAlgorithms.Papers.Independent.Intake100.P70.Subsystem.support
For a finite type and a subsystem consisting of positive natural dimensions and an embedding matrix satisfying , this definition returns the matrix , the orthogonal projection onto the range of .
QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalCode
For finite types with decidable equality, an arbitrary function , and any set , this property means that for every and every real , the following holds. Set , and let be the real functional-calculus values of for the indicators of positive, negative, and zero real numbers, respectively. There exist positive semidefinite matrices , summing to the identity, such that for every positive semidefinite of trace one and every . These may depend on . Neither convexity nor any density-matrix condition is required of , and need not be a channel or linear. For non-Hermitian , the three functional-calculus values are zero. The endpoints are included, and the property is vacuous when is empty.
QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalMeasurement
For finite types , with decidable equality on , an arbitrary function , and any family , this property means that there exists a family of positive semidefinite matrices satisfying , such that, for every positive semidefinite matrix with and every , the complex traces satisfy . No projection, positivity, or completeness condition is imposed on , and no channel or linearity condition is imposed on . If is empty, the quantification over density matrices is vacuous, but the existence and completeness requirements on remain.
QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalStructure
For finite types with decidable equality, an arbitrary function , and a set , this property has the following meaning. Write , and write . For any set , let mean that for every and , the three real functional-calculus matrices of for the indicators of positive, negative, and zero real numbers admit positive semidefinite matrices summing to the identity and satisfying for every density matrix and every ; for non-Hermitian arguments those functional-calculus matrices are zero. For sets , write when there exists a function that agrees everywhere with a complex-linear map, satisfies for every in the complex span of , has , and satisfies for every and . The required conditions are: contains the identity and zero, is closed under addition, complex scalar multiplication, multiplication, and conjugate transpose, and every satisfies ; is convex and consists of density matrices; and holds. Furthermore, every convex set consisting of density matrices and satisfying has some with . Finally, every such having the additional property that, for every convex density-matrix set satisfying and every proper subset , one has , must satisfy . No nonemptiness of these sets and no channel assumption on are imposed.
QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalSubsystem
Let be a finite type with decidable equality, write , and let be any function. Let consist of positive integers and and a matrix satisfying ; its support is . The property defined here says that, for every natural number and every family of matrices satisfying , , whenever , and , there exist positive semidefinite matrices and on with such that, for every positive semidefinite with ,
These are equalities of complex traces. The quantifier includes , although its projective-measurement hypothesis is then impossible because ; individual may be zero. No channel or linearity assumption on is part of this definition.
QAlgorithms.Papers.Independent.Intake100.P70.UnitarilyNoiseless
For any finite type with decidable equality, any function on complex matrices, and any set of such matrices, this predicate means that for every natural number , every , and every real ,
where , using functional calculus. The iterates are iterates of the function ; is included and gives the identity function. The function is arbitrary, and need not be convex or contain density matrices. Empty index types are allowed, and empty makes the predicate vacuous.
QAlgorithms.Papers.Independent.Intake100.P70.cesaroAverage
For a finite type , an arbitrary function from complex matrices to themselves, and a natural number , this definition gives the function sending each matrix to
where denotes -fold function composition and is the identity function. The scalar is interpreted in . Thus gives itself, and the denominator is always nonzero. No linearity or channel condition is imposed on , and may be empty.
QAlgorithms.Papers.Independent.Intake100.P70.codeSupport
For any finite type with decidable equality and any set , take the finite basis supplied by the finite-basis construction for , viewing its elements as matrices. This defines the orthogonal projection onto the range of
The set is arbitrary; no condition that its elements are density matrices or that it is convex is required. A zero span, including an empty or empty , gives the zero projection.
QAlgorithms.Papers.Independent.Intake100.P70.cornerAdjoint
For any finite type with decidable equality and any function , let be the finite basis supplied by the finite-basis construction for the complex span of , and let be the orthogonal projection onto the range of . This defines the function
where is the matrix unit. No linearity, positivity, or channel property is assumed of . If the span of its fixed matrices is zero, then and the defined function is zero; empty is included.
QAlgorithms.Papers.Independent.Intake100.P70.cornerAlgebra
For any finite type with decidable equality and any function , take the finite basis supplied by the finite-basis construction for the complex span of all matrices fixed by , and let be the orthogonal projection onto the range of . This defines the set
where is the matrix unit. There are no assumptions that is linear or a channel, and membership does not require to be Hermitian or positive. If the span of the fixed matrices is zero, this set is ; empty is allowed.
QAlgorithms.Papers.Independent.Intake100.P70.fixedOperators
For any type and any function from complex matrices indexed by to themselves, this defines the set
There is no finiteness assumption on , no linearity or channel assumption on , and no positivity, Hermitian, or trace condition on the matrices in this set.
QAlgorithms.Papers.Independent.Intake100.P70.fixedStates
For any finite type and any function , this defines the set
No linearity or channel property is assumed of . If is empty, this set is empty because every matrix has trace zero.
QAlgorithms.Papers.Independent.Intake100.P70.fixedSupport
For any finite type with decidable equality and any function , let be the complex linear span of all matrices satisfying , and take the finite basis of supplied by the finite-basis construction. This defines the orthogonal projection onto the range of
No linearity, positivity, or channel property is assumed of , and the fixed matrices used here need not be density matrices. If their span is zero, the result is zero; empty is allowed.
QAlgorithms.Papers.Independent.Intake100.P70.fullTransposeRecovery
For any finite types with decidable equality and any function , this defines the function
where is the real continuous functional calculus of for , is the orthogonal projection onto the range of , and
Here is the matrix unit, the inverse is taken in , and the trace coefficient is complex without taking its real part. The inverse-square-root scalar function is zero on nonpositive inputs, its functional calculus returns zero on non-Hermitian matrices, and . No channel or linearity assumption is made on ; empty or is allowed.
QAlgorithms.Papers.Independent.Intake100.P70.helstromPartition
For a finite type with decidable equality and any complex matrix , this definition returns the three matrices, in order, obtained by applying the real functional calculus to with the functions , , and . Thus, when is Hermitian, these are its positive, negative, and zero eigenspace projections, respectively; zero eigenvalues belong to the third part. No Hermiticity hypothesis is required: for non-Hermitian , the real functional calculus used here returns zero, so all three matrices are zero. Empty is also allowed.
QAlgorithms.Papers.Independent.Intake100.P70.jointSupport
For any finite type with decidable equality and any set , let , choose the finite basis of supplied by the finite-basis construction, and regard each as a matrix. This defines the matrix of the orthogonal projection onto the range of
where denotes conjugate transpose and the range is that of the linear operator on given by matrix multiplication. No positivity or closure assumptions are imposed on . If , including when or is empty, the basis sum and the resulting projection are zero.
QAlgorithms.Papers.Independent.Intake100.P70.operatorHSNorm
For a finite type and a complex matrix indexed by , this definition is the real number
Here each squared modulus is the complex norm squared, and the square root is the nonnegative real square root. If is empty, both the sum and the resulting value are zero.
QAlgorithms.Papers.Independent.Intake100.P70.powerMixture
For any finite type , any function from complex matrices to themselves, and any real sequence , this defines the function
where denotes -fold function composition and . Real coefficients act as complex scalars. No nonnegativity, normalization, summability, linearity, or channel assumption is imposed. The infinite sum is the total infinite-sum operation: it equals the series sum when the matrix series is summable and equals the zero matrix otherwise. The finite index type may be empty.
QAlgorithms.Papers.Independent.Intake100.P70.rotatingSpace
For any type , without a finiteness assumption, and any function from complex matrices to themselves, the rotating space is the complex linear span of
The generating matrices are not required to be nonzero. No linearity or channel assumption is imposed on ; the span consists of finite complex linear combinations of the displayed generators and always contains zero.
QAlgorithms.Papers.Independent.Intake100.P70.statePart
For any finite type and any set of complex matrices, this defines the set
The set is arbitrary and may be empty. The index type may also be empty, in which case this set is empty because every matrix on that index type has trace .
QAlgorithms.Papers.Independent.Intake100.P70.supportInvSqrt
For any finite type with decidable equality and any matrix , this defines the real continuous functional calculus of for the function . For Hermitian , it applies to each positive eigenvalue and zero to every nonpositive eigenvalue, using the conventions for and . For non-Hermitian , this functional-calculus operation returns zero. No positivity or invertibility hypothesis is imposed, and empty is allowed.
QAlgorithms.Papers.Independent.Intake100.P70.transposeRecovery
For any finite types with decidable equality, any function , and any matrix , this defines a function sending each to
where means real continuous functional calculus and
with the matrix having entry at and zero elsewhere. The scalar function is zero for , and its matrix functional calculus returns zero on non-Hermitian matrices. No linearity or channel property of , or projection property of , is assumed; zero matrices and empty index types are included.
QAlgorithms.Papers.Independent.Intake100.P70.weighted
For any type , any real number , and any complex matrices indexed by , this defines the matrix
where the real coefficients are regarded as complex scalars. There is no restriction on , no finiteness assumption on , and no positivity or normalization assumption on or ; in particular, the values at and are and , respectively.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.