Definitions for Reversibility conditions for quantum operations
DefinitionQAlgorithms_Papers_Independent_Bridge50_P31The objects the formalized statements of Reversibility conditions for quantum operations (arXiv:1107.0453) are stated in. Each was checked against the paper by a blind read-back and a moderator.
FaithfulOn: PDF p.3: faithful on the positive cone, not injective on every operator.supportCorner: PDF pp.3,10: the corner pAp as an ambient set; its unit is p. This is unrelated to the accepted HybridSource.corner rate vector.SchwarzOn: PDF p.4, (1): Schwarz means coefficient exactly one.UnitalSchwarzOn: PDF pp.6,9: unitality uses the actual domain and codomain units.SandwichDefined: PDF p.4: the singular sandwich is defined exactly on the range of c.generalizedSandwich: PDF pp.4–5: a* c^+ a with the range condition kept separately. Accepted functions called sandwich implement different products or supermaps.GeneralizedSchwarz: PDF p.5, (2): generalized Schwarz inequality at a positive invertible c.stateDual: PDF p.6: computed forward state dual, with support inverses. Its intrinsic restriction is pAp -> p0Bp0. The full-space expression is only an ambient extension.algebraMultiplicativeDomain: PDF p.7: both Schwarz equalities in the actual algebra domain. Accepted Dependency50.P37.multiplicativeDomain tests all ambient inputs.fixedPoints: PDF p.7: fixed points in the actual domain algebra.recoveryComposite: PDF pp.8,13: Phi=T* o T_rho, computed from T and rho. Accepted Dependency50.P28.phi is a scalar convex conjugate, not this map.phiTilde: PDF p.8: Phi-tilde=T_rho o T*, computed from T and rho.IsStarAlgebraSet: PDF p.7: being an actual unital star subalgebra, without assuming this property when the set of fixed points is first defined.MapRanges: Canonical ambient extension of an intrinsic map between possibly nonunital corners, PDF pp.7,10. Both range conditions fix the trace-orthogonal extensions.ConditionalExpectation: PDF p.7: positive bimodule projection onto the named subalgebra.traceConditionalExpectation: PDF p.7: the unique representation-trace-preserving conditional expectation. Choice is from its defining property, never from a recovery conclusion. Accepted Renew46.P24.traceExpectation is a scalar state functional.FaithfulTraceOn: PDF p.7: a faithful trace on C, with no normalization condition. Values of tau off C are immaterial, so any complex-linear ambient extension represents it.restrictionDensity: PDF p.7: density of the restricted state with respect to the specified trace. This is the unique element satisfying the displayed trace pairing.StarIsoOn: PDF p.8: the restriction of T is a star isomorphism, inverse U. Linearity is inherited from the computed maps in the statements.FamilyReversible: PDF p.9, (5): one complex-linear recovery, with unital Schwarz adjoint, works on the entire family. The accepted Support50.P12.Reversible treats a pair; pairwise witnesses cannot replace this common family witness.Conditions: PDF p.9: the two standing conditions, retaining rho in S and both computed unital Schwarz maps. No complete positivity premise is substituted.AlgebraChannel: PDF p.13, (v),(vi): a completely positive trace-preserving intrinsic map. Unlike accepted full-matrix CPTP predicates, its properties are tested on A.derivative: PDF p.12: commutant Radon–Nikodym derivative, computed on the support.weightedPair: PDF p.5: the rho-weighted sesquilinear form is conjugate-linear first.saturation: PDF pp.14,17: the union over ALL real modular translates.NormCriterion: PDF pp.19–20: norm preservation at all nonnegative thresholds.positiveTest: PDF pp.17–18: strictly positive projection, defined also for negative t.kernelTest: PDF pp.17–18: full kernel projection, retaining all zero eigenvalue ties.resolvent: PDF p.23: resolvent of L_a + s R_b, by its genuine two-sided spectral calculus. On faithful a,b and s>=0 every denominator is strictly positive.inverseMetric: PDF pp.23–25: inverse of J_rho^f=f(L_rho R_rho^-1)R_rho.metric: PDF p.23: the monotone metric on self-adjoint tangent vectors.chiSquared: PDF p.23: chi-squared divergence uses the difference of the two states.MetricGenerator: PDF p.23: positive symmetric operator monotone generator; normalization f(1)=1 is imposed only when calling the metric a Fisher information.InverseRepresentation: PDF p.23, corrected representation: the finite-parameter Stieltjes part of 1/f, with its nonnegative constant separated. The printed formula omits that constant (e.g. harmonic f). This correction needs independent moderation.inverseMeasure: PDF pp.23–25: the actual finite-parameter representing measure of 1/f. No arbitrary measure is admitted as a rich-support witness.MetricRich: PDF pp.24–25: cardinal comparison, allowing infinite measure support.Tangent: PDF p.24: tangent vectors are self-adjoint and traceless.affineFamily: PDF p.24: maximal affine state family, INCLUDING its boundary states.familySpan: PDF p.24: REAL span of pairwise differences in the family.projectionExampleReference: PDF p.11: the actual matrix rho in Example 1. Accepted Support50.P12.exampleRho is a different fixed 3-by-3 matrix.extendRecovery: PDF p.10: the map extending a corner recovery; the complement is weighted by the representation trace and the reference state.CornerReversible: PDF p.10: reversibility between genuine support corners.CornerKPositive: PDF p.10: n-positivity on a support corner uses genuine n-by-n blocks.FiniteMixture: PDF p.9: membership in the FINITE convex hull, without taking a closure.inverseRestriction: PDF pp.13–14: inverse of the faithful restriction of T* on its multiplicative domain, extended canonically. Choice uses only the inverse identities.recoveryAlgebra: PDF p.13: A1 is the subalgebra generated by modular derivatives of S.structuralRecovery: PDF pp.13–14: the proof's actual E_rho* o R* o F recovery.faithfulRate: PDF p.22, Remark 3: the nonempty-case entropy infimum, with an explicit positive choice for the trivial empty auxiliary family. EReal retains the infimum until its nonempty finite value is converted to a real.
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P12
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P50
/-! Jencova, Reversibility conditions for quantum operations, arXiv:1107.0453v2.
All page numbers are PDF pages. Representation traces are unnormalized and all
maps are complex linear. An intrinsic algebra map is represented by its canonical
trace-orthogonal full-matrix extension (`AlgebraExtension`). Local definitions
below use actual matrices and computed support inverses. Compilation is pending
batch handoff. The unqualified n-positivity claim on p.6 is deferred in HARD.md. -/
noncomputable section
namespace QAlgorithms.Papers.Independent.Bridge50.P31
open Filter MeasureTheory Set
open scoped Matrix ComplexOrder ComplexConjugate BigOperators Topology
open QAlgorithms.Papers.Independent.Information100.P60 (Mat copies)
open QAlgorithms.Papers.Independent.Information100.P30 (MatrixMap)
open QAlgorithms.Papers.Independent.Dependency50.P28 (tr LE)
open QAlgorithms.Papers.Independent.Dependency50.P21
(channelAdjoint spectralFunction petz relativeEntropy)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)
open QAlgorithms.Papers.Independent.Next46.P23 (Supports matrixCommutant)
open QAlgorithms.Papers.Independent.Support50.P12
(Alg AlgebraDensity AlgebraExtension PositiveOnConcreteAlgebra AlgebraTracePreserving
AlgebraKPositive AlgebraCompletelyPositive supp spec cpow quasi hull modularSpec)
open QAlgorithms.Papers.Independent.Information100.P50 (OperatorMonotone)
open QAlgorithms.Papers.Independent.Frontier18.P17 (hs)
attribute [local instance] Classical.propDecidable Classical.decEq
variable {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J]
/-- PDF p.3: faithful on the positive cone, not injective on every operator. -/
def FaithfulOn (A : Set (Mat I)) (T : Mat I → Mat J) : Prop :=
∀ a ∈ A, a.PosSemidef → T a = 0 → a = 0
/-- PDF pp.3,10: the corner pAp as an ambient set; its unit is p.
This is unrelated to the accepted HybridSource.corner rate vector. -/
def supportCorner (A : Set (Mat I)) (p : Mat I) : Set (Mat I) :=
{a | a ∈ A ∧ p * a * p = a}
/-- PDF p.4, (1): Schwarz means coefficient exactly one. -/
def SchwarzOn (A : Set (Mat I)) (T : Mat I → Mat J) : Prop :=
∀ a ∈ A, LE ((T a)ᴴ * T a) (T (aᴴ * a))
/-- PDF pp.6,9: unitality uses the actual domain and codomain units. -/
def UnitalSchwarzOn (A : Set (Mat I)) (eA : Mat I) (eB : Mat J)
(T : Mat I → Mat J) : Prop := T eA = eB ∧ SchwarzOn A T
/-- PDF p.4: the singular sandwich is defined exactly on the range of c. -/
def SandwichDefined (c a : Mat I) : Prop :=
LinearMap.range a.mulVecLin ≤ LinearMap.range c.mulVecLin
/-- PDF pp.4–5: a* c^+ a with the range condition kept separately.
Accepted functions called sandwich implement different products or supermaps. -/
def generalizedSandwich (c a : Mat I) : Mat I := aᴴ * supportPower c (-1) * a
/-- PDF p.5, (2): generalized Schwarz inequality at a positive invertible c. -/
def GeneralizedSchwarz (A : Set (Mat I)) (T : Mat I → Mat J) (c : Mat I) : Prop :=
∀ a ∈ A, SandwichDefined (T c) (T a) ∧ LE (generalizedSandwich (T c) (T a)) (T (generalizedSandwich c a))
/-- PDF p.6: computed forward state dual, with support inverses. Its intrinsic
restriction is pAp -> p0Bp0. The full-space expression is only an ambient extension. -/
def stateDual (T : Mat I → Mat J) (rho a : Mat I) : Mat J :=
supportPower (T rho) (-(1 / 2)) *
T (supportPower rho (1 / 2) * a * supportPower rho (1 / 2)) *
supportPower (T rho) (-(1 / 2))
/-- PDF p.7: both Schwarz equalities in the actual algebra domain.
Accepted Dependency50.P37.multiplicativeDomain tests all ambient inputs. -/
def algebraMultiplicativeDomain (A : Set (Mat I)) (T : Mat I → Mat J) : Set (Mat I) :=
{a | a ∈ A ∧ T (aᴴ * a) = (T a)ᴴ * T a ∧ T (a * aᴴ) = T a * (T a)ᴴ}
/-- PDF p.7: fixed points in the actual domain algebra. -/
def fixedPoints (A : Set (Mat I)) (Phi : Mat I → Mat I) : Set (Mat I) :=
{a | a ∈ A ∧ Phi a = a}
/-- PDF pp.8,13: Phi=T* o T_rho, computed from T and rho.
Accepted Dependency50.P28.phi is a scalar convex conjugate, not this map. -/
def recoveryComposite (T : Mat I → Mat J) (rho a : Mat I) : Mat I :=
channelAdjoint T (stateDual T rho a)
/-- PDF p.8: Phi-tilde=T_rho o T*, computed from T and rho. -/
def phiTilde (T : Mat I → Mat J) (rho : Mat I) (b : Mat J) : Mat J :=
stateDual T rho (channelAdjoint T b)
/-- PDF p.7: being an actual unital star subalgebra, without assuming this
property when the set of fixed points is first defined. -/
def IsStarAlgebraSet (C : Set (Mat I)) : Prop :=
∃ D : Alg I, (D : Set (Mat I)) = C
/-- Canonical ambient extension of an intrinsic map between possibly nonunital
corners, PDF pp.7,10. Both range conditions fix the trace-orthogonal extensions. -/
def MapRanges (A : Set (Mat I)) (B : Set (Mat J)) (T : Mat I → Mat J) : Prop :=
(∀ a, T a ∈ B) ∧ (∀ b, channelAdjoint T b ∈ A)
/-- PDF p.7: positive bimodule projection onto the named subalgebra. -/
def ConditionalExpectation (A C : Set (Mat I)) (E : MatrixMap I I) : Prop :=
MapRanges A C E ∧ (∀ a ∈ A, a.PosSemidef → (E a).PosSemidef) ∧
(∀ c ∈ C, E c = c) ∧
∀ a ∈ A, ∀ b ∈ C, ∀ c ∈ C, E (b * a * c) = b * E a * c
/-- PDF p.7: the unique representation-trace-preserving conditional expectation.
Choice is from its defining property, never from a recovery conclusion.
Accepted Renew46.P24.traceExpectation is a scalar state functional. -/
def traceConditionalExpectation (A C : Set (Mat I)) : MatrixMap I I :=
Classical.epsilon (fun E => ConditionalExpectation A C E ∧ ∀ a ∈ A, (E a).trace = a.trace)
/-- PDF p.7: a faithful trace on C, with no normalization condition. Values of
tau off C are immaterial, so any complex-linear ambient extension represents it. -/
def FaithfulTraceOn (C : Set (Mat I)) (tau : Mat I →ₗ[ℂ] ℂ) : Prop :=
(∀ a ∈ C, a.PosSemidef → (tau a).im = 0 ∧ 0 ≤ (tau a).re) ∧
(∀ a ∈ C, a.PosSemidef → tau a = 0 → a = 0) ∧
∀ a ∈ C, ∀ b ∈ C, tau (a * b) = tau (b * a)
/-- PDF p.7: density of the restricted state with respect to the specified trace.
This is the unique element satisfying the displayed trace pairing. -/
def restrictionDensity (C : Set (Mat I)) (tau : Mat I →ₗ[ℂ] ℂ) (rho : Mat I) : Mat I :=
Classical.epsilon (fun d => d ∈ C ∧ d.PosSemidef ∧ ∀ a ∈ C, tau (a * d) = (rho * a).trace)
/-- PDF p.8: the restriction of T is a star isomorphism, inverse U.
Linearity is inherited from the computed maps in the statements. -/
def StarIsoOn (C : Set (Mat I)) (D : Set (Mat J))
(T : Mat I → Mat J) (U : Mat J → Mat I) : Prop :=
(∀ a ∈ C, T a ∈ D ∧ U (T a) = a) ∧
(∀ b ∈ D, U b ∈ C ∧ T (U b) = b) ∧
(∀ a ∈ C, T (aᴴ) = (T a)ᴴ) ∧
∀ a ∈ C, ∀ b ∈ C, T (a * b) = T a * T b
/-- PDF p.9, (5): one complex-linear recovery, with unital Schwarz adjoint,
works on the entire family. The accepted Support50.P12.Reversible treats
a pair; pairwise witnesses cannot replace this common family witness. -/
def FamilyReversible (A : Alg I) (B : Alg J) (T : MatrixMap I J) (S : Set (Mat I)) : Prop :=
∃ R : MatrixMap J I, AlgebraExtension B A R ∧
UnitalSchwarzOn A 1 1 (channelAdjoint R) ∧ ∀ sigma ∈ S, R (T sigma) = sigma
/-- PDF p.9: the two standing conditions, retaining rho in S and both computed
unital Schwarz maps. No complete positivity premise is substituted. -/
def Conditions (A : Alg I) (B : Alg J) (T : MatrixMap I J)
(S : Set (Mat I)) (rho : Mat I) : Prop :=
AlgebraExtension A B T ∧ (∀ sigma ∈ S, AlgebraDensity A sigma) ∧
rho ∈ S ∧ rho.PosDef ∧ (T rho).PosDef ∧
UnitalSchwarzOn B 1 1 (channelAdjoint T) ∧ UnitalSchwarzOn A 1 1 (stateDual T rho)
/-- PDF p.13, (v),(vi): a completely positive trace-preserving intrinsic map.
Unlike accepted full-matrix CPTP predicates, its properties are tested on A. -/
def AlgebraChannel (A : Alg I) (B : Alg J) (T : MatrixMap I J) : Prop :=
AlgebraExtension A B T ∧ AlgebraTracePreserving A T ∧ AlgebraCompletelyPositive A T
/-- PDF p.12: commutant Radon–Nikodym derivative, computed on the support. -/
def derivative (sigma rho : Mat I) : Mat I :=
supportPower rho (-(1 / 2)) * sigma * supportPower rho (-(1 / 2))
/-- PDF p.5: the rho-weighted sesquilinear form is conjugate-linear first. -/
def weightedPair (rho a b : Mat I) : ℂ :=
(aᴴ * supportPower rho (1 / 2) * b * supportPower rho (1 / 2)).trace
/-- PDF pp.14,17: the union over ALL real modular translates. -/
def saturation (rho : Mat I) (S : Set (Mat I)) : Set (Mat I) :=
{a | ∃ sigma ∈ S, ∃ t : ℝ, a = cpow rho (Complex.I * (t : ℂ)) * sigma *
cpow rho (-Complex.I * (t : ℂ))}
/-- PDF pp.19–20: norm preservation at all nonnegative thresholds. -/
def NormCriterion (T : Mat I → Mat J) (rho : Mat I) (S : Set (Mat I)) : Prop :=
∀ sigma ∈ S, ∀ t : ℝ, 0 ≤ t →
QAlgorithms.traceNorm (sigma - (t : ℂ) • rho) =
QAlgorithms.traceNorm (T sigma - (t : ℂ) • T rho)
/-- PDF pp.17–18: strictly positive projection, defined also for negative t. -/
def positiveTest (sigma rho : Mat I) (t : ℝ) : Mat I :=
supp (QAlgorithms.Papers.Independent.Information100.P07.positivePart (sigma - (t : ℂ) • rho))
/-- PDF pp.17–18: full kernel projection, retaining all zero eigenvalue ties. -/
def kernelTest (sigma rho : Mat I) (t : ℝ) : Mat I :=
QAlgorithms.spectralProjector (sigma - (t : ℂ) • rho) 0
/-- PDF p.23: resolvent of L_a + s R_b, by its genuine two-sided spectral
calculus. On faithful a,b and s>=0 every denominator is strictly positive. -/
def resolvent (a b : Mat I) (s : ℝ) (x : Mat I) : Mat I :=
∑ u ∈ spec a, ∑ v ∈ spec b,
(((u + s * v)⁻¹ : ℝ) : ℂ) • (QAlgorithms.spectralProjector a u * x * QAlgorithms.spectralProjector b v)
/-- PDF pp.23–25: inverse of J_rho^f=f(L_rho R_rho^-1)R_rho. -/
def inverseMetric (f : ℝ → ℝ) (rho x : Mat I) : Mat I :=
∑ u ∈ spec rho, ∑ v ∈ spec rho,
(((v * f (u / v))⁻¹ : ℝ) : ℂ) •
(QAlgorithms.spectralProjector rho u * x * QAlgorithms.spectralProjector rho v)
/-- PDF p.23: the monotone metric on self-adjoint tangent vectors. -/
def metric (f : ℝ → ℝ) (rho x y : Mat I) : ℝ := tr (inverseMetric f rho x * y)
/-- PDF p.23: chi-squared divergence uses the difference of the two states. -/
def chiSquared (f : ℝ → ℝ) (sigma rho : Mat I) : ℝ := metric f rho (sigma - rho) (sigma - rho)
/-- PDF p.23: positive symmetric operator monotone generator; normalization
f(1)=1 is imposed only when calling the metric a Fisher information. -/
def MetricGenerator (f : ℝ → ℝ) : Prop :=
OperatorMonotone f ∧ (∀ t : ℝ, 0 < t → 0 < f t) ∧
∀ t : ℝ, 0 < t → f t = t * f (t⁻¹)
/-- PDF p.23, corrected representation: the finite-parameter Stieltjes part
of 1/f, with its nonnegative constant separated. The printed formula omits that
constant (e.g. harmonic f). This correction needs independent moderation. -/
def InverseRepresentation (f : ℝ → ℝ) (a : ℝ) (nu : Measure ℝ) : Prop :=
0 ≤ a ∧ nu (Iio 0) = 0 ∧
Integrable (fun s : ℝ => (1 + s ^ 2)⁻¹) nu ∧
Integrable (fun s : ℝ => s / (1 + s ^ 2)) nu ∧
∀ t : ℝ, 0 < t → Integrable (fun s : ℝ => (s + t)⁻¹) nu ∧
(f t)⁻¹ = a + ∫ s, (s + t)⁻¹ ∂nu
/-- PDF pp.23–25: the actual finite-parameter representing measure of 1/f.
No arbitrary measure is admitted as a rich-support witness. -/
def inverseMeasure (f : ℝ → ℝ) : Measure ℝ :=
Classical.epsilon (fun nu => ∃ a : ℝ, InverseRepresentation f a nu)
/-- PDF pp.24–25: cardinal comparison, allowing infinite measure support. -/
def MetricRich (f : ℝ → ℝ) (n : ℕ) : Prop :=
(n : Cardinal) ≤ Cardinal.mk (inverseMeasure f).support
/-- PDF p.24: tangent vectors are self-adjoint and traceless. -/
def Tangent (A : Alg I) (x : Mat I) : Prop := x ∈ A ∧ x.IsHermitian ∧ x.trace = 0
/-- PDF p.24: maximal affine state family, INCLUDING its boundary states. -/
def affineFamily (A : Alg I) (rho x : Mat I) : Set (Mat I) :=
{sigma | AlgebraDensity A sigma ∧ ∃ u : ℝ, sigma = rho + (u : ℂ) • x}
/-- PDF p.24: REAL span of pairwise differences in the family. -/
def familySpan (S : Set (Mat I)) : Submodule ℝ (Mat I) :=
Submodule.span ℝ {x | ∃ a ∈ S, ∃ b ∈ S, x = a - b}
/-- PDF p.11: the actual matrix rho in Example 1.
Accepted Support50.P12.exampleRho is a different fixed 3-by-3 matrix. -/
def projectionExampleReference (sigma p : Mat I) : Mat I :=
let lam := tr (p * sigma)
let x := ((1 - lam : ℝ) : ℂ) • p + (lam : ℂ) • (1 - p)
(1 - x)⁻¹ * sigma * x
/-- PDF p.10: the map extending a corner recovery; the complement is weighted
by the representation trace and the reference state. -/
def extendRecovery (R : Mat J → Mat I) (p0 : Mat J) (rho : Mat I) (b : Mat J) : Mat I :=
R (p0 * b * p0) + (b * (1 - p0)).trace • rho
/-- PDF p.10: reversibility between genuine support corners. -/
def CornerReversible (A : Alg I) (B : Alg J) (T : MatrixMap I J)
(S : Set (Mat I)) (p : Mat I) (p0 : Mat J) : Prop :=
∃ R : MatrixMap J I, MapRanges (supportCorner B p0) (supportCorner A p) R ∧
UnitalSchwarzOn (supportCorner A p) p p0 (channelAdjoint R) ∧
∀ sigma ∈ S, R (T sigma) = sigma
/-- PDF p.10: n-positivity on a support corner uses genuine n-by-n blocks. -/
def CornerKPositive (A : Alg I) (p : Mat I) (T : Mat I → Mat J) (n : ℕ) : Prop :=
∀ X : Mat (Fin n × I), (∀ a b, (fun i j => X (a, i) (b, j)) ∈ supportCorner A p) →
X.PosSemidef → (QAlgorithms.Papers.Independent.Support50.P12.amp T n X).PosSemidef
/-- PDF p.9: membership in the FINITE convex hull, without taking a closure. -/
def FiniteMixture (S : Set (Mat I)) (rho : Mat I) : Prop :=
∃ n : ℕ, ∃ w : Fin n → ℝ, ∃ a : Fin n → Mat I,
(∀ k, 0 ≤ w k) ∧ (∑ k, w k) = 1 ∧ (∀ k, a k ∈ S) ∧
rho = ∑ k, (w k : ℂ) • a k
/-- PDF pp.13–14: inverse of the faithful restriction of T* on its multiplicative
domain, extended canonically. Choice uses only the inverse identities. -/
def inverseRestriction (T : Mat I → Mat J) (C : Set (Mat I)) (D : Set (Mat J)) : MatrixMap J I :=
Classical.epsilon (fun R => MapRanges D C R ∧ ∀ x ∈ C, R (T x) = x)
/-- PDF p.13: A1 is the subalgebra generated by modular derivatives of S. -/
def recoveryAlgebra (rho : Mat I) (S : Set (Mat I)) : Alg I :=
StarAlgebra.adjoin ℂ (saturation rho ((fun sigma => derivative sigma rho) '' S))
/-- PDF pp.13–14: the proof's actual E_rho* o R* o F recovery. -/
def structuralRecovery (A : Alg I) (B : Alg J) (T : MatrixMap I J)
(S : Set (Mat I)) (rho : Mat I) (b : Mat J) : Mat I :=
let C : Set (Mat I) := recoveryAlgebra rho S
let D := algebraMultiplicativeDomain B (channelAdjoint T)
let E := traceConditionalExpectation A C
let F := traceConditionalExpectation B D
let R := inverseRestriction (channelAdjoint T) D (channelAdjoint T '' D)
channelAdjoint (stateDual E rho) (channelAdjoint R (F b))
/-- The inverse-on-support sandwich vanishes at a zero argument. -/
example (rho : Mat I) : derivative 0 rho = 0 := by simp [derivative]
/-- The empty family has empty modular saturation. -/
example (rho : Mat I) : saturation rho ∅ = ∅ := by
ext a
simp [saturation]
/-- A zero tangent direction gives zero chi-squared distance. -/
example (f : ℝ → ℝ) (rho : Mat I) : chiSquared f rho rho = 0 := by
simp [chiSquared, metric, inverseMetric, tr]
/-- The support-corner definition uses its own projection as unit. -/
example (A : Set (Mat I)) (a : Mat I) : a ∈ supportCorner A 1 ↔ a ∈ A := by
simp [supportCorner]
/-- Positive and kernel tests are defined on the negative half-line too. -/
example (sigma rho : Mat I) : kernelTest sigma rho (-1) =
QAlgorithms.spectralProjector (sigma + rho) 0 := by simp [kernelTest]
/-- A zero linear map gives a zero forward dual, including singular reference. -/
example (rho a : Mat I) : stateDual (0 : MatrixMap I J) rho a = 0 := by
simp [stateDual]
/-- The identity fixes the whole actual domain, including scalar algebras. -/
example (A : Set (Mat I)) : fixedPoints A (fun a => a) = A := by
ext a
simp [fixedPoints]
/-- Resolvents and the metric inverse act linearly at the zero vector. -/
example (a b : Mat I) (s : ℝ) : resolvent a b s 0 = 0 := by
simp [resolvent]
/-- A vanished complement introduces no spurious trace contribution. -/
example (R : Mat J → Mat I) (rho : Mat I) (b : Mat J) :
extendRecovery R 1 rho b = R b := by
simp [extendRecovery]
/-- PDF p.22, Remark 3: the nonempty-case entropy infimum, with an explicit
positive choice for the trivial empty auxiliary family. EReal retains the
infimum until its nonempty finite value is converted to a real. -/
def faithfulRate (T : Mat I → Mat J) (rho : Mat I) (S0 : Set (Mat I)) : ℝ :=
if S0.Nonempty then
(sInf ((fun sigma => relativeEntropy (T rho) (T sigma)) '' S0)).toReal
else 1
/-- Empty auxiliary family: a positive rate is supplied without an empty real infimum. -/
example (T : Mat I → Mat J) (rho : Mat I) : faithfulRate T rho ∅ = 1 := by
simp [faithfulRate]
end QAlgorithms.Papers.Independent.Bridge50.P31
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P31.AlgebraChannel
For finite types with decidable equality, unital complex star subalgebras , , and a complex linear map , this predicate asserts that for every ambient matrix , for every ambient matrix , and for every , where . It also requires that, for every natural number , every positive semidefinite block matrix indexed by , all of whose blocks belong to , has positive semidefinite image under the blockwise operation . The index types may be empty, and is included, with an empty block matrix.
QAlgorithms.Papers.Independent.Bridge50.P31.ConditionalExpectation
For any finite type with decidable equality, sets , and complex linear map , this predicate asserts all of the following: for every ambient matrix , and for every ambient matrix , where ; every positive semidefinite has positive semidefinite image ; every satisfies ; and, for all and ,
No assumption that or is an algebra is included. Empty is allowed, while empty or makes the range requirements impossible.
QAlgorithms.Papers.Independent.Bridge50.P31.Conditions
For finite types with decidable equality, unital complex star subalgebras , , a complex linear map , set , and matrix , this predicate asserts that the entire range of lies in , the entire range of lies in , every belongs to , is positive semidefinite, and has real trace , and with both and positive definite. Here . It additionally requires and for every , as well as and for every , where
The functional calculus uses real powers and assigns zero to zero eigenvalues even for negative exponents. No nonemptiness assumption on the index types is stated, but these requirements cannot hold when either index type is empty; they also require to be nonempty.
QAlgorithms.Papers.Independent.Bridge50.P31.CornerKPositive
For finite index types with decidable equality, a unital complex star subalgebra , an arbitrary matrix , an arbitrary function , and a natural number , this predicate means that every positive semidefinite matrix indexed by , whose blocks satisfy and for every , produces a positive semidefinite matrix indexed by , where
Neither linearity of nor a projection property of is assumed. The value is included, and the predicate then holds automatically because the output matrix has no entries.
QAlgorithms.Papers.Independent.Bridge50.P31.CornerReversible
For finite index types with decidable equality, unital complex star subalgebras , , a complex-linear map , a set , and arbitrary matrices , , put and . The predicate asserts that there exists a complex-linear map such that every matrix has , every matrix has , , and
where, writing for matrix units, . The range requirements concern all matrices in the respective ambient spaces. No projection assumptions on are imposed, and the recovery requirement is vacuous when is empty.
QAlgorithms.Papers.Independent.Bridge50.P31.FaithfulOn
For finite index types with decidable equality, a set of complex matrices, and an arbitrary function from complex matrices to complex matrices, this property means that every positive semidefinite matrix satisfying is itself zero. No linearity or positivity assumption on is imposed. The property holds vacuously if contains no positive semidefinite matrices.
QAlgorithms.Papers.Independent.Bridge50.P31.FaithfulTraceOn
For any finite type with decidable equality, set , and complex linear functional , this predicate asserts that every positive semidefinite satisfies and ; every positive semidefinite with is zero; and every satisfies
There is no normalization requirement and no assumption that is an algebra. Empty is allowed, and all requirements hold vacuously when .
QAlgorithms.Papers.Independent.Bridge50.P31.FamilyReversible
For finite types with decidable equality, unital complex star subalgebras , , a complex linear map , and any set , this predicate means that there exists a complex linear map whose entire range lies in , whose adjoint function has its entire range in , and which satisfies
where . No density condition on , nor positivity or trace preservation of , is assumed. Empty index types are allowed; if is empty, only the recovery identities are vacuous.
QAlgorithms.Papers.Independent.Bridge50.P31.FiniteMixture
For a finite index type with decidable equality, a set , and a matrix , this predicate asserts the existence of a natural number , real weights , and matrices such that
Repeated matrices and zero weights are permitted, and no positivity or normalization of the is required. Although is quantified over, it cannot satisfy the weight-sum condition; consequently the predicate cannot hold for .
QAlgorithms.Papers.Independent.Bridge50.P31.GeneralizedSchwarz
For finite index types with decidable equality, a set , an arbitrary function , and a matrix , write for the real continuous functional calculus of and for . This property means that every satisfies both
and
There is no separate requirement that , and no linearity or positivity assumption on is included. For empty , the property is vacuous.
QAlgorithms.Papers.Independent.Bridge50.P31.InverseRepresentation
For any function , real number , and Borel measure on , this requires , , integrability with respect to of both and , and, for every real , integrability of together with
The measure need not be a probability measure or have finite total mass, and an atom at zero is allowed. Reciprocals use , including when ; the definition does not separately require or .
QAlgorithms.Papers.Independent.Bridge50.P31.IsStarAlgebraSet
For any finite type with decidable equality and any set , this predicate means that is exactly the underlying set of some unital complex star subalgebra of : it contains zero and the identity and is closed under addition, complex scalar multiplication, matrix multiplication, and conjugate transpose. The index type may be empty; the set itself cannot be empty.
QAlgorithms.Papers.Independent.Bridge50.P31.MapRanges
For finite types with decidable equality, arbitrary sets , , and any function , this predicate asserts that for every matrix , and for every matrix , where the notation denotes the explicitly defined function
and is the matrix with entry at and zero elsewhere. Neither universal quantifier is restricted to membership in or , and need not be linear. Empty index types are allowed, but either or makes the predicate false.
QAlgorithms.Papers.Independent.Bridge50.P31.MetricGenerator
For any function , this requires all three of the following: for every natural number , including , and every pair of positive definite complex matrices , positivity of implies positivity of , where and are formed by real functional calculus; for every real ; and
There is no requirement that , and the positivity and symmetry conditions impose no direct restriction on values at nonpositive arguments.
QAlgorithms.Papers.Independent.Bridge50.P31.MetricRich
For any function and natural number , this requires that the topological support of a chosen Borel measure have cardinality at least . The chosen measure is one admitting a real constant with zero mass on , integrable functions and , and, for every , an integrable function satisfying ; if no such measure exists, is an unspecified measure instead. Its support consists of points every open neighborhood of which has nonzero measure. The condition counts support points, not atoms, permits infinite support, and is automatically satisfied for ; it does not separately require existence of the stated representation.
QAlgorithms.Papers.Independent.Bridge50.P31.NormCriterion
For finite types with decidable equality, any function from complex matrices to complex matrices, any complex matrix , and any set of complex matrices, this is the requirement that
where , with the square root taken by real functional calculus. No linearity, positivity, or trace preservation of , or state assumptions on or , are required. The condition includes , is vacuous when , and permits empty index types.
QAlgorithms.Papers.Independent.Bridge50.P31.SandwichDefined
For a finite index type with decidable equality and arbitrary complex matrices , this property means that the range of multiplication by is contained in the range of multiplication by :
Equivalently, for every there exists with . No Hermitian, positivity, or invertibility hypothesis is included; for , the condition requires .
QAlgorithms.Papers.Independent.Bridge50.P31.SchwarzOn
For finite index types with decidable equality, a set of complex matrices, and an arbitrary function from complex matrices to complex matrices, this property means that, for every ,
is positive semidefinite, where denotes conjugate transpose. No linearity, positivity, or unitality assumption on is included. If is empty, the property holds vacuously.
QAlgorithms.Papers.Independent.Bridge50.P31.StarIsoOn
For finite types with decidable equality, sets , , and arbitrary functions , , this predicate asserts that and for every ; and for every ; for every ; and for every , where denotes conjugate transpose. No linearity, identity preservation, or algebra closure of the sets is assumed. Empty index types are allowed; the predicate is vacuous when both sets are empty and impossible when exactly one is empty.
QAlgorithms.Papers.Independent.Bridge50.P31.Tangent
For a finite index type with decidable equality, a unital complex star subalgebra , and a matrix , satisfies this predicate exactly when , , and . No positivity or nonzero condition is imposed; in particular, the zero matrix satisfies the predicate, including when is empty.
QAlgorithms.Papers.Independent.Bridge50.P31.UnitalSchwarzOn
For finite index types with decidable equality, a set of complex matrices, matrices and , and an arbitrary function , this property means both that and that
is positive semidefinite for every . The matrices are not required to be identities, projections, or members of any specified sets. When is empty, only remains.
QAlgorithms.Papers.Independent.Bridge50.P31.affineFamily
For a finite index type with decidable equality, a unital complex star subalgebra , and arbitrary matrices , this is the set
Neither nor is assumed to satisfy any additional condition. If , the set is when satisfies the three displayed conditions, and is empty otherwise; if is empty, the trace condition makes the set empty.
QAlgorithms.Papers.Independent.Bridge50.P31.algebraMultiplicativeDomain
For finite index types with decidable equality, a set , and an arbitrary function , this defines
Here denotes conjugate transpose. No algebra structure on or linearity, positivity, or unitality of is assumed, and the definition does not itself assert that this set is an algebra. If is empty, the defined set is empty.
QAlgorithms.Papers.Independent.Bridge50.P31.chiSquared
For a finite type with decidable equality, any function , and arbitrary complex matrices , this defines
Here the spectral set consists of the distinct eigenvalues of a Hermitian and is empty for a non-Hermitian , while is the orthogonal projection onto . Division and reciprocals are total, with and . Neither matrix is required to be a density matrix, and no condition on is assumed; the formula contains no adjoint of and does not itself assert nonnegativity. Its value is zero for non-Hermitian or an empty index type.
QAlgorithms.Papers.Independent.Bridge50.P31.derivative
For any finite type with decidable equality and arbitrary matrices , this definition returns
using real powers in the continuous functional calculus. In particular, zero eigenvalues are assigned zero rather than inverted. No positivity, invertibility, or normalization is assumed, empty is allowed, and the definition makes no assertion about differentiation.
QAlgorithms.Papers.Independent.Bridge50.P31.extendRecovery
For finite index types with decidable equality, any function , and arbitrary matrices and , the definition returns
The trace multiplying is complex valued. No linearity or positivity of , projection property of , or normalization of or is assumed; empty index types are allowed.
QAlgorithms.Papers.Independent.Bridge50.P31.faithfulRate
For finite types with decidable equality, an arbitrary function , a matrix , and a set , define by the total real spectral functional calculus , using the real logarithm with , and define the extended-real quantity
Then the real-valued function in this declaration is
Here keeps finite extended-real values and sends both and to . Neither nor is required to be nonempty, and there are no assumptions of linearity, positivity, normalization, or faithfulness on , or the elements of .
QAlgorithms.Papers.Independent.Bridge50.P31.familySpan
For a finite index type with decidable equality and any set , this is the real linear subspace generated by all differences with ; equivalently, it consists of all finite real linear combinations of such differences. The elements of need not be Hermitian, positive, or normalized. For an empty set or a singleton, the resulting subspace is .
QAlgorithms.Papers.Independent.Bridge50.P31.fixedPoints
For a finite index type with decidable equality, a set , and an arbitrary function , this defines
No linearity, positivity, or algebraic closure assumption is imposed. For empty , this set is empty.
QAlgorithms.Papers.Independent.Bridge50.P31.generalizedSandwich
For a finite index type with decidable equality and arbitrary complex matrices , this defines
where is the real continuous functional calculus and is conjugate transpose. No positivity, invertibility, or range-inclusion condition is required. The scalar function explicitly assigns zero at zero.
QAlgorithms.Papers.Independent.Bridge50.P31.inverseMeasure
For any function , this chooses a Borel measure on for which there exists a real such that , the functions and are -integrable, and, for every , is -integrable and
The choice supplies no uniqueness or canonical selection. If no such measure exists, the definition still returns an unspecified measure and guarantees none of these properties. All reciprocals use .
QAlgorithms.Papers.Independent.Bridge50.P31.inverseMetric
For a finite type with decidable equality, any function , and arbitrary complex matrices , this defines
Here is the set of distinct eigenvalues if is Hermitian, and is empty otherwise; is the orthogonal projection onto . Division and reciprocals are total real operations: , and a zero denominator gives coefficient , so every term with vanishes. No positivity, invertibility, normalization, or condition on is assumed. A non-Hermitian , or an empty index type, gives zero.
QAlgorithms.Papers.Independent.Bridge50.P31.inverseRestriction
For finite index types with decidable equality, an arbitrary function , and arbitrary sets , , this definition chooses a complex-linear map satisfying, if such a map exists,
where and is a matrix unit in . These are requirements on the entire ranges of and , rather than only their restrictions to and . No existence hypothesis is supplied: if no map satisfies the predicate, the definition still returns an arbitrarily chosen complex-linear map, without guaranteeing these properties.
QAlgorithms.Papers.Independent.Bridge50.P31.kernelTest
For a finite type with decidable equality, arbitrary complex matrices , and any real , this defines the matrix of the orthogonal projection onto
Indeed, the spectral projector used here projects onto the span of the eigenspaces whose eigenvalue belongs to the singleton . No Hermitian, positivity, normalization, or sign assumption on is imposed; a trivial kernel gives the zero projection, and gives the identity projection.
QAlgorithms.Papers.Independent.Bridge50.P31.metric
For a finite type with decidable equality, any function , and arbitrary complex matrices , this defines the real number
The spectral set contains distinct eigenvalues when is Hermitian and is empty otherwise, and projects orthogonally onto . Real division and inversion use and . There is no adjoint on or in this formula, and no positivity, symmetry, or normalization assumptions are imposed. The value is zero when is non-Hermitian or is empty.
QAlgorithms.Papers.Independent.Bridge50.P31.phiTilde
For finite index types with decidable equality, an arbitrary function , a matrix , and a matrix , let
where is the corresponding matrix unit. This declaration defines
where is the real continuous functional calculus of the scalar function that is zero at zero and equals the total real power elsewhere. No linearity, positivity, density-matrix, or invertibility hypothesis is included, and empty sums defining are zero.
QAlgorithms.Papers.Independent.Bridge50.P31.positiveTest
For a finite type with decidable equality, arbitrary complex matrices , and any real , let . This defines the matrix obtained by first applying the real functional-calculus function to , then applying the function that is at zero and everywhere else to the resulting matrix. Thus, when is Hermitian, the result is the orthogonal projection onto its strictly positive eigenspaces, excluding its kernel; under the total functional-calculus convention, it is zero when is non-Hermitian. No positivity, normalization, or restriction on is assumed.
QAlgorithms.Papers.Independent.Bridge50.P31.projectionExampleReference
For a finite index type with decidable equality and arbitrary matrices , set
The definition returns , in that multiplication order. No projection condition on , density condition on , or invertibility condition on is required. The matrix inverse is total: over , it is the usual inverse for an invertible matrix and the zero matrix for a singular matrix.
QAlgorithms.Papers.Independent.Bridge50.P31.recoveryAlgebra
For a finite index type with decidable equality, an arbitrary matrix , and a set , this is the smallest unital complex star subalgebra containing all matrices
Here is the real functional calculus of the scalar function that is at and elsewhere. For Hermitian , , where and for ; for non-Hermitian , is defined to be zero. No density or invertibility condition on is imposed. In particular, zero eigenvalues contribute zero even when , and an empty generating set still generates a unital complex star subalgebra.
QAlgorithms.Papers.Independent.Bridge50.P31.recoveryComposite
For finite index types with decidable equality, an arbitrary function , and arbitrary matrices , define , where and for , using total real powers, and put
The declaration defines the matrix whose entries are
where has entry at and zero elsewhere. No linearity of or positivity, normalization, or invertibility of the matrices is assumed; empty sums are zero.
QAlgorithms.Papers.Independent.Bridge50.P31.resolvent
For a finite type with decidable equality, arbitrary complex matrices , and any real , this defines
Here is the finite set of distinct eigenvalues of when is Hermitian, and is empty otherwise; is the orthogonal projection onto . The real scalar coefficients are regarded as complex scalars. Reciprocals are total, so a term with has coefficient . No positivity or invertibility is assumed; if either or is non-Hermitian, or if is empty, the sum is zero.
QAlgorithms.Papers.Independent.Bridge50.P31.restrictionDensity
For any finite type with decidable equality, set , complex linear functional , and arbitrary matrix , this definition selects a matrix satisfying
if any such matrix exists. No positivity or normalization of , faithfulness of , or algebra structure on is assumed. Neither existence nor uniqueness is asserted; if the requirements have no solution, including when is empty, the result is an unspecified matrix. Empty is allowed.
QAlgorithms.Papers.Independent.Bridge50.P31.saturation
For a finite type with decidable equality, a complex matrix indexed by , and any set of such matrices, this defines
Here the powers have the following literal meaning: if is Hermitian, diagonalize it unitarily and replace each eigenvalue by , and each zero eigenvalue by , to obtain ; if is not Hermitian, set . The logarithm is the total real logarithm, including at negative arguments. No positivity, normalization, or invertibility of is assumed; in particular, is the support projection when is Hermitian, rather than necessarily the identity. If is empty the resulting set is empty, and if is non-Hermitian and is nonempty the resulting set is .
QAlgorithms.Papers.Independent.Bridge50.P31.stateDual
For finite index types with decidable equality, an arbitrary function , and arbitrary matrices , this defines the matrix
where , with and for , using the total real-power operation. No density-matrix, positivity, invertibility, or linearity hypothesis is imposed; in particular, the scalar powers at zero are assigned zero.
QAlgorithms.Papers.Independent.Bridge50.P31.structuralRecovery
For finite index types with decidable equality, unital complex star subalgebras , , a complex-linear map , a set , and arbitrary matrices , , define by real functional calculus of the function at zero and elsewhere, and define for any matrix-valued function , with the sum over its output indices. Let be the unital complex star subalgebra generated by for , where, for Hermitian , , , for , and for non-Hermitian . Let
Choose complex-linear maps and by the following rule: for and , require that sends every ambient matrix into , sends every ambient matrix into , is positive on positive semidefinite elements of , fixes every element of , satisfies for , and preserves the complex trace on . Choose a complex-linear map whose entire range lies in , whose adjoint’s entire range lies in , and which satisfies for every . With
the returned matrix is . Each of the choices of satisfies its stated requirements only if a corresponding map exists; otherwise that choice is an arbitrary complex-linear map. No hypotheses ensuring existence of those maps, positivity of , or invertibility are imposed.
QAlgorithms.Papers.Independent.Bridge50.P31.supportCorner
For a finite index type with decidable equality, a set of complex matrices, and any complex matrix , this defines the set
There is no assumption that is Hermitian, idempotent, or positive semidefinite. In particular, gives , and an empty gives an empty set.
QAlgorithms.Papers.Independent.Bridge50.P31.traceConditionalExpectation
For any finite type with decidable equality and sets , this definition selects a complex linear map satisfying the following requirements if such a map exists: its entire range lies in ; the entire range of , defined by , lies in ; it sends positive semidefinite members of to positive semidefinite matrices; it fixes every member of ; it satisfies for , ; and for every . The selection asserts neither existence nor uniqueness: if no map satisfies these requirements, it returns an unspecified complex linear map. Empty index types and arbitrary sets are included.
QAlgorithms.Papers.Independent.Bridge50.P31.weightedPair
For any finite type with decidable equality and arbitrary matrices , this definition returns the complex number
where is conjugate transpose and the scalar power is the real power used by the functional calculus. There is no positivity, invertibility, or trace requirement on , and no inner product properties are asserted. Empty is included, in which case the trace is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.