Definitions for Multiplicativity of completely bounded p-norms implies a new additivity result
DefinitionQAlgorithms_Papers_Independent_Advance50_P16The objects the formalized statements of Multiplicativity of completely bounded p-norms implies a new additivity result (arXiv:quant-ph/0506196) are stated in. Each was checked against the paper by a blind read-back and a moderator.
finiteTracePower: Finite ordinary trace power near one, PDF p.6. Unlike the frozen oscillator trace-power functional, this is a real trace on a finite matrix.recip: Reciprocal exponent, PDF pp.9–10: infinity has reciprocal zero.outerSandwich: Outer-factor multiplier in (3.2), PDF p.10. The frozensandwichdeclarations act on different spaces; this applies A tensor I and B tensor I to a bipartite matrix.infinityMixedSize: (3.2), PDF p.10, in homogeneous unit-ball form. The extended supremum never assigns default zero to an unbounded set. It is finite for these finite matrices.mixedSize: (3.3), PDF p.10, including t=infinity as the genuine (3.2) endpoint. The factorization set contains A=B=I,Z=Y. All exponents used in statements are >=1.mixedNorm: Real-valued mixed norm (3.3), PDF p.10. Finite matrices and exponents >=1 makemixedSizefinite; no unbounded CB supremum is converted here.matrixMixedSize: Matrix-level norm M_a(L_q(M_d;L_p(M_n))), source PDF pp.11,13–15. Concrete formula: Pisier, arXiv:math/9306206v1, Theorem 2(2), PDF pp.6–7. The amplification is first. Contract its indices with unit S_(2q) multipliers, then flatten the amplification and d indices into the outer q register. This is an actual formula, not an arbitrary norm constrained by the desired theorems.tripleSize: Iterated vector-valued norm via (3.3), PDF pp.10–11,17. The inner operator space's matrix norms arematrixMixedSize, rather than iterated partial traces. Thus arbitrary nonpositive triple matrices are covered.amplifiedFlip: Flip of the two inner factors, leaving the amplification fixed, Theorem 8, PDF p.15.traceLast: Partial trace of the last tensor factor in the intentional 1,3,2 order, (3.24), PDF p.17.inducedSize: Ordinary induced norm (2.1), PDF p.5, on its full complex unit ball.positiveInducedSize: Positive induced norm, PDF pp.5,11. This does not assume trace preservation.amplificationSize: Finite amplification norm in (3.4),(3.5), PDF p.10. Identical outer exponent t appears on both sides; it is not the ordinary Schatten q-to-p amplification.positiveAmplificationSize: Positive finite amplification in Theorem 12, PDF p.20.cbSize: Completely bounded norm, (3.5), PDF pp.9–10. Extended supremum over all positive ancillary dimensions; no maximizing dimension is built into the definition.pureRatio: Pure-input norm ratio (1.6), PDF p.4, with normalized vectors and reference isomorphic to the input. The denominator is strictly positive on these vectors.cbOmega: Omega_p of (1.6), PDF p.4; a norm-ratio supremum, distinct from the frozenomegavectors and numerical-range sets. Its unit sphere is compact for nonzero input. The finite-dimensional ratio is bounded, so the extended supremum is finite.conditionalAt: Conditional entropy at a pure input, (1.1),(2.9), PDF pp.3,7.minCBEntropy: Minimal CB entropy (1.1), PDF p.3. Used on CPT maps with nonzero input/output; then the set is nonempty and compact and the real infimum is finite and attained.powerRatio: The ratio differentiated in Lemma 1, PDF p.6.uniformEntropyQuotient: Uniform entropy-limit quotient and its extension at one, (2.6), PDF pp.6–7. The frozen oscillator entropy-increment quotient is a different function.IsEBT: EBT, PDF pp.24–25: CPT and separable outputs for every finite reference. Uses the accepted separable positive cone, equivalent to separable density at trace one.AdmissibleDensity: Support-compatible beta(X1), (6.8), PDF p.29. Singular B are permitted.minimizerMatrix: v(p,B), (6.6), PDF p.29, on its support-compatible domain.minimizerObjective: Extended minimization objective (6.8), PDF p.29: incompatible supports cost infinity, not the finite value returned by a zero pseudoinverse.densityObjective: Positive-density outerSandwich (3.22), PDF p.16, including the infinity endpoint.positiveFactorSize: Symmetric positive factorization objective, (3.19),(3.21), PDF p.16.factorSize: Extended factorization objective on all matrices, (3.19), PDF p.16.multiplierSize: Multiplier objective in (3.18), PDF p.16, using homogeneous unit balls.positiveMultiplierSize: Positive multiplier reduction of (3.18), PDF p.16.variationalSize: The inner supremum of (3.6), PDF p.11. B is restricted to invertible densities by its caller; A may be singular and Y need only be PSD.dilationState: R,A,E order in Lemma 4, PDF pp.8–9. U acts on A,E and the initial pure density on (R,A),E is explicitly reassociated before conjugation.associateRAE: Reassociation (R,A,E) to ((R,A),E) for tracing E, Lemma 4, PDF p.8.
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P30
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P50
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P11
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P01
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P60
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P19
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
/-!
Statements from Devetak–Junge–King–Ruskai, arXiv:quant-ph/0506196v2.
Entropy is in nats; all finite registers are nonempty in the theorem signatures.
The explicit mixed norms are (3.2),(3.3). Completely bounded norms use extended
suprema over every positive finite ancillary dimension, with t=min(q,p).
No claim about complete operator-space isometry is replaced by a scalar-norm claim.
-/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder ENNReal Topology
open Filter Set
namespace QAlgorithms.Papers.Independent.Advance50.P16
attribute [local instance] Classical.propDecidable Classical.decEq
-- Exact frozen counterparts; their bodies and conventions were checked for this repair.
open QAlgorithms.Papers.Independent.Information100.P60 (Mat)
open QAlgorithms.Papers.Independent.Information100.P56 (entropy)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)
open QAlgorithms.Papers.Independent.Dependency50.P19 (flip)
open QAlgorithms.Papers.Independent.Information100.P34 (choi)
open QAlgorithms.Papers.Independent.Information100.P30 (tensorMap)
open QAlgorithms.Papers.Independent.Information100.P50 (schattenNorm)
open QAlgorithms.Papers.Independent.Information100.P08 (depolarizing)
open QAlgorithms.Papers.Independent.Support50.P11 (wernerHolevoChannel)
/-- Finite ordinary trace power near one, PDF p.6. Unlike the frozen oscillator
trace-power functional, this is a real trace on a finite matrix. -/
def finiteTracePower {I : Type} [Fintype I] (X : Mat I) (p : ℝ) : ℝ :=
(supportPower X p).trace.re
/-- Reciprocal exponent, PDF pp.9–10: infinity has reciprocal zero. -/
def recip (p : ℝ≥0∞) : ℝ := (p⁻¹).toReal
/-- Outer-factor multiplier in (3.2), PDF p.10. The frozen `sandwich` declarations
act on different spaces; this applies A tensor I and B tensor I to a bipartite matrix. -/
def outerSandwich {D I : Type} [Fintype D] [Fintype I]
(A B : Mat D) (Y : Mat (D × I)) : Mat (D × I) :=
Matrix.kronecker A (1 : Mat I) * Y * Matrix.kronecker B (1 : Mat I)
/-- (3.2), PDF p.10, in homogeneous unit-ball form. The extended supremum
never assigns default zero to an unbounded set. It is finite for these finite matrices. -/
def infinityMixedSize {D I : Type} [Fintype D] [Fintype I]
(p : ℝ≥0∞) (Y : Mat (D × I)) : ℝ≥0∞ :=
⨆ A : {A : Mat D // schattenNorm (2 * p) A ≤ 1},
⨆ B : {B : Mat D // schattenNorm (2 * p) B ≤ 1},
ENNReal.ofReal (schattenNorm p (outerSandwich A.val B.val Y))
/-- (3.3), PDF p.10, including t=infinity as the genuine (3.2) endpoint.
The factorization set contains A=B=I,Z=Y. All exponents used in statements are >=1. -/
def mixedSize {D I : Type} [Fintype D] [Fintype I]
(t p : ℝ≥0∞) (Y : Mat (D × I)) : ℝ≥0∞ :=
if t = ⊤ then infinityMixedSize p Y else
⨅ A : Mat D, ⨅ B : Mat D,
⨅ Z : {Z : Mat (D × I) // Y = outerSandwich A B Z},
ENNReal.ofReal (schattenNorm (2 * t) A * schattenNorm (2 * t) B) *
infinityMixedSize p Z.val
/-- Real-valued mixed norm (3.3), PDF p.10. Finite matrices and exponents >=1
make `mixedSize` finite; no unbounded CB supremum is converted here. -/
def mixedNorm {D I : Type} [Fintype D] [Fintype I]
(t p : ℝ≥0∞) (Y : Mat (D × I)) : ℝ := (mixedSize t p Y).toReal
/-- Matrix-level norm M_a(L_q(M_d;L_p(M_n))), source PDF pp.11,13–15.
Concrete formula: Pisier, arXiv:math/9306206v1, Theorem 2(2), PDF pp.6–7.
The amplification is first. Contract its indices with unit S_(2q) multipliers,
then flatten the amplification and d indices into the outer q register.
This is an actual formula, not an arbitrary norm constrained by the desired theorems. -/
def matrixMixedSize {A D I : Type} [Fintype A] [Fintype D] [Fintype I]
(q p : ℝ≥0∞) (Y : Mat (A × (D × I))) : ℝ≥0∞ :=
⨆ L : {L : Mat A // schattenNorm (2*q) L ≤ 1},
⨆ R : {R : Mat A // schattenNorm (2*q) R ≤ 1},
let Z := outerSandwich L.val R.val Y
mixedSize q p (fun x y : (A × D) × I =>
Z (x.1.1,(x.1.2,x.2)) (y.1.1,(y.1.2,y.2)))
/-- Iterated vector-valued norm via (3.3), PDF pp.10–11,17.
The inner operator space's matrix norms are `matrixMixedSize`, rather than
iterated partial traces. Thus arbitrary nonpositive triple matrices are covered. -/
def tripleSize {A D I : Type} [Fintype A] [Fintype D] [Fintype I]
(t q p : ℝ≥0∞) (Y : Mat (A × (D × I))) : ℝ≥0∞ :=
if t = ⊤ then matrixMixedSize q p Y else
⨅ L : Mat A, ⨅ R : Mat A,
⨅ Z : {Z : Mat (A × (D × I)) // Y = outerSandwich L R Z},
ENNReal.ofReal (schattenNorm (2*t) L * schattenNorm (2*t) R) *
matrixMixedSize q p Z.val
/-- Flip of the two inner factors, leaving the amplification fixed,
Theorem 8, PDF p.15. -/
def amplifiedFlip {A D I : Type} (Y : Mat (A × (D × I))) : Mat (A × (I × D)) :=
fun x y => Y (x.1,(x.2.2,x.2.1)) (y.1,(y.2.2,y.2.1))
/-- Partial trace of the last tensor factor in the intentional 1,3,2 order,
(3.24), PDF p.17. -/
def traceLast {A D I : Type} [Fintype I] (Y : Mat (A × (D × I))) : Mat (A × D) :=
fun x y => ∑ i, Y (x.1,(x.2,i)) (y.1,(y.2,i))
/-- Ordinary induced norm (2.1), PDF p.5, on its full complex unit ball. -/
def inducedSize {I J : Type} [Fintype I] [Fintype J]
(q p : ℝ≥0∞) (Phi : Superop I J) : ℝ≥0∞ :=
⨆ X : {X : Mat I // schattenNorm q X ≤ 1}, ENNReal.ofReal (schattenNorm p (Phi X.val))
/-- Positive induced norm, PDF pp.5,11. This does not assume trace preservation. -/
def positiveInducedSize {I J : Type} [Fintype I] [Fintype J]
(q p : ℝ≥0∞) (Phi : Superop I J) : ℝ≥0∞ :=
⨆ X : {X : Mat I // X.PosSemidef ∧ schattenNorm q X ≤ 1},
ENNReal.ofReal (schattenNorm p (Phi X.val))
/-- Finite amplification norm in (3.4),(3.5), PDF p.10. Identical outer exponent t
appears on both sides; it is not the ordinary Schatten q-to-p amplification. -/
def amplificationSize {I J : Type} [Fintype I] [Fintype J]
(d : ℕ) (t q p : ℝ≥0∞) (Phi : Superop I J) : ℝ≥0∞ :=
⨆ X : {X : Mat (Fin d × I) // mixedNorm t q X ≤ 1},
ENNReal.ofReal (mixedNorm t p (idTensorSuperop Phi X.val))
/-- Positive finite amplification in Theorem 12, PDF p.20. -/
def positiveAmplificationSize {I J : Type} [Fintype I] [Fintype J]
(d : ℕ) (t q p : ℝ≥0∞) (Phi : Superop I J) : ℝ≥0∞ :=
⨆ X : {X : Mat (Fin d × I) // X.PosSemidef ∧ mixedNorm t q X ≤ 1},
ENNReal.ofReal (mixedNorm t p (idTensorSuperop Phi X.val))
/-- Completely bounded norm, (3.5), PDF pp.9–10. Extended supremum over all
positive ancillary dimensions; no maximizing dimension is built into the definition. -/
def cbSize {I J : Type} [Fintype I] [Fintype J]
(q p : ℝ≥0∞) (Phi : Superop I J) : ℝ≥0∞ :=
⨆ d : {d : ℕ // 0 < d}, amplificationSize d.val (min q p) q p Phi
/-- Pure-input norm ratio (1.6), PDF p.4, with normalized vectors and reference
isomorphic to the input. The denominator is strictly positive on these vectors. -/
def pureRatio {I J : Type} [Fintype I] [Fintype J]
(p : ℝ≥0∞) (Phi : Superop I J) (psi : EuclideanSpace ℂ (I × I)) : ℝ :=
schattenNorm p (idTensorSuperop Phi (pureDensity psi)) /
schattenNorm p (traceRight (pureDensity psi))
/-- Omega_p of (1.6), PDF p.4; a norm-ratio supremum, distinct from the frozen
`omega` vectors and numerical-range sets. Its unit sphere is compact for nonzero input.
The finite-dimensional ratio is bounded, so the extended supremum is finite. -/
def cbOmega {I J : Type} [Fintype I] [Fintype J]
(p : ℝ≥0∞) (Phi : Superop I J) : ℝ :=
(⨆ psi : {psi : EuclideanSpace ℂ (I × I) // ‖psi‖ = 1},
ENNReal.ofReal (pureRatio p Phi psi.val)).toReal
/-- Conditional entropy at a pure input, (1.1),(2.9), PDF pp.3,7. -/
def conditionalAt {I J : Type} [Fintype I] [Fintype J]
(Phi : Superop I J) (psi : EuclideanSpace ℂ (I × I)) : ℝ :=
entropy (idTensorSuperop Phi (pureDensity psi)) - entropy (traceRight (pureDensity psi))
/-- Minimal CB entropy (1.1), PDF p.3. Used on CPT maps with nonzero input/output;
then the set is nonempty and compact and the real infimum is finite and attained. -/
def minCBEntropy {I J : Type} [Fintype I] [Fintype J] (Phi : Superop I J) : ℝ :=
sInf {s : ℝ | ∃ psi : EuclideanSpace ℂ (I × I), ‖psi‖ = 1 ∧ s = conditionalAt Phi psi}
/-- The ratio differentiated in Lemma 1, PDF p.6. -/
def powerRatio {D I : Type} [Fintype D] [Fintype I]
(X : Mat (D × I)) (p : ℝ) : ℝ := finiteTracePower X p / finiteTracePower (traceRight X) p
/-- Uniform entropy-limit quotient and its extension at one, (2.6), PDF pp.6–7.
The frozen oscillator entropy-increment quotient is a different function. -/
def uniformEntropyQuotient {D I : Type} [Fintype D] [Fintype I]
(p : ℝ) (X : Mat (D × I)) : ℝ :=
if p = 1 then entropy X - entropy (traceRight X) else (1 - powerRatio X p) / (p - 1)
/-- EBT, PDF pp.24–25: CPT and separable outputs for every finite reference.
Uses the accepted separable positive cone, equivalent to separable density at trace one. -/
def IsEBT {I J : Type} [Fintype I] [Fintype J] (Phi : Superop I J) : Prop :=
IsChannel Phi ∧ ∀ d : ℕ, 0 < d → ∀ X : Mat (Fin d × I), IsDensityMatrix X →
Entanglement.IsSeparablePositive (idTensorSuperop Phi X)
/-- Support-compatible beta(X1), (6.8), PDF p.29. Singular B are permitted. -/
def AdmissibleDensity {D I : Type} [Fintype D] [Fintype I]
(X : Mat (D × I)) (B : Mat D) : Prop :=
IsDensityMatrix B ∧ LinearMap.ker B.mulVecLin ≤ LinearMap.ker (traceRight X).mulVecLin
/-- v(p,B), (6.6), PDF p.29, on its support-compatible domain. -/
def minimizerMatrix {D I : Type} [Fintype D] [Fintype I]
(p : ℝ) (X : Mat (D × I)) (B : Mat D) : Mat (D × I) :=
supportPower X (1/2) * Matrix.kronecker (supportPower B (1/p-1)) (1 : Mat I) *
supportPower X (1/2)
/-- Extended minimization objective (6.8), PDF p.29: incompatible supports cost infinity,
not the finite value returned by a zero pseudoinverse. -/
def minimizerObjective {D I : Type} [Fintype D] [Fintype I]
(p : ℝ) (X : Mat (D × I)) (B : Mat D) : ℝ≥0∞ :=
if AdmissibleDensity X B then ENNReal.ofReal (schattenNorm (ENNReal.ofReal p) (minimizerMatrix p X B))
else ⊤
/-- Positive-density outerSandwich (3.22), PDF p.16, including the infinity endpoint. -/
def densityObjective {D I : Type} [Fintype D] [Fintype I]
(p : ℝ≥0∞) (X : Mat (D × I)) (B : Mat D) : ℝ≥0∞ :=
if AdmissibleDensity X B then ENNReal.ofReal
(schattenNorm p (outerSandwich (supportPower B (-(1-recip p)/2))
(supportPower B (-(1-recip p)/2)) X)) else ⊤
/-- Symmetric positive factorization objective, (3.19),(3.21), PDF p.16. -/
def positiveFactorSize {D I : Type} [Fintype D] [Fintype I]
(q p r : ℝ≥0∞) (Y : Mat (D × I)) : ℝ≥0∞ :=
⨅ A : {A : Mat D // A.PosSemidef},
⨅ Z : {Z : Mat (D × I) // Z.PosSemidef ∧ Y = outerSandwich A.val A.val Z},
ENNReal.ofReal (schattenNorm (2*r) A.val ^ 2 * schattenNorm p Z.val)
/-- Extended factorization objective on all matrices, (3.19), PDF p.16. -/
def factorSize {D I : Type} [Fintype D] [Fintype I]
(p r : ℝ≥0∞) (Y : Mat (D × I)) : ℝ≥0∞ :=
⨅ A : Mat D, ⨅ B : Mat D, ⨅ Z : {Z : Mat (D × I) // Y = outerSandwich A B Z},
ENNReal.ofReal (schattenNorm (2*r) A * schattenNorm (2*r) B * schattenNorm p Z.val)
/-- Multiplier objective in (3.18), PDF p.16, using homogeneous unit balls. -/
def multiplierSize {D I : Type} [Fintype D] [Fintype I]
(q r : ℝ≥0∞) (Y : Mat (D × I)) : ℝ≥0∞ :=
⨆ A : {A : Mat D // schattenNorm (2*r) A ≤ 1},
⨆ B : {B : Mat D // schattenNorm (2*r) B ≤ 1},
ENNReal.ofReal (schattenNorm q (outerSandwich A.val B.val Y))
/-- Positive multiplier reduction of (3.18), PDF p.16. -/
def positiveMultiplierSize {D I : Type} [Fintype D] [Fintype I]
(q r : ℝ≥0∞) (Y : Mat (D × I)) : ℝ≥0∞ :=
⨆ A : {A : Mat D // A.PosSemidef ∧ schattenNorm (2*r) A ≤ 1},
ENNReal.ofReal (schattenNorm q (outerSandwich A.val A.val Y))
/-- The inner supremum of (3.6), PDF p.11. B is restricted to invertible densities
by its caller; A may be singular and Y need only be PSD. -/
def variationalSize {D I : Type} [Fintype D] [Fintype I]
(p : ℝ≥0∞) (Y : Mat (D × I)) (B : Mat D) : ℝ≥0∞ :=
⨆ A : {A : Mat D // IsDensityMatrix A},
let L := supportPower A.val (recip p / 2) * supportPower B (-recip p / 2)
let R := supportPower B (-recip p / 2) * supportPower A.val (recip p / 2)
ENNReal.ofReal (schattenNorm p (outerSandwich L R Y))
/-- R,A,E order in Lemma 4, PDF pp.8–9. U acts on A,E and the initial
pure density on (R,A),E is explicitly reassociated before conjugation. -/
def dilationState {R A E : Type} [Fintype R] [Fintype A] [Fintype E]
(U : Matrix.unitaryGroup (A × E) ℂ) (tau : EuclideanSpace ℂ E)
(psi : EuclideanSpace ℂ (R × A)) : Mat (R × (A × E)) :=
let V := Matrix.kronecker (1 : Mat R) (U : Mat (A × E))
let Q : Mat (R × (A × E)) := fun x y =>
pureDensity psi (x.1,x.2.1) (y.1,y.2.1) * pureDensity tau x.2.2 y.2.2
V * Q * Vᴴ
/-- Reassociation (R,A,E) to ((R,A),E) for tracing E, Lemma 4, PDF p.8. -/
def associateRAE {R A E : Type} (G : Mat (R × (A × E))) : Mat ((R × A) × E) :=
fun x y => G (x.1.1,(x.1.2,x.2)) (y.1.1,(y.1.2,y.2))
/-! Sanity checks pin endpoints, tensor order, normalization and invalid-support behavior. -/
example : recip ⊤ = 0 := by simp [recip]
example {I : Type} [Fintype I] : entropy (0 : Mat I) = 0 := by simp [entropy]
example {D I : Type} [Fintype D] [Fintype I] (X : Mat (D × I)) :
uniformEntropyQuotient 1 X = entropy X - entropy (traceRight X) := by simp [uniformEntropyQuotient]
example {D I : Type} [Fintype D] [Fintype I] (p : ℝ≥0∞) (X : Mat (D × I)) :
mixedSize ⊤ p X = infinityMixedSize p X := by simp [mixedSize]
example {D I : Type} [Fintype D] [Fintype I] (X : Mat (D × I)) (B : Mat D)
(h : ¬ AdmissibleDensity X B) (p : ℝ) : minimizerObjective p X B = ⊤ := by
simp [minimizerObjective, h]
example {R A E : Type} (G : Mat (R × (A × E))) (r s : R) (a b : A) (e f : E) :
associateRAE G ((r,a),e) ((s,b),f) = G (r,(a,e)) (s,(b,f)) := rfl
example {D I : Type} [Fintype D] [Fintype I] (Y : Mat (D × I)) :
outerSandwich (1 : Mat D) (1 : Mat D) Y = Y := by
simp [outerSandwich, Matrix.one_kronecker_one]
example {I J : Type} [Fintype I] : choi (fun _ : Mat I => (0 : Mat J)) = 0 := rfl
example {A D I : Type} (Y : Mat (A × (D × I))) :
amplifiedFlip (amplifiedFlip Y) = Y := rfl
example {D I : Type} (Y : Mat (D × I)) :
QAlgorithms.Papers.Independent.Dependency50.P19.flip
(QAlgorithms.Papers.Independent.Dependency50.P19.flip Y) = Y := rfl
example {A D I : Type} [Fintype A] [Fintype D] [Fintype I]
(q p : ℝ≥0∞) (Y : Mat (A × (D × I))) :
tripleSize ⊤ q p Y = matrixMixedSize q p Y := by simp [tripleSize]
example {A D I : Type} [Fintype I] : traceLast (0 : Mat (A × (D × I))) = 0 := by
ext x y
simp [traceLast]
example {D I : Type} [Fintype D] [Fintype I] (X : Mat (D × I)) (B : Mat D)
(h : ¬ AdmissibleDensity X B) (p : ℝ≥0∞) : densityObjective p X B = ⊤ := by
simp [densityObjective, h]
end QAlgorithms.Papers.Independent.Advance50.P16
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P16.AdmissibleDensity
For finite types , any complex matrix indexed by , and any complex matrix indexed by , this property means that is positive semidefinite with , and
Equivalently, every vector satisfying must satisfy . No positivity, Hermiticity or normalization condition is imposed on . Empty finite types are included: if is empty, the trace-one condition on is impossible; if is empty, and the kernel inclusion imposes no additional restriction on .
QAlgorithms.Papers.Independent.Advance50.P16.IsEBT
For finite types and a function , this property means that there exist and matrices , indexed by , such that
and additionally that, for every positive natural number and every positive semidefinite matrix on with , the matrix
has a representation
for some , nonnegative real weights , density matrices on , and density matrices on . Each local density matrix is positive semidefinite with trace , but the weights are not explicitly required to sum to . The representation permits , yielding the zero matrix. The input quantification excludes ; if is empty, no such trace-one exists, so this part of the property is vacuous.
QAlgorithms.Papers.Independent.Advance50.P16.amplificationSize
For finite types , a natural number (including ), exponents , and an arbitrary function , this defines an element of as follows. For any finite index type , write
where is the real value of , functions of matrices use real continuous functional calculus, and powers and division use their total real definitions, including . For indexed by , define
and
Here , regarded as an extended nonnegative real; these suprema, infima and products are taken in , with its convention . Put when this is finite, and when . The defined quantity is
where
No linearity, positivity or channel condition is imposed on , and need not be positive or Hermitian. Empty index types and zero exponents are included; in particular, the conversion of an infinite to makes such an satisfy the displayed input constraint.
QAlgorithms.Papers.Independent.Advance50.P16.amplifiedFlip
For arbitrary types , without finiteness assumptions, and any complex square matrix indexed by , this defines the complex square matrix on whose entries are
Thus both row and column indices exchange their and coordinates while retaining their coordinates. No positivity, Hermiticity, or nonemptiness assumption is imposed.
QAlgorithms.Papers.Independent.Advance50.P16.associateRAE
For arbitrary types , with no finiteness or nonemptiness assumptions, and any complex matrix indexed by , this definition returns the matrix indexed by whose entries are
It changes only the grouping of the three indices and imposes no positivity, normalization, or other condition on ; empty types are permitted.
QAlgorithms.Papers.Independent.Advance50.P16.cbOmega
For finite types , an exponent , and any function , this defines the real number
where
The function is the operator norm, while for finite ,
using real continuous functional calculus and total real arithmetic, including division by zero. The brackets embed into ; the supremum is taken there, and the final real conversion equals its finite value but sends infinity to . No linearity, positivity or channel assumption is imposed on , and are allowed. If is empty there are no unit vectors, so the supremum is the empty extended nonnegative supremum and the result is ; a zero denominator in any ratio likewise gives ratio .
QAlgorithms.Papers.Independent.Advance50.P16.cbSize
For finite types , exponents , and an arbitrary function , this defines an extended nonnegative number. Its matrix-size ingredients are the following: for , while for finite ,
with real continuous functional calculus and total real powers and division. For indexed by , put
where are square on , is square on , and embeds into ; all operations in these formulas are extended nonnegative operations. Write for the real conversion of , taking infinity to , and let . The definition is
where applies separately to each block determined by two outer indices in . Only positive auxiliary dimensions occur, but may be empty and the exponents may be or infinity. There is no positivity condition on or linearity or channel condition on ; an infinite is converted to and hence satisfies the input constraint.
QAlgorithms.Papers.Independent.Advance50.P16.conditionalAt
For finite types , an arbitrary function , and any Euclidean vector , this defines the real number
where
Functions of matrices are evaluated by real continuous functional calculus, and is the natural real logarithm, with its total convention . The matrix applies to the second factor of , and traces out that factor. The vector is not required to be normalized or nonzero, is not required to be linear or a channel, and neither entropy argument is required by this definition to be a density matrix. Empty are included, and the functional-calculus expression uses its total value, including zero on non-Hermitian matrices.
QAlgorithms.Papers.Independent.Advance50.P16.densityObjective
For finite types , , a complex matrix indexed by , and a complex matrix indexed by , put . This definition returns
where , , and as an extended nonnegative real. The quantity is the Euclidean operator norm for ; for finite , writing , it is
Neither positivity nor normalization of is assumed. The cases are included, with in both cases; zero eigenvalues of remain zero under every displayed support power. Empty types are allowed; if is empty, the density condition on is impossible and the value is .
QAlgorithms.Papers.Independent.Advance50.P16.dilationState
For finite types , a unitary complex matrix indexed by , an arbitrary vector , and an arbitrary vector , this definition returns , indexed by , where and
Thus is the outer product of the vector with coordinates , in the displayed register order. Unitarity means . Neither vector is required to have norm one or to be nonzero, so the returned matrix is not required by the inputs to have trace one. Empty index types are included.
QAlgorithms.Papers.Independent.Advance50.P16.factorSize
For finite types , arbitrary , and a complex matrix indexed by , this definition is
as an infimum in , where are complex matrices indexed by and is indexed by . None of these matrices is required to be positive, normalized, or invertible, and the right factor is , without an adjoint. Here , and is the Euclidean operator norm for , while otherwise
Empty types and zero or infinite exponents are allowed, with all powers and divisions interpreted as total functions, including . An infimum over no admissible factorizations would be .
QAlgorithms.Papers.Independent.Advance50.P16.finiteTracePower
For any finite type , any complex square matrix indexed by , and any real exponent , this defines
where uses the real continuous functional calculus and is the total real power operation. No Hermitian, positivity, normalization, or restriction on is imposed. In particular, zero spectral values contribute zero even when or ; the functional calculus returns zero for non-Hermitian . The index type may be empty, in which case the trace is zero.
QAlgorithms.Papers.Independent.Advance50.P16.inducedSize
For finite types , extended nonnegative reals , and any function , this defines
where , viewed as an extended nonnegative real, and
The matrix function uses continuous functional calculus, denotes real conversion, and powers and division are totalized; in particular . No linearity, positivity, continuity, or channel assumption is imposed on , and the admissible matrices need not be Hermitian or positive. Both index types may be empty, and either exponent may be zero or infinite.
QAlgorithms.Papers.Independent.Advance50.P16.infinityMixedSize
For any finite types , extended nonnegative real , and complex square matrix indexed by , this defines
where , viewed as an extended nonnegative real, and, for every complex square matrix ,
Here the matrix function uses continuous functional calculus, is the real conversion of , and real powers and division are totalized. Both and are included; in particular , including for an empty matrix. Neither nor the independently chosen factors must be positive or Hermitian, and either index type may be empty.
QAlgorithms.Papers.Independent.Advance50.P16.matrixMixedSize
For finite types , extended nonnegative reals , and a complex square matrix indexed by , define and
using continuous functional calculus and total real powers and division, with . For a matrix on , define
over square on , and define and
over unrestricted square factors of the indicated sizes; is viewed in . The declaration defines
where and
All optimization and multiplication occur in , including . There are no positivity assumptions; zero or infinite parameters and empty index types are included.
QAlgorithms.Papers.Independent.Advance50.P16.minCBEntropy
For finite types and any function , this defines the real infimum
where
The matrix function uses real continuous functional calculus, with its total value on arbitrary matrices, and is the natural total real logarithm with . No linearity, positivity or channel property of is assumed. This is a real infimum, not an extended-real infimum, and it does not assert attainment; its total value is if the set is empty or unbounded below. In particular, if is empty there are no unit vectors and the defined value is .
QAlgorithms.Papers.Independent.Advance50.P16.minimizerMatrix
For finite types , any real , any complex matrix indexed by , and any complex matrix indexed by , this defines the matrix
Each matrix function is evaluated by real continuous functional calculus, using total real powers and its total zero value on non-Hermitian matrix arguments. There is no assumption that or is positive, Hermitian or normalized, no kernel-inclusion assumption, and no restriction on ; this definition asserts no minimizing property. In particular, gives exponent , and zero eigenvalues of still contribute . Empty finite index types are also allowed.
QAlgorithms.Papers.Independent.Advance50.P16.minimizerObjective
For finite types , a real number , a complex matrix indexed by , and a complex matrix indexed by , this definition returns
where , and means the real functional calculus of the function that is at and at every nonzero real . Here , viewed in . For any extended nonnegative exponent , the custom quantity is the Euclidean operator norm when , and otherwise is
All real powers and divisions use their total definitions, including division by zero. No positivity or normalization is required of . Nonpositive is allowed and becomes exponent in ; in fact . Empty index types are allowed, although an empty makes impossible and hence gives .
QAlgorithms.Papers.Independent.Advance50.P16.mixedNorm
For finite types , extended nonnegative reals , and a complex square matrix indexed by , let and
using continuous functional calculus and total real powers and division, so . Write , regarded as an extended nonnegative real, and define
Set when ; otherwise set
over all complex square on and on , without positivity or invertibility restrictions. The declaration defines the real conversion of : its finite value is retained, while becomes zero. Zero parameters and empty index types are permitted; the optimization and multiplication use , including .
QAlgorithms.Papers.Independent.Advance50.P16.mixedSize
For finite types , extended nonnegative reals , and a complex square matrix indexed by , define and, for ,
using continuous functional calculus, real conversion , and total real powers and division; in particular . For any finite type and matrix indexed by , put
where is regarded as an element of . The declaration defines if , and otherwise defines
The infimum ranges over exact factorizations with independent, unrestricted factors; no positivity or invertibility is required. Zero parameters and empty index types are included. All suprema, infima, and products here are in , with and an empty infimum equal to .
QAlgorithms.Papers.Independent.Advance50.P16.multiplierSize
For finite types , , and an arbitrary complex matrix indexed by , this definition is the extended nonnegative supremum
The matrices need not be positive, and the right multiplier is itself. Here in ; is the Euclidean operator norm when , and otherwise
The supremum may be . Empty types and the endpoint exponents are included; notably , so when the two multiplier constraints hold for every .
QAlgorithms.Papers.Independent.Advance50.P16.outerSandwich
For any finite types , complex square matrices indexed by , and complex square matrix indexed by , this defines
where is the identity matrix indexed by and is the Kronecker product. The factors and are independent: neither an adjoint relation nor positivity, Hermiticity, or normalization is required. Either index type may be empty.
QAlgorithms.Papers.Independent.Advance50.P16.positiveAmplificationSize
For finite types , any , exponents , and any function , this defines the following extended nonnegative supremum. To specify its ingredients, let if , and otherwise let
using real continuous functional calculus, total real powers and total division, including division by zero. For a matrix indexed by , set
and
where are square matrices on , is square on , and means embedded in . All these suprema, infima and products use extended nonnegative arithmetic. Let be the real conversion of , which equals its finite value and equals at infinity. The definition is
where the output block with outer indices is applied to the input block . There is no condition on beyond being a function of the stated type. The definition includes , empty or , and zero or infinite exponents; an infinite input becomes in the constraint.
QAlgorithms.Papers.Independent.Advance50.P16.positiveFactorSize
For finite types , arbitrary , and a complex matrix indexed by , this definition is the extended nonnegative infimum
where is indexed by , is indexed by , and in . For any exponent , is the Euclidean operator norm if , and otherwise
The parameter does not occur in the value. No normalization or invertibility is imposed on either factor, and is not assumed positive. If no such positive semidefinite factorization exists, the infimum is . Empty index types and zero or infinite exponents are included; all powers use their total definitions, in particular .
QAlgorithms.Papers.Independent.Advance50.P16.positiveInducedSize
For finite types , extended nonnegative reals , and any function , this defines
where , viewed as an extended nonnegative real, and
Here the matrix function uses continuous functional calculus, denotes real conversion, and real powers and division are totalized, giving . The input is not required to have trace one, and has no linearity, positivity, continuity, or channel requirement. Empty index types and zero or infinite exponents are included.
QAlgorithms.Papers.Independent.Advance50.P16.positiveMultiplierSize
For finite types , , and an arbitrary complex matrix indexed by , this definition is
with the supremum taken in . There is no positivity or normalization hypothesis on , and may be singular or zero. The conversion means ; the custom quantity is the Euclidean operator norm for , and otherwise
Empty index types and zero or infinite exponents are allowed. In particular, , so at every positive semidefinite satisfies the constraint. The supremum is allowed to be infinite.
QAlgorithms.Papers.Independent.Advance50.P16.powerRatio
For finite types , an arbitrary complex matrix indexed by , and any real exponent , this defines
Here and are evaluated by real continuous functional calculus, and is the total real-power function. No positivity, Hermiticity, trace normalization or restriction on is required. Zero eigenvalues contribute for every exponent, including and negative ; non-Hermitian matrix arguments use the functional calculus’s total zero value. Division by a zero denominator returns , and empty finite index types are allowed.
QAlgorithms.Papers.Independent.Advance50.P16.pureRatio
For finite types , any , any function , and any vector with its Euclidean norm, this defines
Here , and for finite ,
using real continuous functional calculus and total real powers and division. Thus results from applying to the second matrix factor of , and is obtained by tracing out that second factor. Neither normalization nor nonzeroness of is required, and need not be linear, positive or a channel. Empty finite types and are included; if the denominator is , the ratio is by total real division.
QAlgorithms.Papers.Independent.Advance50.P16.recip
For every extended nonnegative real , this defines the real number obtained by taking its reciprocal in and then converting to a real number. Thus the value is when , and it is zero both at and at , since the real conversion sends to zero.
QAlgorithms.Papers.Independent.Advance50.P16.traceLast
For arbitrary types , a finite type , and any complex square matrix indexed by , this defines the complex square matrix on with entries
No positivity, normalization, or Hermiticity is assumed, and need not be finite. If is empty, every entry is zero.
QAlgorithms.Papers.Independent.Advance50.P16.tripleSize
For finite types , extended nonnegative reals , and a complex square matrix indexed by , use and
with continuous functional calculus and total real powers and division, so . For matrices on , put
and, for , put
where are square matrices on , all factorization variables are unrestricted, and is viewed in . For on , define
over square on , where . The declaration defines if , and otherwise defines
over all square on and on . No positivity, adjoint relation, or invertibility is required. Empty index types and zero or infinite parameters are allowed, and all optimization and multiplication use , including .
QAlgorithms.Papers.Independent.Advance50.P16.uniformEntropyQuotient
For finite types , any real , and any complex matrix indexed by , let
This defines the real value
All matrix functions use real continuous functional calculus, including its total zero value for non-Hermitian arguments; is the natural total real logarithm with , and powers use total real powers. The definition requires no positivity or normalization of and permits empty . The branch at is specified directly, without asserting a limiting relation. In the other branch, a zero denominator in the inner trace ratio makes that ratio .
QAlgorithms.Papers.Independent.Advance50.P16.variationalSize
For finite types , , a complex matrix indexed by , and a complex matrix indexed by , write . This definition takes the extended nonnegative supremum, over all positive semidefinite matrices indexed by with , of
Here , and in . The quantity is the Euclidean operator norm at ; otherwise, with , it is
No positivity, density, invertibility, or support condition is imposed on or . Both and give , and support powers at exponent zero still send zero eigenvalues to zero. Empty types are allowed; if is empty there are no density matrices , so this supremum is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.