Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Reversibility conditions for quantum operations

Definition
QAlgorithms_Papers_Independent_Bridge50_P31

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The 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.
Definition code
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
Source
Reversibility conditions for quantum operations, arXiv:1107.0453v2, https://arxiv.org/abs/1107.0453v2
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Bridge50.P31.AlgebraChannel

For finite types I,JI,JI,J with decidable equality, unital complex star subalgebras A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), B⊆MJ(C)B\subseteq M_J(\mathbb C)B⊆MJ​(C), and a complex linear map T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), this predicate asserts that T(X)∈BT(X)\in BT(X)∈B for every ambient matrix XXX, T†(Y)∈AT^\dagger(Y)\in AT†(Y)∈A for every ambient matrix YYY, and Tr⁡(T(X))=Tr⁡(X)\operatorname{Tr}(T(X))=\operatorname{Tr}(X)Tr(T(X))=Tr(X) for every X∈AX\in AX∈A, where (T†(Y))ij=∑k,l∈JT(Eij)kl‾Ykl(T^\dagger(Y))_{ij}=\sum_{k,l\in J}\overline{T(E_{ij})_{kl}}Y_{kl}(T†(Y))ij​=∑k,l∈J​T(Eij​)kl​​Ykl​. It also requires that, for every natural number nnn, every positive semidefinite block matrix ZZZ indexed by {0,…,n−1}×I\{0,\ldots,n-1\}\times I{0,…,n−1}×I, all of whose blocks ZabZ_{ab}Zab​ belong to AAA, has positive semidefinite image under the blockwise operation (Zab)↦(T(Zab))(Z_{ab})\mapsto(T(Z_{ab}))(Zab​)↦(T(Zab​)). The index types may be empty, and n=0n=0n=0 is included, with an empty block matrix.

QAlgorithms.Papers.Independent.Bridge50.P31.ConditionalExpectation

For any finite type III with decidable equality, sets A,C⊆MI(C)A,C\subseteq M_I(\mathbb C)A,C⊆MI​(C), and complex linear map E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), this predicate asserts all of the following: E(a)∈CE(a)\in CE(a)∈C for every ambient matrix aaa, and E†(b)∈AE^\dagger(b)\in AE†(b)∈A for every ambient matrix bbb, where (E†(b))ij=∑k,l∈IE(Eij)kl‾bkl(E^\dagger(b))_{ij}=\sum_{k,l\in I}\overline{E(E_{ij})_{kl}}b_{kl}(E†(b))ij​=∑k,l∈I​E(Eij​)kl​​bkl​; every positive semidefinite a∈Aa\in Aa∈A has positive semidefinite image E(a)E(a)E(a); every c∈Cc\in Cc∈C satisfies E(c)=cE(c)=cE(c)=c; and, for all a∈Aa\in Aa∈A and b,c∈Cb,c\in Cb,c∈C,

E(bac)=bE(a)c.E(bac)=bE(a)c.E(bac)=bE(a)c.

No assumption that AAA or CCC is an algebra is included. Empty III is allowed, while empty AAA or CCC makes the range requirements impossible.

QAlgorithms.Papers.Independent.Bridge50.P31.Conditions

For finite types I,JI,JI,J with decidable equality, unital complex star subalgebras A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), B⊆MJ(C)B\subseteq M_J(\mathbb C)B⊆MJ​(C), a complex linear map T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), and matrix ρ\rhoρ, this predicate asserts that the entire range of TTT lies in BBB, the entire range of T†T^\daggerT† lies in AAA, every σ∈S\sigma\in Sσ∈S belongs to AAA, is positive semidefinite, and has real trace 111, and ρ∈S\rho\in Sρ∈S with both ρ\rhoρ and T(ρ)T(\rho)T(ρ) positive definite. Here (T†(b))ij=∑k,l∈JT(Eij)kl‾bkl(T^\dagger(b))_{ij}=\sum_{k,l\in J}\overline{T(E_{ij})_{kl}}b_{kl}(T†(b))ij​=∑k,l∈J​T(Eij​)kl​​bkl​. It additionally requires T†(1J)=1IT^\dagger(1_J)=1_IT†(1J​)=1I​ and T†(b∗b)−T†(b)∗T†(b)⪰0T^\dagger(b^*b)-T^\dagger(b)^*T^\dagger(b)\succeq0T†(b∗b)−T†(b)∗T†(b)⪰0 for every b∈Bb\in Bb∈B, as well as Dρ(1I)=1JD_\rho(1_I)=1_JDρ​(1I​)=1J​ and Dρ(a∗a)−Dρ(a)∗Dρ(a)⪰0D_\rho(a^*a)-D_\rho(a)^*D_\rho(a)\succeq0Dρ​(a∗a)−Dρ​(a)∗Dρ​(a)⪰0 for every a∈Aa\in Aa∈A, where

Dρ(a)=P−1/2(T(ρ)) T ⁣(P1/2(ρ)aP1/2(ρ))P−1/2(T(ρ)),Ps(X)=cfc⁡ ⁣(x↦{0x=0,xsx≠0,X).D_\rho(a)=P_{-1/2}(T(\rho))\,T\!\left(P_{1/2}(\rho)aP_{1/2}(\rho)\right)P_{-1/2}(T(\rho)), \qquad P_s(X)=\operatorname{cfc}\!\left(x\mapsto \begin{cases}0&x=0,\\x^s&x\ne0,\end{cases}X\right).Dρ​(a)=P−1/2​(T(ρ))T(P1/2​(ρ)aP1/2​(ρ))P−1/2​(T(ρ)),Ps​(X)=cfc(x↦{0xs​x=0,x=0,​X).

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 SSS to be nonempty.

QAlgorithms.Papers.Independent.Bridge50.P31.CornerKPositive

For finite index types I,JI,JI,J with decidable equality, a unital complex star subalgebra A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), an arbitrary matrix p∈MI(C)p\in M_I(\mathbb C)p∈MI​(C), an arbitrary function T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), and a natural number nnn, this predicate means that every positive semidefinite matrix XXX indexed by {0,…,n−1}×I\{0,\ldots,n-1\}\times I{0,…,n−1}×I, whose blocks Xab=(X(a,i),(b,j))i,j∈IX_{ab}=(X_{(a,i),(b,j)})_{i,j\in I}Xab​=(X(a,i),(b,j)​)i,j∈I​ satisfy Xab∈AX_{ab}\in AXab​∈A and pXabp=XabpX_{ab}p=X_{ab}pXab​p=Xab​ for every a,ba,ba,b, produces a positive semidefinite matrix YYY indexed by {0,…,n−1}×J\{0,\ldots,n-1\}\times J{0,…,n−1}×J, where

Y(a,u),(b,v)=T(Xab)uv.Y_{(a,u),(b,v)}=T(X_{ab})_{uv}.Y(a,u),(b,v)​=T(Xab​)uv​.

Neither linearity of TTT nor a projection property of ppp is assumed. The value n=0n=0n=0 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 I,JI,JI,J with decidable equality, unital complex star subalgebras A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), B⊆MJ(C)B\subseteq M_J(\mathbb C)B⊆MJ​(C), a complex-linear map T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), a set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), and arbitrary matrices p∈MI(C)p\in M_I(\mathbb C)p∈MI​(C), p0∈MJ(C)p_0\in M_J(\mathbb C)p0​∈MJ​(C), put C={a∈A:pap=a}C=\{a\in A:pap=a\}C={a∈A:pap=a} and D={b∈B:p0bp0=b}D=\{b\in B:p_0bp_0=b\}D={b∈B:p0​bp0​=b}. The predicate asserts that there exists a complex-linear map R:MJ(C)→MI(C)R:M_J(\mathbb C)\to M_I(\mathbb C)R:MJ​(C)→MI​(C) such that every matrix b∈MJ(C)b\in M_J(\mathbb C)b∈MJ​(C) has R(b)∈CR(b)\in CR(b)∈C, every matrix a∈MI(C)a\in M_I(\mathbb C)a∈MI​(C) has R♯(a)∈DR^\sharp(a)\in DR♯(a)∈D, R♯(p)=p0R^\sharp(p)=p_0R♯(p)=p0​, and

R♯(a†a)−R♯(a)†R♯(a)⪰0(a∈C),R(T(σ))=σ(σ∈S),R^\sharp(a^\dagger a)-R^\sharp(a)^\dagger R^\sharp(a)\succeq0 \quad(a\in C), \qquad R(T(\sigma))=\sigma\quad(\sigma\in S),R♯(a†a)−R♯(a)†R♯(a)⪰0(a∈C),R(T(σ))=σ(σ∈S),

where, writing EijE_{ij}Eij​ for matrix units, R♯(a)uv=∑i,j∈IR(Euv)ij‾ aijR^\sharp(a)_{uv}=\sum_{i,j\in I}\overline{R(E_{uv})_{ij}}\,a_{ij}R♯(a)uv​=∑i,j∈I​R(Euv​)ij​​aij​. The range requirements concern all matrices in the respective ambient spaces. No projection assumptions on p,p0p,p_0p,p0​ are imposed, and the recovery requirement is vacuous when SSS is empty.

QAlgorithms.Papers.Independent.Bridge50.P31.FaithfulOn

For finite index types I,JI,JI,J with decidable equality, a set AAA of complex I×II\times II×I matrices, and an arbitrary function TTT from complex I×II\times II×I matrices to complex J×JJ\times JJ×J matrices, this property means that every positive semidefinite matrix a∈Aa\in Aa∈A satisfying T(a)=0T(a)=0T(a)=0 is itself zero. No linearity or positivity assumption on TTT is imposed. The property holds vacuously if AAA contains no positive semidefinite matrices.

QAlgorithms.Papers.Independent.Bridge50.P31.FaithfulTraceOn

For any finite type III with decidable equality, set C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), and complex linear functional τ:MI(C)→C\tau:M_I(\mathbb C)\to\mathbb Cτ:MI​(C)→C, this predicate asserts that every positive semidefinite a∈Ca\in Ca∈C satisfies Im⁡τ(a)=0\operatorname{Im}\tau(a)=0Imτ(a)=0 and Re⁡τ(a)≥0\operatorname{Re}\tau(a)\ge0Reτ(a)≥0; every positive semidefinite a∈Ca\in Ca∈C with τ(a)=0\tau(a)=0τ(a)=0 is zero; and every a,b∈Ca,b\in Ca,b∈C satisfies

τ(ab)=τ(ba).\tau(ab)=\tau(ba).τ(ab)=τ(ba).

There is no normalization requirement and no assumption that CCC is an algebra. Empty III is allowed, and all requirements hold vacuously when C=∅C=\varnothingC=∅.

QAlgorithms.Papers.Independent.Bridge50.P31.FamilyReversible

For finite types I,JI,JI,J with decidable equality, unital complex star subalgebras A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), B⊆MJ(C)B\subseteq M_J(\mathbb C)B⊆MJ​(C), a complex linear map T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), and any set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), this predicate means that there exists a complex linear map R:MJ(C)→MI(C)R:M_J(\mathbb C)\to M_I(\mathbb C)R:MJ​(C)→MI​(C) whose entire range lies in AAA, whose adjoint function R†R^\daggerR† has its entire range in BBB, and which satisfies

R†(1I)=1J,R†(a∗a)−R†(a)∗R†(a)⪰0(a∈A),R(T(σ))=σ(σ∈S),R^\dagger(1_I)=1_J,\qquad R^\dagger(a^*a)-R^\dagger(a)^*R^\dagger(a)\succeq0 \quad(a\in A),\qquad R(T(\sigma))=\sigma\quad(\sigma\in S),R†(1I​)=1J​,R†(a∗a)−R†(a)∗R†(a)⪰0(a∈A),R(T(σ))=σ(σ∈S),

where (R†(a))kl=∑i,j∈IR(Ekl)ij‾aij(R^\dagger(a))_{kl}=\sum_{i,j\in I}\overline{R(E_{kl})_{ij}}a_{ij}(R†(a))kl​=∑i,j∈I​R(Ekl​)ij​​aij​. No density condition on SSS, nor positivity or trace preservation of TTT, is assumed. Empty index types are allowed; if SSS is empty, only the recovery identities are vacuous.

QAlgorithms.Papers.Independent.Bridge50.P31.FiniteMixture

For a finite index type III with decidable equality, a set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), and a matrix ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C), this predicate asserts the existence of a natural number nnn, real weights w0,…,wn−1w_0,\ldots,w_{n-1}w0​,…,wn−1​, and matrices a0,…,an−1∈Sa_0,\ldots,a_{n-1}\in Sa0​,…,an−1​∈S such that

wk≥0for every k,∑k=0n−1wk=1,ρ=∑k=0n−1wkak.w_k\ge0\quad\text{for every }k,\qquad \sum_{k=0}^{n-1}w_k=1,\qquad \rho=\sum_{k=0}^{n-1}w_k a_k.wk​≥0for every k,k=0∑n−1​wk​=1,ρ=k=0∑n−1​wk​ak​.

Repeated matrices and zero weights are permitted, and no positivity or normalization of the aka_kak​ is required. Although n=0n=0n=0 is quantified over, it cannot satisfy the weight-sum condition; consequently the predicate cannot hold for S=∅S=\varnothingS=∅.

QAlgorithms.Papers.Independent.Bridge50.P31.GeneralizedSchwarz

For finite index types I,JI,JI,J with decidable equality, a set A⊆CI×IA\subseteq\mathbb C^{I\times I}A⊆CI×I, an arbitrary function T:CI×I→CJ×JT:\mathbb C^{I\times I}\to\mathbb C^{J\times J}T:CI×I→CJ×J, and a matrix c∈CI×Ic\in\mathbb C^{I\times I}c∈CI×I, write P−1(X)=cfc⁡(f,X)P_{-1}(X)=\operatorname{cfc}(f,X)P−1​(X)=cfc(f,X) for the real continuous functional calculus of f(0)=0f(0)=0f(0)=0 and f(x)=x−1f(x)=x^{-1}f(x)=x−1 for x≠0x\ne0x=0. This property means that every a∈Aa\in Aa∈A satisfies both

range⁡(v↦T(a)v)⊆range⁡(v↦T(c)v)\operatorname{range}(v\mapsto T(a)v) \subseteq\operatorname{range}(v\mapsto T(c)v)range(v↦T(a)v)⊆range(v↦T(c)v)

and

T ⁣(a∗P−1(c)a)−T(a)∗P−1(T(c))T(a)is positive semidefinite.T\!\left(a^*P_{-1}(c)a\right) -T(a)^*P_{-1}(T(c))T(a) \quad\text{is positive semidefinite}.T(a∗P−1​(c)a)−T(a)∗P−1​(T(c))T(a)is positive semidefinite.

There is no separate requirement that range⁡(a)⊆range⁡(c)\operatorname{range}(a)\subseteq\operatorname{range}(c)range(a)⊆range(c), and no linearity or positivity assumption on TTT is included. For empty AAA, the property is vacuous.

QAlgorithms.Papers.Independent.Bridge50.P31.InverseRepresentation

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, real number aaa, and Borel measure ν\nuν on R\mathbb RR, this requires a≥0a\ge0a≥0, ν((−∞,0))=0\nu((-\infty,0))=0ν((−∞,0))=0, integrability with respect to ν\nuν of both s↦(1+s2)−1s\mapsto(1+s^2)^{-1}s↦(1+s2)−1 and s↦s/(1+s2)s\mapsto s/(1+s^2)s↦s/(1+s2), and, for every real t>0t>0t>0, integrability of s↦(s+t)−1s\mapsto(s+t)^{-1}s↦(s+t)−1 together with

1f(t)=a+∫R1s+t dν(s).\frac1{f(t)}=a+\int_{\mathbb R}\frac1{s+t}\,d\nu(s).f(t)1​=a+∫R​s+t1​dν(s).

The measure need not be a probability measure or have finite total mass, and an atom at zero is allowed. Reciprocals use 0−1=00^{-1}=00−1=0, including when f(t)=0f(t)=0f(t)=0; the definition does not separately require f(t)>0f(t)>0f(t)>0 or f(t)≠0f(t)\ne0f(t)=0.

QAlgorithms.Papers.Independent.Bridge50.P31.IsStarAlgebraSet

For any finite type III with decidable equality and any set C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), this predicate means that CCC is exactly the underlying set of some unital complex star subalgebra of MI(C)M_I(\mathbb C)MI​(C): it contains zero and the identity and is closed under addition, complex scalar multiplication, matrix multiplication, and conjugate transpose. The index type III may be empty; the set CCC itself cannot be empty.

QAlgorithms.Papers.Independent.Bridge50.P31.MapRanges

For finite types I,JI,JI,J with decidable equality, arbitrary sets A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), B⊆MJ(C)B\subseteq M_J(\mathbb C)B⊆MJ​(C), and any function T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), this predicate asserts that T(a)∈BT(a)\in BT(a)∈B for every matrix a∈MI(C)a\in M_I(\mathbb C)a∈MI​(C), and T†(b)∈AT^\dagger(b)\in AT†(b)∈A for every matrix b∈MJ(C)b\in M_J(\mathbb C)b∈MJ​(C), where the notation T†T^\daggerT† denotes the explicitly defined function

(T†(b))ij=∑k,l∈JT(Eij)kl‾ bkl,(T^\dagger(b))_{ij} =\sum_{k,l\in J}\overline{T(E_{ij})_{kl}}\,b_{kl},(T†(b))ij​=k,l∈J∑​T(Eij​)kl​​bkl​,

and EijE_{ij}Eij​ is the matrix with entry 111 at (i,j)(i,j)(i,j) and zero elsewhere. Neither universal quantifier is restricted to membership in AAA or BBB, and TTT need not be linear. Empty index types are allowed, but either A=∅A=\varnothingA=∅ or B=∅B=\varnothingB=∅ makes the predicate false.

QAlgorithms.Papers.Independent.Bridge50.P31.MetricGenerator

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, this requires all three of the following: for every natural number nnn, including 000, and every pair of positive definite complex n×nn\times nn×n matrices A,BA,BA,B, positivity of B−AB-AB−A implies positivity of f(B)−f(A)f(B)-f(A)f(B)−f(A), where f(A)f(A)f(A) and f(B)f(B)f(B) are formed by real functional calculus; f(t)>0f(t)>0f(t)>0 for every real t>0t>0t>0; and

f(t)=tf(1/t)(t>0).f(t)=t f(1/t)\qquad(t>0).f(t)=tf(1/t)(t>0).

There is no requirement that f(1)=1f(1)=1f(1)=1, and the positivity and symmetry conditions impose no direct restriction on values at nonpositive arguments.

QAlgorithms.Papers.Independent.Bridge50.P31.MetricRich

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R and natural number nnn, this requires that the topological support of a chosen Borel measure νf\nu_fνf​ have cardinality at least nnn. The chosen measure is one admitting a real constant a≥0a\ge0a≥0 with zero mass on (−∞,0)(-\infty,0)(−∞,0), integrable functions (1+s2)−1(1+s^2)^{-1}(1+s2)−1 and s/(1+s2)s/(1+s^2)s/(1+s2), and, for every t>0t>0t>0, an integrable function (s+t)−1(s+t)^{-1}(s+t)−1 satisfying (f(t))−1=a+∫(s+t)−1 dνf(s)(f(t))^{-1}=a+\int(s+t)^{-1}\,d\nu_f(s)(f(t))−1=a+∫(s+t)−1dνf​(s); if no such measure exists, νf\nu_fνf​ 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 n=0n=0n=0; it does not separately require existence of the stated representation.

QAlgorithms.Papers.Independent.Bridge50.P31.NormCriterion

For finite types I,JI,JI,J with decidable equality, any function TTT from complex I×II\times II×I matrices to complex J×JJ\times JJ×J matrices, any complex I×II\times II×I matrix ρ\rhoρ, and any set SSS of complex I×II\times II×I matrices, this is the requirement that

∥σ−tρ∥1=∥T(σ)−tT(ρ)∥1(σ∈S, t∈R, t≥0),\|\sigma-t\rho\|_1=\|T(\sigma)-tT(\rho)\|_1 \qquad(\sigma\in S,\ t\in\mathbb R,\ t\ge0),∥σ−tρ∥1​=∥T(σ)−tT(ρ)∥1​(σ∈S, t∈R, t≥0),

where ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, with the square root taken by real functional calculus. No linearity, positivity, or trace preservation of TTT, or state assumptions on ρ\rhoρ or SSS, are required. The condition includes t=0t=0t=0, is vacuous when S=∅S=\varnothingS=∅, and permits empty index types.

QAlgorithms.Papers.Independent.Bridge50.P31.SandwichDefined

For a finite index type III with decidable equality and arbitrary complex I×II\times II×I matrices c,ac,ac,a, this property means that the range of multiplication by aaa is contained in the range of multiplication by ccc:

range⁡(v↦av)⊆range⁡(v↦cv).\operatorname{range}(v\mapsto av)\subseteq \operatorname{range}(v\mapsto cv).range(v↦av)⊆range(v↦cv).

Equivalently, for every v∈CIv\in\mathbb C^Iv∈CI there exists w∈CIw\in\mathbb C^Iw∈CI with av=cwav=cwav=cw. No Hermitian, positivity, or invertibility hypothesis is included; for c=0c=0c=0, the condition requires a=0a=0a=0.

QAlgorithms.Papers.Independent.Bridge50.P31.SchwarzOn

For finite index types I,JI,JI,J with decidable equality, a set AAA of complex I×II\times II×I matrices, and an arbitrary function TTT from complex I×II\times II×I matrices to complex J×JJ\times JJ×J matrices, this property means that, for every a∈Aa\in Aa∈A,

T(a∗a)−T(a)∗T(a)T(a^*a)-T(a)^*T(a)T(a∗a)−T(a)∗T(a)

is positive semidefinite, where ∗*∗ denotes conjugate transpose. No linearity, positivity, or unitality assumption on TTT is included. If AAA is empty, the property holds vacuously.

QAlgorithms.Papers.Independent.Bridge50.P31.StarIsoOn

For finite types I,JI,JI,J with decidable equality, sets C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), D⊆MJ(C)D\subseteq M_J(\mathbb C)D⊆MJ​(C), and arbitrary functions T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), U:MJ(C)→MI(C)U:M_J(\mathbb C)\to M_I(\mathbb C)U:MJ​(C)→MI​(C), this predicate asserts that T(a)∈DT(a)\in DT(a)∈D and U(T(a))=aU(T(a))=aU(T(a))=a for every a∈Ca\in Ca∈C; U(b)∈CU(b)\in CU(b)∈C and T(U(b))=bT(U(b))=bT(U(b))=b for every b∈Db\in Db∈D; T(a∗)=T(a)∗T(a^*)=T(a)^*T(a∗)=T(a)∗ for every a∈Ca\in Ca∈C; and T(ab)=T(a)T(b)T(ab)=T(a)T(b)T(ab)=T(a)T(b) for every a,b∈Ca,b\in Ca,b∈C, 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 III with decidable equality, a unital complex star subalgebra A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), and a matrix x∈MI(C)x\in M_I(\mathbb C)x∈MI​(C), xxx satisfies this predicate exactly when x∈Ax\in Ax∈A, x=x†x=x^\daggerx=x†, and Tr⁡x=0\operatorname{Tr}x=0Trx=0. No positivity or nonzero condition is imposed; in particular, the zero matrix satisfies the predicate, including when III is empty.

QAlgorithms.Papers.Independent.Bridge50.P31.UnitalSchwarzOn

For finite index types I,JI,JI,J with decidable equality, a set AAA of complex I×II\times II×I matrices, matrices eA∈CI×Ie_A\in\mathbb C^{I\times I}eA​∈CI×I and eB∈CJ×Je_B\in\mathbb C^{J\times J}eB​∈CJ×J, and an arbitrary function T:CI×I→CJ×JT:\mathbb C^{I\times I}\to\mathbb C^{J\times J}T:CI×I→CJ×J, this property means both that T(eA)=eBT(e_A)=e_BT(eA​)=eB​ and that

T(a∗a)−T(a)∗T(a)T(a^*a)-T(a)^*T(a)T(a∗a)−T(a)∗T(a)

is positive semidefinite for every a∈Aa\in Aa∈A. The matrices eA,eBe_A,e_BeA​,eB​ are not required to be identities, projections, or members of any specified sets. When AAA is empty, only T(eA)=eBT(e_A)=e_BT(eA​)=eB​ remains.

QAlgorithms.Papers.Independent.Bridge50.P31.affineFamily

For a finite index type III with decidable equality, a unital complex star subalgebra A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), and arbitrary matrices ρ,x∈MI(C)\rho,x\in M_I(\mathbb C)ρ,x∈MI​(C), this is the set

{σ∈MI(C):σ∈A, σ⪰0, Re⁡Tr⁡σ=1, ∃u∈R, σ=ρ+ux}.\left\{\sigma\in M_I(\mathbb C): \sigma\in A,\ \sigma\succeq0,\ \operatorname{Re}\operatorname{Tr}\sigma=1,\ \exists u\in\mathbb R,\ \sigma=\rho+ux\right\}.{σ∈MI​(C):σ∈A, σ⪰0, ReTrσ=1, ∃u∈R, σ=ρ+ux}.

Neither ρ\rhoρ nor xxx is assumed to satisfy any additional condition. If x=0x=0x=0, the set is {ρ}\{\rho\}{ρ} when ρ\rhoρ satisfies the three displayed conditions, and is empty otherwise; if III is empty, the trace condition makes the set empty.

QAlgorithms.Papers.Independent.Bridge50.P31.algebraMultiplicativeDomain

For finite index types I,JI,JI,J with decidable equality, a set A⊆CI×IA\subseteq\mathbb C^{I\times I}A⊆CI×I, and an arbitrary function T:CI×I→CJ×JT:\mathbb C^{I\times I}\to\mathbb C^{J\times J}T:CI×I→CJ×J, this defines

{a∈A:T(a∗a)=T(a)∗T(a) and T(aa∗)=T(a)T(a)∗}.\left\{a\in A: T(a^*a)=T(a)^*T(a) \ \text{and}\ T(aa^*)=T(a)T(a)^* \right\}.{a∈A:T(a∗a)=T(a)∗T(a) and T(aa∗)=T(a)T(a)∗}.

Here ∗*∗ denotes conjugate transpose. No algebra structure on AAA or linearity, positivity, or unitality of TTT is assumed, and the definition does not itself assert that this set is an algebra. If AAA is empty, the defined set is empty.

QAlgorithms.Papers.Independent.Bridge50.P31.chiSquared

For a finite type III with decidable equality, any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, and arbitrary complex I×II\times II×I matrices σ,ρ\sigma,\rhoσ,ρ, this defines

Re⁡Tr⁡([∑u,v∈Spec⁡R(ρ)Pρ(u)(σ−ρ)Pρ(v)vf(u/v)](σ−ρ)).\operatorname{Re}\operatorname{Tr}\left( \left[ \sum_{u,v\in\operatorname{Spec}_{\mathbb R}(\rho)} \frac{P_\rho(u)(\sigma-\rho)P_\rho(v)}{v f(u/v)} \right](\sigma-\rho) \right).ReTr​​u,v∈SpecR​(ρ)∑​vf(u/v)Pρ​(u)(σ−ρ)Pρ​(v)​​(σ−ρ)​.

Here the spectral set consists of the distinct eigenvalues of a Hermitian ρ\rhoρ and is empty for a non-Hermitian ρ\rhoρ, while Pρ(u)P_\rho(u)Pρ​(u) is the orthogonal projection onto ker⁡(ρ−uI)\ker(\rho-uI)ker(ρ−uI). Division and reciprocals are total, with u/0=0u/0=0u/0=0 and 0−1=00^{-1}=00−1=0. Neither matrix is required to be a density matrix, and no condition on fff is assumed; the formula contains no adjoint of σ−ρ\sigma-\rhoσ−ρ and does not itself assert nonnegativity. Its value is zero for non-Hermitian ρ\rhoρ or an empty index type.

QAlgorithms.Papers.Independent.Bridge50.P31.derivative

For any finite type III with decidable equality and arbitrary matrices σ,ρ∈MI(C)\sigma,\rho\in M_I(\mathbb C)σ,ρ∈MI​(C), this definition returns

P−1/2(ρ) σ P−1/2(ρ),P−1/2(X)=cfc⁡ ⁣(x↦{0x=0,x−1/2x≠0,X),P_{-1/2}(\rho)\,\sigma\,P_{-1/2}(\rho), \qquad P_{-1/2}(X)=\operatorname{cfc}\!\left(x\mapsto \begin{cases}0&x=0,\\x^{-1/2}&x\ne0,\end{cases}X\right),P−1/2​(ρ)σP−1/2​(ρ),P−1/2​(X)=cfc(x↦{0x−1/2​x=0,x=0,​X),

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 III is allowed, and the definition makes no assertion about differentiation.

QAlgorithms.Papers.Independent.Bridge50.P31.extendRecovery

For finite index types I,JI,JI,J with decidable equality, any function R:MJ(C)→MI(C)R:M_J(\mathbb C)\to M_I(\mathbb C)R:MJ​(C)→MI​(C), and arbitrary matrices p0,b∈MJ(C)p_0,b\in M_J(\mathbb C)p0​,b∈MJ​(C) and ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C), the definition returns

R(p0bp0)+Tr⁡ ⁣(b(1−p0))ρ.R(p_0bp_0)+\operatorname{Tr}\!\bigl(b(\mathbf1-p_0)\bigr)\rho.R(p0​bp0​)+Tr(b(1−p0​))ρ.

The trace multiplying ρ\rhoρ is complex valued. No linearity or positivity of RRR, projection property of p0p_0p0​, or normalization of ρ\rhoρ or bbb is assumed; empty index types are allowed.

QAlgorithms.Papers.Independent.Bridge50.P31.faithfulRate

For finite types I,JI,JI,J with decidable equality, an arbitrary function T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), a matrix ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C), and a set S0⊆MI(C)S_0\subseteq M_I(\mathbb C)S0​⊆MI​(C), define log⁡X\log XlogX by the total real spectral functional calculus cfc⁡(log⁡)X \operatorname{cfc}(\log)Xcfc(log)X, using the real logarithm with log⁡0=0\log0=0log0=0, and define the extended-real quantity

D(X∥Y)={Re⁡tr⁡ ⁣(cfc⁡(x↦xlog⁡x)X−Xlog⁡Y),ker⁡Y⊆ker⁡X,+∞,otherwise.D(X\|Y)= \begin{cases} \operatorname{Re}\operatorname{tr}\!\left( \operatorname{cfc}(x\mapsto x\log x)X-X\log Y\right), &\ker Y\subseteq\ker X,\\ +\infty,&\text{otherwise}. \end{cases}D(X∥Y)={Retr(cfc(x↦xlogx)X−XlogY),+∞,​kerY⊆kerX,otherwise.​

Then the real-valued function in this declaration is

faithfulRate⁡(T,ρ,S0)={toReal⁡ ⁣(inf⁡σ∈S0D(Tρ∥Tσ)),S0≠∅,1,S0=∅.\operatorname{faithfulRate}(T,\rho,S_0)= \begin{cases} \displaystyle \operatorname{toReal}\!\left(\inf_{\sigma\in S_0} D(T\rho\|T\sigma)\right),&S_0\ne\varnothing,\\[2mm] 1,&S_0=\varnothing. \end{cases}faithfulRate(T,ρ,S0​)=⎩⎨⎧​toReal(σ∈S0​inf​D(Tρ∥Tσ)),1,​S0​=∅,S0​=∅.​

Here toReal⁡\operatorname{toReal}toReal keeps finite extended-real values and sends both +∞+\infty+∞ and −∞-\infty−∞ to 000. Neither III nor JJJ is required to be nonempty, and there are no assumptions of linearity, positivity, normalization, or faithfulness on T,ρT,\rhoT,ρ, or the elements of S0S_0S0​.

QAlgorithms.Papers.Independent.Bridge50.P31.familySpan

For a finite index type III with decidable equality and any set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), this is the real linear subspace generated by all differences a−ba-ba−b with a,b∈Sa,b\in Sa,b∈S; equivalently, it consists of all finite real linear combinations of such differences. The elements of SSS need not be Hermitian, positive, or normalized. For an empty set or a singleton, the resulting subspace is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Bridge50.P31.fixedPoints

For a finite index type III with decidable equality, a set A⊆CI×IA\subseteq\mathbb C^{I\times I}A⊆CI×I, and an arbitrary function Φ:CI×I→CI×I\Phi:\mathbb C^{I\times I}\to\mathbb C^{I\times I}Φ:CI×I→CI×I, this defines

{a∈A:Φ(a)=a}.\{a\in A:\Phi(a)=a\}.{a∈A:Φ(a)=a}.

No linearity, positivity, or algebraic closure assumption is imposed. For empty AAA, this set is empty.

QAlgorithms.Papers.Independent.Bridge50.P31.generalizedSandwich

For a finite index type III with decidable equality and arbitrary complex I×II\times II×I matrices c,ac,ac,a, this defines

a∗P−1(c)a,P−1(c)=cfc⁡(f,c),f(x)={0,x=0,x−1,x≠0,a^*P_{-1}(c)a, \qquad P_{-1}(c)=\operatorname{cfc}(f,c),\qquad f(x)= \begin{cases} 0,&x=0,\\ x^{-1},&x\ne0, \end{cases}a∗P−1​(c)a,P−1​(c)=cfc(f,c),f(x)={0,x−1,​x=0,x=0,​

where cfc⁡\operatorname{cfc}cfc 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 f:R→Rf:\mathbb R\to\mathbb Rf:R→R, this chooses a Borel measure ν\nuν on R\mathbb RR for which there exists a real a≥0a\ge0a≥0 such that ν((−∞,0))=0\nu((-\infty,0))=0ν((−∞,0))=0, the functions (1+s2)−1(1+s^2)^{-1}(1+s2)−1 and s/(1+s2)s/(1+s^2)s/(1+s2) are ν\nuν-integrable, and, for every t>0t>0t>0, (s+t)−1(s+t)^{-1}(s+t)−1 is ν\nuν-integrable and

(f(t))−1=a+∫R(s+t)−1 dν(s).(f(t))^{-1}=a+\int_{\mathbb R}(s+t)^{-1}\,d\nu(s).(f(t))−1=a+∫R​(s+t)−1dν(s).

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 0−1=00^{-1}=00−1=0.

QAlgorithms.Papers.Independent.Bridge50.P31.inverseMetric

For a finite type III with decidable equality, any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, and arbitrary complex I×II\times II×I matrices ρ,x\rho,xρ,x, this defines

∑u,v∈Spec⁡R(ρ)1vf(u/v) Pρ(u)xPρ(v).\sum_{u,v\in\operatorname{Spec}_{\mathbb R}(\rho)} \frac{1}{v f(u/v)}\,P_\rho(u)xP_\rho(v).u,v∈SpecR​(ρ)∑​vf(u/v)1​Pρ​(u)xPρ​(v).

Here Spec⁡R(ρ)\operatorname{Spec}_{\mathbb R}(\rho)SpecR​(ρ) is the set of distinct eigenvalues if ρ\rhoρ is Hermitian, and is empty otherwise; Pρ(u)P_\rho(u)Pρ​(u) is the orthogonal projection onto ker⁡(ρ−uI)\ker(\rho-uI)ker(ρ−uI). Division and reciprocals are total real operations: u/0=0u/0=0u/0=0, and a zero denominator gives coefficient 000, so every term with v=0v=0v=0 vanishes. No positivity, invertibility, normalization, or condition on fff is assumed. A non-Hermitian ρ\rhoρ, or an empty index type, gives zero.

QAlgorithms.Papers.Independent.Bridge50.P31.inverseRestriction

For finite index types I,JI,JI,J with decidable equality, an arbitrary function T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), and arbitrary sets C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), D⊆MJ(C)D\subseteq M_J(\mathbb C)D⊆MJ​(C), this definition chooses a complex-linear map R:MJ(C)→MI(C)R:M_J(\mathbb C)\to M_I(\mathbb C)R:MJ​(C)→MI​(C) satisfying, if such a map exists,

R(b)∈Cfor every b∈MJ(C),R♯(a)∈Dfor every a∈MI(C),R(T(x))=x(x∈C),R(b)\in C\quad\text{for every }b\in M_J(\mathbb C),\qquad R^\sharp(a)\in D\quad\text{for every }a\in M_I(\mathbb C),\qquad R(T(x))=x\quad(x\in C),R(b)∈Cfor every b∈MJ​(C),R♯(a)∈Dfor every a∈MI​(C),R(T(x))=x(x∈C),

where R♯(a)uv=∑i,j∈IR(Euv)ij‾ aijR^\sharp(a)_{uv}=\sum_{i,j\in I}\overline{R(E_{uv})_{ij}}\,a_{ij}R♯(a)uv​=∑i,j∈I​R(Euv​)ij​​aij​ and EuvE_{uv}Euv​ is a matrix unit in MJ(C)M_J(\mathbb C)MJ​(C). These are requirements on the entire ranges of RRR and R♯R^\sharpR♯, rather than only their restrictions to DDD and CCC. 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 III with decidable equality, arbitrary complex I×II\times II×I matrices σ,ρ\sigma,\rhoσ,ρ, and any real ttt, this defines the matrix of the orthogonal projection onto

ker⁡(σ−tρ)={v∈CI:(σ−tρ)v=0}.\ker(\sigma-t\rho) =\{v\in\mathbb C^I:(\sigma-t\rho)v=0\}.ker(σ−tρ)={v∈CI:(σ−tρ)v=0}.

Indeed, the spectral projector used here projects onto the span of the eigenspaces whose eigenvalue belongs to the singleton {0}\{0\}{0}. No Hermitian, positivity, normalization, or sign assumption on ttt is imposed; a trivial kernel gives the zero projection, and σ−tρ=0\sigma-t\rho=0σ−tρ=0 gives the identity projection.

QAlgorithms.Papers.Independent.Bridge50.P31.metric

For a finite type III with decidable equality, any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, and arbitrary complex I×II\times II×I matrices ρ,x,y\rho,x,yρ,x,y, this defines the real number

Re⁡Tr⁡([∑u,v∈Spec⁡R(ρ)Pρ(u)xPρ(v)vf(u/v)]y).\operatorname{Re}\operatorname{Tr}\left( \left[ \sum_{u,v\in\operatorname{Spec}_{\mathbb R}(\rho)} \frac{P_\rho(u)xP_\rho(v)}{v f(u/v)} \right]y \right).ReTr​​u,v∈SpecR​(ρ)∑​vf(u/v)Pρ​(u)xPρ​(v)​​y​.

The spectral set contains distinct eigenvalues when ρ\rhoρ is Hermitian and is empty otherwise, and Pρ(u)P_\rho(u)Pρ​(u) projects orthogonally onto ker⁡(ρ−uI)\ker(\rho-uI)ker(ρ−uI). Real division and inversion use u/0=0u/0=0u/0=0 and 0−1=00^{-1}=00−1=0. There is no adjoint on xxx or yyy in this formula, and no positivity, symmetry, or normalization assumptions are imposed. The value is zero when ρ\rhoρ is non-Hermitian or III is empty.

QAlgorithms.Papers.Independent.Bridge50.P31.phiTilde

For finite index types I,JI,JI,J with decidable equality, an arbitrary function T:CI×I→CJ×JT:\mathbb C^{I\times I}\to\mathbb C^{J\times J}T:CI×I→CJ×J, a matrix ρ∈CI×I\rho\in\mathbb C^{I\times I}ρ∈CI×I, and a matrix b∈CJ×Jb\in\mathbb C^{J\times J}b∈CJ×J, let

Cij=∑k∈J∑ℓ∈JT(Eij)kℓ‾ bkℓ,i,j∈I,C_{ij}=\sum_{k\in J}\sum_{\ell\in J} \overline{T(E_{ij})_{k\ell}}\,b_{k\ell}, \qquad i,j\in I,Cij​=k∈J∑​ℓ∈J∑​T(Eij​)kℓ​​bkℓ​,i,j∈I,

where EijE_{ij}Eij​ is the corresponding matrix unit. This declaration defines

P−1/2(T(ρ)) T ⁣(P1/2(ρ)CP1/2(ρ)) P−1/2(T(ρ)),P_{-1/2}(T(\rho))\, T\!\left(P_{1/2}(\rho)CP_{1/2}(\rho)\right)\, P_{-1/2}(T(\rho)),P−1/2​(T(ρ))T(P1/2​(ρ)CP1/2​(ρ))P−1/2​(T(ρ)),

where Pt(X)P_t(X)Pt​(X) is the real continuous functional calculus of the scalar function that is zero at zero and equals the total real power xtx^txt elsewhere. No linearity, positivity, density-matrix, or invertibility hypothesis is included, and empty sums defining CCC are zero.

QAlgorithms.Papers.Independent.Bridge50.P31.positiveTest

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices σ,ρ\sigma,\rhoσ,ρ, and any real ttt, let H=σ−tρH=\sigma-t\rhoH=σ−tρ. This defines the matrix obtained by first applying the real functional-calculus function u↦max⁡(u,0)u\mapsto\max(u,0)u↦max(u,0) to HHH, then applying the function that is 000 at zero and 111 everywhere else to the resulting matrix. Thus, when HHH 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 HHH is non-Hermitian. No positivity, normalization, or restriction on ttt is assumed.

QAlgorithms.Papers.Independent.Bridge50.P31.projectionExampleReference

For a finite index type III with decidable equality and arbitrary matrices σ,p∈MI(C)\sigma,p\in M_I(\mathbb C)σ,p∈MI​(C), set

λ=Re⁡Tr⁡(pσ),x=(1−λ)p+λ(1−p).\lambda=\operatorname{Re}\operatorname{Tr}(p\sigma), \qquad x=(1-\lambda)p+\lambda(\mathbf1-p).λ=ReTr(pσ),x=(1−λ)p+λ(1−p).

The definition returns (1−x)−1σx(\mathbf1-x)^{-1}\sigma x(1−x)−1σx, in that multiplication order. No projection condition on ppp, density condition on σ\sigmaσ, or invertibility condition on 1−x\mathbf1-x1−x is required. The matrix inverse is total: over C\mathbb CC, 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 III with decidable equality, an arbitrary matrix ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C), and a set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), this is the smallest unital complex star subalgebra containing all matrices

ρ[it](P−1/2(ρ) σ P−1/2(ρ))ρ[−it],σ∈S,t∈R.\rho^{[it]}\bigl(P_{-1/2}(\rho)\,\sigma\,P_{-1/2}(\rho)\bigr)\rho^{[-it]}, \qquad \sigma\in S,\quad t\in\mathbb R.ρ[it](P−1/2​(ρ)σP−1/2​(ρ))ρ[−it],σ∈S,t∈R.

Here Ps(X)P_s(X)Ps​(X) is the real functional calculus of the scalar function that is 000 at 000 and xsx^sxs elsewhere. For Hermitian ρ=Udiag⁡(λj)U†\rho=U\operatorname{diag}(\lambda_j)U^\daggerρ=Udiag(λj​)U†, ρ[z]=Udiag⁡(gz(λj))U†\rho^{[z]}=U\operatorname{diag}(g_z(\lambda_j))U^\daggerρ[z]=Udiag(gz​(λj​))U†, where gz(0)=0g_z(0)=0gz​(0)=0 and gz(x)=exp⁡(zlog⁡x)g_z(x)=\exp(z\log x)gz​(x)=exp(zlogx) for x≠0x\ne0x=0; for non-Hermitian ρ\rhoρ, ρ[z]\rho^{[z]}ρ[z] is defined to be zero. No density or invertibility condition on ρ\rhoρ is imposed. In particular, zero eigenvalues contribute zero even when z=0z=0z=0, and an empty generating set still generates a unital complex star subalgebra.

QAlgorithms.Papers.Independent.Bridge50.P31.recoveryComposite

For finite index types I,JI,JI,J with decidable equality, an arbitrary function T:CI×I→CJ×JT:\mathbb C^{I\times I}\to\mathbb C^{J\times J}T:CI×I→CJ×J, and arbitrary matrices ρ,a∈CI×I\rho,a\in\mathbb C^{I\times I}ρ,a∈CI×I, define Pt(X)=cfc⁡(ft,X)P_t(X)=\operatorname{cfc}(f_t,X)Pt​(X)=cfc(ft​,X), where ft(0)=0f_t(0)=0ft​(0)=0 and ft(x)=xtf_t(x)=x^tft​(x)=xt for x≠0x\ne0x=0, using total real powers, and put

B=P−1/2(T(ρ)) T ⁣(P1/2(ρ)aP1/2(ρ)) P−1/2(T(ρ)).B=P_{-1/2}(T(\rho))\, T\!\left(P_{1/2}(\rho)aP_{1/2}(\rho)\right)\, P_{-1/2}(T(\rho)).B=P−1/2​(T(ρ))T(P1/2​(ρ)aP1/2​(ρ))P−1/2​(T(ρ)).

The declaration defines the I×II\times II×I matrix whose entries are

∑k∈J∑ℓ∈JT(Eij)kℓ‾ Bkℓ,i,j∈I,\sum_{k\in J}\sum_{\ell\in J} \overline{T(E_{ij})_{k\ell}}\,B_{k\ell}, \qquad i,j\in I,k∈J∑​ℓ∈J∑​T(Eij​)kℓ​​Bkℓ​,i,j∈I,

where EijE_{ij}Eij​ has entry 111 at (i,j)(i,j)(i,j) and zero elsewhere. No linearity of TTT or positivity, normalization, or invertibility of the matrices is assumed; empty sums are zero.

QAlgorithms.Papers.Independent.Bridge50.P31.resolvent

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices a,b,xa,b,xa,b,x, and any real sss, this defines

∑u∈Spec⁡R(a)∑v∈Spec⁡R(b)1u+sv Pa(u)xPb(v).\sum_{u\in\operatorname{Spec}_{\mathbb R}(a)} \sum_{v\in\operatorname{Spec}_{\mathbb R}(b)} \frac{1}{u+sv}\,P_a(u)xP_b(v).u∈SpecR​(a)∑​v∈SpecR​(b)∑​u+sv1​Pa​(u)xPb​(v).

Here Spec⁡R(H)\operatorname{Spec}_{\mathbb R}(H)SpecR​(H) is the finite set of distinct eigenvalues of HHH when HHH is Hermitian, and is empty otherwise; PH(u)P_H(u)PH​(u) is the orthogonal projection onto ker⁡(H−uI)\ker(H-uI)ker(H−uI). The real scalar coefficients are regarded as complex scalars. Reciprocals are total, so a term with u+sv=0u+sv=0u+sv=0 has coefficient 000. No positivity or invertibility is assumed; if either aaa or bbb is non-Hermitian, or if III is empty, the sum is zero.

QAlgorithms.Papers.Independent.Bridge50.P31.restrictionDensity

For any finite type III with decidable equality, set C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), complex linear functional τ:MI(C)→C\tau:M_I(\mathbb C)\to\mathbb Cτ:MI​(C)→C, and arbitrary matrix ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C), this definition selects a matrix ddd satisfying

d∈C,d⪰0,τ(ad)=Tr⁡(ρa)for every a∈C,d\in C,\qquad d\succeq0,\qquad \tau(ad)=\operatorname{Tr}(\rho a)\quad\text{for every }a\in C,d∈C,d⪰0,τ(ad)=Tr(ρa)for every a∈C,

if any such matrix exists. No positivity or normalization of ρ\rhoρ, faithfulness of τ\tauτ, or algebra structure on CCC is assumed. Neither existence nor uniqueness is asserted; if the requirements have no solution, including when CCC is empty, the result is an unspecified matrix. Empty III is allowed.

QAlgorithms.Papers.Independent.Bridge50.P31.saturation

For a finite type III with decidable equality, a complex matrix ρ\rhoρ indexed by I×II\times II×I, and any set SSS of such matrices, this defines

{ρitσρ−it:σ∈S, t∈R}.\left\{\rho^{it}\sigma\rho^{-it}:\sigma\in S,\ t\in\mathbb R\right\}.{ρitσρ−it:σ∈S, t∈R}.

Here the powers have the following literal meaning: if ρ\rhoρ is Hermitian, diagonalize it unitarily and replace each eigenvalue λ≠0\lambda\ne0λ=0 by exp⁡(zlog⁡λ)\exp(z\log\lambda)exp(zlogλ), and each zero eigenvalue by 000, to obtain ρz\rho^zρz; if ρ\rhoρ is not Hermitian, set ρz=0\rho^z=0ρz=0. The logarithm is the total real logarithm, including at negative arguments. No positivity, normalization, or invertibility of ρ\rhoρ is assumed; in particular, ρi0\rho^{i0}ρi0 is the support projection when ρ\rhoρ is Hermitian, rather than necessarily the identity. If SSS is empty the resulting set is empty, and if ρ\rhoρ is non-Hermitian and SSS is nonempty the resulting set is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Bridge50.P31.stateDual

For finite index types I,JI,JI,J with decidable equality, an arbitrary function T:CI×I→CJ×JT:\mathbb C^{I\times I}\to\mathbb C^{J\times J}T:CI×I→CJ×J, and arbitrary matrices ρ,a∈CI×I\rho,a\in\mathbb C^{I\times I}ρ,a∈CI×I, this defines the J×JJ\times JJ×J matrix

P−1/2(T(ρ)) T ⁣(P1/2(ρ) a P1/2(ρ)) P−1/2(T(ρ)),P_{-1/2}(T(\rho))\, T\!\left(P_{1/2}(\rho)\,a\,P_{1/2}(\rho)\right)\, P_{-1/2}(T(\rho)),P−1/2​(T(ρ))T(P1/2​(ρ)aP1/2​(ρ))P−1/2​(T(ρ)),

where Pt(X)=cfc⁡(ft,X)P_t(X)=\operatorname{cfc}(f_t,X)Pt​(X)=cfc(ft​,X), with ft(0)=0f_t(0)=0ft​(0)=0 and ft(x)=xtf_t(x)=x^tft​(x)=xt for x≠0x\ne0x=0, 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 I,JI,JI,J with decidable equality, unital complex star subalgebras A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), B⊆MJ(C)B\subseteq M_J(\mathbb C)B⊆MJ​(C), a complex-linear map T:MI(C)→MJ(C)T:M_I(\mathbb C)\to M_J(\mathbb C)T:MI​(C)→MJ​(C), a set S⊆MI(C)S\subseteq M_I(\mathbb C)S⊆MI​(C), and arbitrary matrices ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C), b∈MJ(C)b\in M_J(\mathbb C)b∈MJ​(C), define Ps(X)P_s(X)Ps​(X) by real functional calculus of the function x↦0x\mapsto0x↦0 at zero and x↦xsx\mapsto x^sx↦xs elsewhere, and define H♯(Y)ij=∑u,vH(Eij)uv‾YuvH^\sharp(Y)_{ij}=\sum_{u,v}\overline{H(E_{ij})_{uv}}Y_{uv}H♯(Y)ij​=∑u,v​H(Eij​)uv​​Yuv​ for any matrix-valued function HHH, with the sum over its output indices. Let CCC be the unital complex star subalgebra generated by ρ[it]P−1/2(ρ)σP−1/2(ρ)ρ[−it]\rho^{[it]}P_{-1/2}(\rho)\sigma P_{-1/2}(\rho)\rho^{[-it]}ρ[it]P−1/2​(ρ)σP−1/2​(ρ)ρ[−it] for σ∈S,t∈R\sigma\in S,t\in\mathbb Rσ∈S,t∈R, where, for Hermitian ρ=Udiag⁡(λj)U†\rho=U\operatorname{diag}(\lambda_j)U^\daggerρ=Udiag(λj​)U†, ρ[z]=Udiag⁡(gz(λj))U†\rho^{[z]}=U\operatorname{diag}(g_z(\lambda_j))U^\daggerρ[z]=Udiag(gz​(λj​))U†, gz(0)=0g_z(0)=0gz​(0)=0, gz(x)=exp⁡(zlog⁡x)g_z(x)=\exp(z\log x)gz​(x)=exp(zlogx) for x≠0x\ne0x=0, and ρ[z]=0\rho^{[z]}=0ρ[z]=0 for non-Hermitian ρ\rhoρ. Let

D={y∈B:T♯(y†y)=T♯(y)†T♯(y), T♯(yy†)=T♯(y)T♯(y)†}.D=\{y\in B:T^\sharp(y^\dagger y)=T^\sharp(y)^\dagger T^\sharp(y),\ T^\sharp(yy^\dagger)=T^\sharp(y)T^\sharp(y)^\dagger\}.D={y∈B:T♯(y†y)=T♯(y)†T♯(y), T♯(yy†)=T♯(y)T♯(y)†}.

Choose complex-linear maps E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C) and F:MJ(C)→MJ(C)F:M_J(\mathbb C)\to M_J(\mathbb C)F:MJ​(C)→MJ​(C) by the following rule: for (U,V,H)=(A,C,E)(U,V,H)=(A,C,E)(U,V,H)=(A,C,E) and (B,D,F)(B,D,F)(B,D,F), require that HHH sends every ambient matrix into VVV, H♯H^\sharpH♯ sends every ambient matrix into UUU, HHH is positive on positive semidefinite elements of UUU, fixes every element of VVV, satisfies H(vuw)=vH(u)wH(vuw)=vH(u)wH(vuw)=vH(u)w for u∈U,v,w∈Vu\in U,v,w\in Vu∈U,v,w∈V, and preserves the complex trace on UUU. Choose a complex-linear map R:MI(C)→MJ(C)R:M_I(\mathbb C)\to M_J(\mathbb C)R:MI​(C)→MJ​(C) whose entire range lies in DDD, whose adjoint’s entire range lies in T♯(D)T^\sharp(D)T♯(D), and which satisfies R(T♯(y))=yR(T^\sharp(y))=yR(T♯(y))=y for every y∈Dy\in Dy∈D. With

Hρ(a)=P−1/2(E(ρ)) E ⁣(P1/2(ρ)aP1/2(ρ))P−1/2(E(ρ)),H_\rho(a)=P_{-1/2}(E(\rho))\, E\!\left(P_{1/2}(\rho)aP_{1/2}(\rho)\right) P_{-1/2}(E(\rho)),Hρ​(a)=P−1/2​(E(ρ))E(P1/2​(ρ)aP1/2​(ρ))P−1/2​(E(ρ)),

the returned matrix is Hρ♯(R♯(F(b)))H_\rho^\sharp(R^\sharp(F(b)))Hρ♯​(R♯(F(b))). Each of the choices of E,F,RE,F,RE,F,R 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 ρ\rhoρ, or invertibility are imposed.

QAlgorithms.Papers.Independent.Bridge50.P31.supportCorner

For a finite index type III with decidable equality, a set AAA of complex I×II\times II×I matrices, and any complex I×II\times II×I matrix ppp, this defines the set

{a∈A:pap=a}.\{a\in A:pap=a\}.{a∈A:pap=a}.

There is no assumption that ppp is Hermitian, idempotent, or positive semidefinite. In particular, p=0p=0p=0 gives A∩{0}A\cap\{0\}A∩{0}, and an empty AAA gives an empty set.

QAlgorithms.Papers.Independent.Bridge50.P31.traceConditionalExpectation

For any finite type III with decidable equality and sets A,C⊆MI(C)A,C\subseteq M_I(\mathbb C)A,C⊆MI​(C), this definition selects a complex linear map E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C) satisfying the following requirements if such a map exists: its entire range lies in CCC; the entire range of E†E^\daggerE†, defined by (E†(b))ij=∑k,l∈IE(Eij)kl‾bkl(E^\dagger(b))_{ij}=\sum_{k,l\in I}\overline{E(E_{ij})_{kl}}b_{kl}(E†(b))ij​=∑k,l∈I​E(Eij​)kl​​bkl​, lies in AAA; it sends positive semidefinite members of AAA to positive semidefinite matrices; it fixes every member of CCC; it satisfies E(bac)=bE(a)cE(bac)=bE(a)cE(bac)=bE(a)c for a∈Aa\in Aa∈A, b,c∈Cb,c\in Cb,c∈C; and Tr⁡(E(a))=Tr⁡(a)\operatorname{Tr}(E(a))=\operatorname{Tr}(a)Tr(E(a))=Tr(a) for every a∈Aa\in Aa∈A. 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 III with decidable equality and arbitrary matrices ρ,a,b∈MI(C)\rho,a,b\in M_I(\mathbb C)ρ,a,b∈MI​(C), this definition returns the complex number

Tr⁡ ⁣(a∗P1/2(ρ) b P1/2(ρ)),P1/2(X)=cfc⁡ ⁣(x↦{0x=0,x1/2x≠0,X),\operatorname{Tr}\!\left(a^*P_{1/2}(\rho)\,b\,P_{1/2}(\rho)\right), \qquad P_{1/2}(X)=\operatorname{cfc}\!\left(x\mapsto \begin{cases}0&x=0,\\x^{1/2}&x\ne0,\end{cases}X\right),Tr(a∗P1/2​(ρ)bP1/2​(ρ)),P1/2​(X)=cfc(x↦{0x1/2​x=0,x=0,​X),

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 ρ\rhoρ, and no inner product properties are asserted. Empty III is included, in which case the trace is zero.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me