Definitions for The resource theory of steering
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P36The objects the formalized statements of The resource theory of steering (arXiv:1409.5804) are stated in. Each was checked against the paper by a blind read-back and a moderator.
AssemblageBlocks: PDF p.2, (2): subnormalized density blocks indexed by output and input.bobTotal: PDF p.2, (4): the reduced matrix. Averaging over inputs avoids an arbitrary chosen input. On a positive-size no-signaling assemblage this is each input's sum.assemblageMass: PDF p.2, (5): common trace of an assemblage.IsAssemblage: PDF p.2, (1)–(5): positive finite dimensions, positive blocks, no signaling, and a common trace in [0,1]. Empty physical systems and alphabets are excluded.IsNormalized: PDF p.2, (5): physical input assemblages have trace one.HasFiniteLHSModel: PDF p.2, (6): a normalized LHS model multiplied by the assemblage's assemblageMass. Finite hidden alphabets suffice: responses can be expanded into deterministic strings of outputs and hidden positive matrices grouped by those strings. In particular this definition includes the zero assemblage at positive d,r,s.SteeringProtocol: PDF pp.3–4, (7),(10), Appendix A: Bob's subinstrument followed by his classical message and Alice's two normalized conditional wirings.SteeringProtocol.Complete: PDF p.4, (12): completeness means Bob never aborts.bobStep: PDF p.9, Step 1: Bob acts before Alice chooses her input.protocolBranch: PDF p.9, Steps 2–3: sample x using (w,xf), query Alice's device, then sample af using (w,a,x,xf), retaining Bob's branch w.protocolAction: PDF p.3, (9): the operational map with the outcome forgotten.oneWayFormula: PDF p.10, (A6), equivalently (9)–(10), written as a closed block formula.steeringBranchProbability: PDF p.3, (8): Bob's branch success probability, independent of Alice's input.normalizeAssemblage: PDF p.4: conditional normalization. All physical uses require positive assemblageMass; at zero this raw array is zero and is never called a normalized assemblage.SteeringConverts: PDF p.7 and Appendices E–F: exact single-copy conversion with strictly positive input-independent success. All allowed wirings are quantified.assemblageMixture: PDF p.5, (14): a binary affine combination, also used with nu>1 in (21).assemblageFamilyMixture: PDF p.11, (C2): a finite weighted assemblageMixture with the same index set throughout.SteeringMeasure: PDF p.5, Definition 2: a measure for every finite dimension and alphabet.measureBranch: PDF p.5, (13): zero-probability outcomes contribute zero, without assigning a physical conditional assemblage to an impossible event.StrongMonotonicity: PDF p.5, Definition 2(ii): average monotonicity for complete instruments, with the outcome available to Alice before the average is taken.MeasureConvexity: PDF p.5, Definition 2(iii): convexity, including both endpoints.IsConvexSteeringMonotone: PDF p.5, Definition 2: nonnegative, vanishes on LHS, average monotone, and convex. There is no converse assertion in the vanishing clause.assemblageCQMatrix: PDF p.2, (3): Alice's classical outcome flag, with Bob's actual block.densityD: PDF p.5, (15): the pinned Umegaki divergence, with natural logarithms and +infinity on support failure. The non-density branch is a totalization outside the physical domain; it is never a finite substitute for divergence.steeringClassicalDivergence: PDF p.5, (16): KL divergence of two normalized finite laws, computed as the Umegaki divergence of their diagonal density matrices. This retains negative individual log-ratio contributions before forming the nonnegative total.EntropyStrategy: PDF p.6, (18)–(19): arbitrary finite-outcome complete Bob instrument and an input law chosen after its outcome. The number of outcomes is unrestricted.strategyProbability: PDF p.6, (19): the two input assemblages give separately computed laws.filteredCQ: PDF p.6, numerator in (18): Bob's filtered flagged state at fixed input.conditionalD: PDF p.6, (18): p D(A/p || B/q), zero when p=0 and infinite when p>0=q. This homogeneous convention avoids a fictitious zero-over-zero density matrix.entropyScore: PDF p.6, (18): both the classical outcome KL term and the conditional quantum term weighted by P(x|g) P_g, with separate denominators P_g and P'_g.assemblageEntropy: PDF p.6, Definition 3: complete-order optimization, allowing +infinity. The source's maximum attainment is asserted in relativeEntropy_convexMonotone; it is not assumed or hidden by replacing the range with a bounded real set.EntropyMaximum: PDF p.6, (18): the explicit maximum-attainment obligation.steeringEntropy: PDF p.6, (20): optimize over normalized LHS assemblages on the same space and alphabets. Minimum attainment and finiteness are conclusions below.relativeEntropyMeasure: PDF p.6, Theorem 2: real-valued relative entropy of steering. Its finiteness on every normalized finite assemblage is an explicit theorem obligation.entropyBranch: PDF p.11, (C1): first-input probability weights, with each output separately normalized. If the second branch is impossible and the first is not, the term is infinite; no support-inclusion hypothesis has been added.WeightCandidate: PDF p.6, Definition 4: all raw nu>=0 candidates are retained, including nu>1. Feasible noise and free assemblages are normalized and no-signaling.steerableWeight: PDF p.6, Definition 4: the real infimum; the theorem explicitly asserts that it is an attained minimum, which rules out junk empty/unbounded values.RobustnessCandidate: PDF p.6, Definition 5: arbitrary assemblage noise, not necessarily LHS.steeringRobustness: PDF p.6, Definition 5: the attained minimum is asserted in Theorem 3.conditionalKetProjector: PDF p.6, (23): pure states with no chosen global phase.IsPureAssemblage: PDF p.6, (23): every conditional state has a unit-vector representative, including zero-probability events; purity does not require a pure Bob marginal.IsPureOrthogonal: PDF p.6, following (23): an orthonormal family at each input.angleKet: PDF p.15, (F5): the two qubit bases used for the infinite-class witnesses.angleAssemblage: PDF p.15, (F5): each rank-one block has probability one half.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_ExtendedQuantumEntropy
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
/-!
# The resource theory of steering (arXiv:1409.5804v3)
All locators are PDF pages. Steering-specific definitions below are local to this
paper; IsLaw is imported from the pinned accepted Information100.P56 module. The
finite positive dimensions are unrestricted. Raw block arrays let the same
operation act on normalized and subnormalized assemblages, including zero.
Theorem 4 and the qualitative security motivation are deferred in HARD.md.
Compilation is pending the separate mechanical handoff.
-/
noncomputable section
open scoped BigOperators ENNReal ComplexConjugate ComplexOrder
namespace QAlgorithms.Papers.Independent.Intakethird100.P36
open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)
attribute [local instance] Classical.propDecidable
/-- PDF p.2, (2): subnormalized density blocks indexed by output and input. -/
abbrev AssemblageBlocks (d r s : ℕ) := Fin r → Fin s → Matrix (Fin d) (Fin d) ℂ
variable {d r s df rf sf m : ℕ}
/-- PDF p.2, (4): the reduced matrix. Averaging over inputs avoids an arbitrary
chosen input. On a positive-size no-signaling assemblage this is each input's sum. -/
def bobTotal (rho : AssemblageBlocks d r s) : Matrix (Fin d) (Fin d) ℂ :=
((s : ℂ)⁻¹) • ∑ x, ∑ a, rho a x
/-- PDF p.2, (5): common trace of an assemblage. -/
def assemblageMass (rho : AssemblageBlocks d r s) : ℝ := (bobTotal rho).trace.re
/-- PDF p.2, (1)–(5): positive finite dimensions, positive blocks, no signaling,
and a common trace in [0,1]. Empty physical systems and alphabets are excluded. -/
def IsAssemblage (rho : AssemblageBlocks d r s) : Prop :=
0 < d ∧ 0 < r ∧ 0 < s ∧
(∀ a x, (rho a x).PosSemidef) ∧
(∀ x y, ∑ a, rho a x = ∑ a, rho a y) ∧ 0 ≤ assemblageMass rho ∧ assemblageMass rho ≤ 1
/-- PDF p.2, (5): physical input assemblages have trace one. -/
def IsNormalized (rho : AssemblageBlocks d r s) : Prop := IsAssemblage rho ∧ assemblageMass rho = 1
/-- PDF p.2, (6): a normalized LHS model multiplied by the assemblage's assemblageMass.
Finite hidden alphabets suffice: responses can be expanded into deterministic
strings of outputs and hidden positive matrices grouped by those strings.
In particular this definition includes the zero assemblage at positive d,r,s. -/
def HasFiniteLHSModel (rho : AssemblageBlocks d r s) : Prop :=
IsAssemblage rho ∧ ∃ (n : ℕ) (p : Fin n → ℝ)
(xi : Fin n → Matrix (Fin d) (Fin d) ℂ)
(response : Fin n → Fin s → Fin r → ℝ),
IsLaw p ∧ (∀ l, QAlgorithms.IsDensityMatrix (xi l)) ∧
(∀ l x, IsLaw (response l x)) ∧
∀ a x, rho a x = ∑ l, ((assemblageMass rho * p l * response l x a : ℝ) : ℂ) • xi l
/-- PDF pp.3–4, (7),(10), Appendix A: Bob's subinstrument followed by
his classical message and Alice's two normalized conditional wirings. -/
structure SteeringProtocol (d r s df rf sf m : ℕ) where
dimensions : 0 < d ∧ 0 < r ∧ 0 < s ∧ 0 < df ∧ 0 < rf ∧ 0 < sf
kraus : Fin m → Matrix (Fin df) (Fin d) ℂ
trace_decreasing : (1 - ∑ w, (kraus w).conjTranspose * kraus w).PosSemidef
input : Fin m → Fin sf → Fin s → ℝ
output : Fin m → Fin rf → Fin r → Fin s → Fin sf → ℝ
input_law : ∀ w xf, IsLaw (input w xf)
output_law : ∀ w a x xf, IsLaw (fun af => output w af a x xf)
/-- PDF p.4, (12): completeness means Bob never aborts. -/
def SteeringProtocol.Complete (P : SteeringProtocol d r s df rf sf m) : Prop :=
∑ w, (P.kraus w).conjTranspose * P.kraus w = 1
/-- PDF p.9, Step 1: Bob acts before Alice chooses her input. -/
def bobStep (P : SteeringProtocol d r s df rf sf m) (rho : AssemblageBlocks d r s)
(w : Fin m) : AssemblageBlocks df r s :=
fun a x => P.kraus w * rho a x * (P.kraus w).conjTranspose
/-- PDF p.9, Steps 2–3: sample x using (w,xf), query Alice's device,
then sample af using (w,a,x,xf), retaining Bob's branch w. -/
def protocolBranch (P : SteeringProtocol d r s df rf sf m) (rho : AssemblageBlocks d r s)
(w : Fin m) : AssemblageBlocks df rf sf :=
fun af xf => ∑ x, ∑ a,
(P.output w af a x xf : ℂ) • ((P.input w xf x : ℂ) • bobStep P rho w a x)
/-- PDF p.3, (9): the operational map with the outcome forgotten. -/
def protocolAction (P : SteeringProtocol d r s df rf sf m) (rho : AssemblageBlocks d r s) :
AssemblageBlocks df rf sf := fun af xf => ∑ w, protocolBranch P rho w af xf
/-- PDF p.10, (A6), equivalently (9)–(10), written as a closed block formula. -/
def oneWayFormula (P : SteeringProtocol d r s df rf sf m) (rho : AssemblageBlocks d r s) :
AssemblageBlocks df rf sf :=
fun af xf => ∑ w, ∑ a, ∑ x,
((P.input w xf x * P.output w af a x xf : ℝ) : ℂ) •
(P.kraus w * rho a x * (P.kraus w).conjTranspose)
/-- PDF p.3, (8): Bob's branch success probability, independent of Alice's input. -/
def steeringBranchProbability (P : SteeringProtocol d r s df rf sf m) (rho : AssemblageBlocks d r s)
(w : Fin m) : ℝ :=
(P.kraus w * bobTotal rho * (P.kraus w).conjTranspose).trace.re
/-- PDF p.4: conditional normalization. All physical uses require positive assemblageMass;
at zero this raw array is zero and is never called a normalized assemblage. -/
def normalizeAssemblage (rho : AssemblageBlocks d r s) : AssemblageBlocks d r s :=
fun a x => ((assemblageMass rho : ℂ)⁻¹) • rho a x
/-- PDF p.7 and Appendices E–F: exact single-copy conversion with strictly
positive input-independent success. All allowed wirings are quantified. -/
def SteeringConverts (rho : AssemblageBlocks d r s) (sigma : AssemblageBlocks df rf sf) : Prop :=
IsNormalized rho ∧ IsNormalized sigma ∧
∃ (m : ℕ) (P : SteeringProtocol d r s df rf sf m) (p : ℝ),
0 < p ∧ p ≤ 1 ∧ ∀ af xf, protocolAction P rho af xf = (p : ℂ) • sigma af xf
/-- PDF p.5, (14): a binary affine combination, also used with nu>1 in (21). -/
def assemblageMixture (rho sigma : AssemblageBlocks d r s) (t : ℝ) : AssemblageBlocks d r s :=
fun a x => (t : ℂ) • rho a x + ((1 - t : ℝ) : ℂ) • sigma a x
/-- PDF p.11, (C2): a finite weighted assemblageMixture with the same index set throughout. -/
def assemblageFamilyMixture {n : ℕ} (p : Fin n → ℝ) (rho : Fin n → AssemblageBlocks d r s) :
AssemblageBlocks d r s := fun a x => ∑ j, (p j : ℂ) • rho j a x
/-- PDF p.5, Definition 2: a measure for every finite dimension and alphabet. -/
abbrev SteeringMeasure := (d r s : ℕ) → AssemblageBlocks d r s → ℝ
/-- PDF p.5, (13): zero-probability outcomes contribute zero, without assigning
a physical conditional assemblage to an impossible event. -/
def measureBranch (S : SteeringMeasure) (P : SteeringProtocol d r s df rf sf m)
(rho : AssemblageBlocks d r s) (w : Fin m) : ℝ :=
let p := steeringBranchProbability P rho w
if 0 < p then p * S df rf sf (normalizeAssemblage (protocolBranch P rho w)) else 0
/-- PDF p.5, Definition 2(ii): average monotonicity for complete instruments,
with the outcome available to Alice before the average is taken. -/
def StrongMonotonicity (S : SteeringMeasure) : Prop :=
∀ (d r s df rf sf m : ℕ) (P : SteeringProtocol d r s df rf sf m)
(rho : AssemblageBlocks d r s), IsNormalized rho → P.Complete →
∑ w, measureBranch S P rho w ≤ S d r s rho
/-- PDF p.5, Definition 2(iii): convexity, including both endpoints. -/
def MeasureConvexity (S : SteeringMeasure) : Prop :=
∀ (d r s : ℕ) (rho sigma : AssemblageBlocks d r s) (t : ℝ),
IsNormalized rho → IsNormalized sigma → 0 ≤ t → t ≤ 1 →
S d r s (assemblageMixture rho sigma t) ≤ t * S d r s rho + (1 - t) * S d r s sigma
/-- PDF p.5, Definition 2: nonnegative, vanishes on LHS, average monotone,
and convex. There is no converse assertion in the vanishing clause. -/
def IsConvexSteeringMonotone (S : SteeringMeasure) : Prop :=
(∀ d r s (rho : AssemblageBlocks d r s), IsNormalized rho → 0 ≤ S d r s rho) ∧
(∀ d r s (rho : AssemblageBlocks d r s), IsNormalized rho → HasFiniteLHSModel rho → S d r s rho = 0) ∧
StrongMonotonicity S ∧ MeasureConvexity S
/-- PDF p.2, (3): Alice's classical outcome flag, with Bob's actual block. -/
def assemblageCQMatrix (rho : AssemblageBlocks d r s) (x : Fin s) :
Matrix (Fin r × Fin d) (Fin r × Fin d) ℂ :=
fun i j => if i.1 = j.1 then rho i.1 x i.2 j.2 else 0
/-- PDF p.5, (15): the pinned Umegaki divergence, with natural logarithms
and +infinity on support failure. The non-density branch is a totalization
outside the physical domain; it is never a finite substitute for divergence. -/
def densityD {I : Type*} [Fintype I] [DecidableEq I]
(rho sigma : Matrix I I ℂ) : ℝ≥0∞ :=
if h : QAlgorithms.IsDensityMatrix rho ∧ QAlgorithms.IsDensityMatrix sigma then
QAlgorithms.QuantumLoss.umegakiEntropy rho sigma h.1 h.2
else ⊤
/-- PDF p.5, (16): KL divergence of two normalized finite laws, computed as
the Umegaki divergence of their diagonal density matrices. This retains negative
individual log-ratio contributions before forming the nonnegative total. -/
def steeringClassicalDivergence {n : ℕ} (p q : Fin n → ℝ) : ℝ≥0∞ :=
densityD (Matrix.diagonal (fun i => (p i : ℂ)))
(Matrix.diagonal (fun i => (q i : ℂ)))
/-- PDF p.6, (18)–(19): arbitrary finite-outcome complete Bob instrument and
an input law chosen after its outcome. The number of outcomes is unrestricted. -/
structure EntropyStrategy (d s : ℕ) where
outcomes : ℕ
kraus : Fin outcomes → Matrix (Fin d) (Fin d) ℂ
complete : ∑ g, (kraus g).conjTranspose * kraus g = 1
input : Fin outcomes → Fin s → ℝ
input_law : ∀ g, IsLaw (input g)
/-- PDF p.6, (19): the two input assemblages give separately computed laws. -/
def strategyProbability (T : EntropyStrategy d s) (rho : AssemblageBlocks d r s)
(g : Fin T.outcomes) : ℝ :=
(T.kraus g * bobTotal rho * (T.kraus g).conjTranspose).trace.re
/-- PDF p.6, numerator in (18): Bob's filtered flagged state at fixed input. -/
def filteredCQ (T : EntropyStrategy d s) (rho : AssemblageBlocks d r s)
(g : Fin T.outcomes) (x : Fin s) : Matrix (Fin r × Fin d) (Fin r × Fin d) ℂ :=
assemblageCQMatrix (fun a y => T.kraus g * rho a y * (T.kraus g).conjTranspose) x
/-- PDF p.6, (18): p D(A/p || B/q), zero when p=0 and infinite when p>0=q.
This homogeneous convention avoids a fictitious zero-over-zero density matrix. -/
def conditionalD {I : Type*} [Fintype I] [DecidableEq I]
(p q : ℝ) (A B : Matrix I I ℂ) : ℝ≥0∞ :=
if 0 < p then
if 0 < q then ENNReal.ofReal p * densityD (((p : ℂ)⁻¹) • A) (((q : ℂ)⁻¹) • B)
else ⊤
else 0
/-- PDF p.6, (18): both the classical outcome KL term and the conditional
quantum term weighted by P(x|g) P_g, with separate denominators P_g and P'_g. -/
def entropyScore (T : EntropyStrategy d s) (rho sigma : AssemblageBlocks d r s) : ℝ≥0∞ :=
steeringClassicalDivergence (strategyProbability T rho) (strategyProbability T sigma) +
∑ g, ∑ x, ENNReal.ofReal (T.input g x) *
conditionalD (strategyProbability T rho g) (strategyProbability T sigma g)
(filteredCQ T rho g x) (filteredCQ T sigma g x)
/-- PDF p.6, Definition 3: complete-order optimization, allowing +infinity.
The source's maximum attainment is asserted in relativeEntropy_convexMonotone;
it is not assumed or hidden by replacing the range with a bounded real set. -/
def assemblageEntropy (rho sigma : AssemblageBlocks d r s) : ℝ≥0∞ :=
sSup {v | ∃ T : EntropyStrategy d s, entropyScore T rho sigma = v}
/-- PDF p.6, (18): the explicit maximum-attainment obligation. -/
def EntropyMaximum (rho sigma : AssemblageBlocks d r s) : Prop :=
∃ T : EntropyStrategy d s, entropyScore T rho sigma = assemblageEntropy rho sigma
/-- PDF p.6, (20): optimize over normalized LHS assemblages on the same space
and alphabets. Minimum attainment and finiteness are conclusions below. -/
def steeringEntropy (rho : AssemblageBlocks d r s) : ℝ≥0∞ :=
sInf {v | ∃ sigma : AssemblageBlocks d r s,
IsNormalized sigma ∧ HasFiniteLHSModel sigma ∧ assemblageEntropy rho sigma = v}
/-- PDF p.6, Theorem 2: real-valued relative entropy of steering. Its finiteness
on every normalized finite assemblage is an explicit theorem obligation. -/
def relativeEntropyMeasure : SteeringMeasure :=
fun _ _ _ rho => (steeringEntropy rho).toReal
/-- PDF p.11, (C1): first-input probability weights, with each output separately
normalized. If the second branch is impossible and the first is not, the term
is infinite; no support-inclusion hypothesis has been added. -/
def entropyBranch (P : SteeringProtocol d r s df rf sf m) (rho sigma : AssemblageBlocks d r s)
(w : Fin m) : ℝ≥0∞ :=
let p := steeringBranchProbability P rho w
let q := steeringBranchProbability P sigma w
if 0 < p then
if 0 < q then ENNReal.ofReal p *
assemblageEntropy (normalizeAssemblage (protocolBranch P rho w))
(normalizeAssemblage (protocolBranch P sigma w))
else ⊤
else 0
/-- PDF p.6, Definition 4: all raw nu>=0 candidates are retained, including
nu>1. Feasible noise and free assemblages are normalized and no-signaling. -/
def WeightCandidate (rho : AssemblageBlocks d r s) (nu : ℝ) : Prop :=
0 ≤ nu ∧ ∃ noise sigma : AssemblageBlocks d r s,
IsNormalized noise ∧ IsNormalized sigma ∧ HasFiniteLHSModel sigma ∧ rho = assemblageMixture noise sigma nu
/-- PDF p.6, Definition 4: the real infimum; the theorem explicitly asserts
that it is an attained minimum, which rules out junk empty/unbounded values. -/
def steerableWeight (rho : AssemblageBlocks d r s) : ℝ := sInf {nu | WeightCandidate rho nu}
/-- PDF p.6, Definition 5: arbitrary assemblage noise, not necessarily LHS. -/
def RobustnessCandidate (rho : AssemblageBlocks d r s) (nu : ℝ) : Prop :=
0 ≤ nu ∧ ∃ noise : AssemblageBlocks d r s, IsNormalized noise ∧
HasFiniteLHSModel (fun a x => (((1 + nu : ℝ) : ℂ)⁻¹) • rho a x +
((nu / (1 + nu) : ℝ) : ℂ) • noise a x)
/-- PDF p.6, Definition 5: the attained minimum is asserted in Theorem 3. -/
def steeringRobustness (rho : AssemblageBlocks d r s) : ℝ :=
sInf {nu | RobustnessCandidate rho nu}
/-- PDF p.6, (23): pure states with no chosen global phase. -/
def conditionalKetProjector {d : ℕ} (v : Fin d → ℂ) : Matrix (Fin d) (Fin d) ℂ :=
fun i j => v i * star (v j)
/-- PDF p.6, (23): every conditional state has a unit-vector representative,
including zero-probability events; purity does not require a pure Bob marginal. -/
def IsPureAssemblage (rho : AssemblageBlocks d r s) : Prop :=
∃ (p : Fin s → Fin r → ℝ) (v : Fin r → Fin s → Fin d → ℂ),
(∀ x, IsLaw (p x)) ∧ (∀ a x, ∑ i, Complex.normSq (v a x i) = 1) ∧
∀ a x, rho a x = (p x a : ℂ) • conditionalKetProjector (v a x)
/-- PDF p.6, following (23): an orthonormal family at each input. -/
def IsPureOrthogonal (rho : AssemblageBlocks d r s) : Prop :=
∃ (p : Fin s → Fin r → ℝ) (v : Fin r → Fin s → Fin d → ℂ),
(∀ x, IsLaw (p x)) ∧
(∀ a b x, ∑ i, star (v a x i) * v b x i = if a = b then 1 else 0) ∧
∀ a x, rho a x = (p x a : ℂ) • conditionalKetProjector (v a x)
/-- PDF p.15, (F5): the two qubit bases used for the infinite-class witnesses. -/
def angleKet (theta : ℝ) (a x : Fin 2) : Fin 2 → ℂ :=
if x = 0 then (fun i => if i = a then 1 else 0)
else if a = 0 then (fun i => if i = 0 then (Real.cos theta : ℂ) else (Real.sin theta : ℂ))
else (fun i => if i = 0 then -(Real.sin theta : ℂ) else (Real.cos theta : ℂ))
/-- PDF p.15, (F5): each rank-one block has probability one half. -/
def angleAssemblage (theta : ℝ) : AssemblageBlocks 2 2 2 :=
fun a x => (1 / 2 : ℂ) • conditionalKetProjector (angleKet theta a x)
/-! Sanity checks for the new local interfaces. These are definition checks,
not proofs of the paper's theorems. -/
example : IsLaw (fun _ : Fin 1 => (1 : ℝ)) := by
simp [IsLaw]
example (rho sigma : AssemblageBlocks d r s) : assemblageMixture rho sigma 0 = sigma := by
funext a x
simp [assemblageMixture]
example (rho sigma : AssemblageBlocks d r s) : assemblageMixture rho sigma 1 = rho := by
funext a x
simp [assemblageMixture]
example {I : Type*} [Fintype I] [DecidableEq I]
(A B : Matrix I I ℂ) (q : ℝ) : conditionalD 0 q A B = 0 := by
simp [conditionalD]
example (P : SteeringProtocol d r s df rf sf 0) (rho : AssemblageBlocks d r s) :
protocolAction P rho = 0 := by
funext a x
simp [protocolAction]
example (theta : ℝ) : angleKet theta 0 0 0 = 1 := by
simp [angleKet]
example (theta : ℝ) : angleKet theta 0 0 1 = 0 := by
simp [angleKet]
end QAlgorithms.Papers.Independent.Intakethird100.P36
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakethird100.P36.AssemblageBlocks
For natural numbers , this denotes an arbitrary family of complex matrices, indexed by and . No positivity, normalization, or compatibility conditions are imposed. All three parameters may be zero; if or , there are no blocks, and if , each block is an empty matrix.
QAlgorithms.Papers.Independent.Intakethird100.P36.EntropyMaximum
For arbitrary natural numbers and arbitrary complex matrix families indexed by , this predicate says that there exists a strategy whose score equals the supremum of all strategy scores. A strategy consists of a natural count , matrices satisfying , and real weights satisfying . For each such strategy, put , , , and ; its score is
The divergence is infinite unless are positive semidefinite with trace and ; when these conditions hold it is , with and continuous functional calculus. The conditional term is for , for , and for . No assemblage assumptions are imposed, and the attained supremum may be infinite. If there is no strategy, the supremum is , but this existence predicate is false. Zero dimensions and empty sums are included with total reciprocal and extended arithmetic conventions.
QAlgorithms.Papers.Independent.Intakethird100.P36.EntropyStrategy
For arbitrary natural numbers , an object of this structure consists of a natural number of outcomes, complex matrices for , and real numbers for and , together with the requirements
Here denotes conjugate transpose. None of is explicitly required to be positive. If , completeness is possible only when ; if , the input laws are impossible for any existing outcome, so must be . In particular, is permitted.
QAlgorithms.Papers.Independent.Intakethird100.P36.HasFiniteLHSModel
For natural numbers and a family of complex matrices, this predicate first requires , positive semidefinite blocks, setting-independent sums , and total mass in ; it additionally requires the existence of a natural number , real numbers , complex matrices , and real numbers , indexed by , , , such that
Although is quantified over, it cannot satisfy . Mass zero is allowed and makes every block in the displayed representation zero; mass one is not required.
QAlgorithms.Papers.Independent.Intakethird100.P36.IsAssemblage
For natural numbers and a family of complex matrices indexed by and , this predicate requires , every to be positive semidefinite, and
Thus zero total mass is allowed, while a zero value of any dimension makes the predicate false.
QAlgorithms.Papers.Independent.Intakethird100.P36.IsConvexSteeringMonotone
For an arbitrary function assigning a real number to every array of complex matrices for every , this predicate is the conjunction of four requirements. In these requirements, an array is normalized when , every is positive semidefinite, is independent of , and its mass lies in and equals . First, for every normalized array. Second, for every normalized array that admits some finite representation
where , , , every is a positive semidefinite complex matrix with trace , and , for every ; the finite-model condition also requires positive dimensions, positive semidefinite blocks, setting-independent outcome sums, and mass in . Third, for every normalized , every positive output dimensions , every natural , matrices with and , and nonnegative arrays summing to over and , respectively, put
then the sum over of when , and otherwise, must be at most , with entrywise rescaling and . Fourth, for every pair of normalized arrays of the same dimensions and every ,
All natural dimensions are quantified over, but normalization and protocol hypotheses exclude zero dimensions from these obligations; there is no restriction on the values of on other arrays.
QAlgorithms.Papers.Independent.Intakethird100.P36.IsNormalized
For natural numbers and a family of complex matrices indexed by and , this predicate requires , positive semidefiniteness of every block, equality of for every pair of settings , and, writing
both and . It cannot hold when any dimension is zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.IsPureAssemblage
For natural numbers and a family of complex matrices, this predicate means that there exist real numbers and complex vectors such that, for every setting , for every and ; for every , ; and, for every ,
The vector normalization is required even when . No condition equating the outcome sums for different settings is included. If , all the indexed requirements are vacuous; if and , the probability requirement is impossible, and if and , vector normalization is impossible.
QAlgorithms.Papers.Independent.Intakethird100.P36.IsPureOrthogonal
For natural numbers and a family of complex matrices, this predicate means that there exist real probabilities with for every , and complex vectors , such that for every and ,
Thus all the outcome vectors at each setting are required to be orthonormal, including vectors assigned zero probability. No condition equating the outcome sums between settings is included. For the requirements are vacuous; for , they are impossible if , and otherwise require an orthonormal family of vectors in .
QAlgorithms.Papers.Independent.Intakethird100.P36.MeasureConvexity
For an arbitrary real-valued function on arrays of complex matrices of all natural-number dimensions, this predicate requires that, for every , every two arrays of complex matrices indexed by , and every real , if both arrays are normalized and , then
For each array, normalized means , all its matrices are positive semidefinite, its sums over are independent of , and the real trace of , or of the corresponding expression for , lies in and equals . The endpoints are included. No condition is imposed by this predicate when either array is unnormalized, when a dimension is zero, or when .
QAlgorithms.Papers.Independent.Intakethird100.P36.RobustnessCandidate
For natural numbers , an arbitrary family of complex matrices, and , this predicate holds precisely when and there exists a normalized family such that the family
has a finite hidden-state model. Explicitly, normalization of requires , positive semidefinite blocks, setting-independent sums , and mass , where the mass of any family is . The condition on requires positive semidefinite blocks, setting-independent outcome sums, , and the existence of a natural number , probabilities summing to , positive semidefinite matrices of trace , and probability distributions on the outcomes such that for all . No normalization or assemblage condition is separately imposed on , and has no upper bound. The denominator is positive for a candidate; if any of is zero, the predicate cannot hold.
QAlgorithms.Papers.Independent.Intakethird100.P36.SteeringConverts
For natural numbers , and arrays of complex matrices and of complex matrices, this predicate holds precisely when both arrays are normalized and the following protocol exists. Here normalized means that the three dimensions of the array are positive, every matrix entry of the array is positive semidefinite, its sums over outcomes are independent of the setting, and its mass—defined as the real trace of the average of those sums—is in and equals . There must exist a natural number , matrices for satisfying , nonnegative real numbers summing to over for every , nonnegative real numbers summing to over for every , and a real number with , such that
The protocol is not required to satisfy . Although is included in the existential quantifier, its zero action cannot satisfy the displayed equality for positive and normalized .
QAlgorithms.Papers.Independent.Intakethird100.P36.SteeringMeasure
This is an abbreviation for the type of all functions that take three natural numbers and an arbitrary array of complex matrices and return a real number . All natural-number dimensions, including zero, and all such arrays are allowed. The type imposes no positivity, normalization, invariance, convexity, or monotonicity requirement on .
QAlgorithms.Papers.Independent.Intakethird100.P36.SteeringProtocol.Complete
For natural numbers , let consist of positive dimensions , matrices satisfying , nonnegative input weights summing to one over for every , and nonnegative output weights summing to one over for every . This predicate requires the additional equality
It cannot hold for , since and the empty sum is zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.SteeringProtocol
For natural numbers , this structure consists of proofs that , matrices for , and real arrays and , where , , , and , satisfying
The input normalization holds for every , and the output normalization for every . The parameter may be zero: then these arrays have no entries, their normalization requirements are vacuous, and the matrix inequality reduces to .
QAlgorithms.Papers.Independent.Intakethird100.P36.StrongMonotonicity
For an arbitrary real-valued function on arrays of complex matrices of all natural-number dimensions, this predicate requires the following inequality for every choice of natural numbers , every protocol , and every normalized array . Normalization means , , is independent of , and lies in and equals . The protocol has all six dimensions positive, matrices , nonnegative coefficients summing to over , and nonnegative coefficients summing to over ; it satisfies , and the hypothesis additionally requires completeness, . Define
The required inequality is
where rescaling is entrywise and . There is no requirement here for unnormalized input arrays or incomplete protocols; zero dimensions cannot satisfy the stated hypotheses, and cannot satisfy completeness when .
QAlgorithms.Papers.Independent.Intakethird100.P36.WeightCandidate
For arbitrary natural numbers , an arbitrary family of complex matrices, and a real number , this predicate requires and the existence of two families of the same shape such that
Both and must be normalized in the following precise sense: , every block is positive semidefinite, the sums over are identical for all inputs , and the mass equals for each family . In addition, must admit some finite representation
where is a natural number, and , every is positive semidefinite with trace , and with for every ; the mass factor in the model definition is because is normalized. There is no upper bound , and no separate assemblage assumption is imposed on . The predicate is impossible if any of is zero; the probability law on the hidden indices also rules out .
QAlgorithms.Papers.Independent.Intakethird100.P36.angleAssemblage
For every real , this definition gives a family of complex matrices indexed by outcome and setting :
Equivalently, each block is one half of , using respectively . There is no restriction on .
QAlgorithms.Papers.Independent.Intakethird100.P36.angleKet
For every real and indices , this definition gives a vector in , with coordinates ordered as , by
The real coordinates are regarded as complex numbers, and there is no restriction on .
QAlgorithms.Papers.Independent.Intakethird100.P36.assemblageCQMatrix
For any natural numbers , any array of complex matrices, and any , the defined matrix is indexed by pairs with and , and has entries
Thus its diagonal blocks are the matrices at the chosen setting . No positivity, normalization, or setting-independence assumption is imposed. If or , the matrix has an empty index set; if , there is no possible argument .
QAlgorithms.Papers.Independent.Intakethird100.P36.assemblageEntropy
For arbitrary natural numbers and arbitrary matrix families , with and complex blocks, this defines the supremum in of the following scores over all natural outcome counts , complex matrices , and real weights satisfying , , and . Put , , , and . The score being maximized is
Here is unless are positive semidefinite of trace and ; otherwise it is , where and matrix functions use continuous functional calculus. Also, is zero for , infinite for , and for . Neither family is required to satisfy positivity, normalization, or input consistency. The supremum need not be attained; an empty set of scores has supremum . Zero dimensions and outcome counts are allowed subject to the strategy equations, and all reciprocal and extended arithmetic conventions apply.
QAlgorithms.Papers.Independent.Intakethird100.P36.assemblageFamilyMixture
For any natural numbers , any real coefficients indexed by , and any family of arrays of complex matrices, the defined array has entries
where each coefficient is regarded as a complex scalar. No nonnegativity or sum-to-one condition is imposed on the coefficients, and no positivity or normalization condition is imposed on the arrays. In particular, gives the zero array; the other dimensions may also be zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.assemblageMass
For arbitrary natural numbers and an arbitrary family of complex matrices , indexed by and , this defines the real number
No positivity or normalization is required, so this number is not required to be nonnegative. Empty sums and empty traces are zero, and ; consequently if any of is zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.assemblageMixture
For any natural numbers , any two arrays and of complex matrices, and any real number , the defined array has entries
Both real coefficients are regarded as complex scalars. There is no assumption that , or that either input array is positive, normalized, or has setting-independent outcome sums. Zero dimensions and empty arrays are included.
QAlgorithms.Papers.Independent.Intakethird100.P36.bobStep
For natural numbers , take a protocol consisting of positive dimensions , matrices with , nonnegative input weights normalized over , and nonnegative output weights normalized over , for every choice of their other indices. Given any family , , and a branch index , this defines a family of complex matrices by
No positivity, compatibility, or normalization is assumed for . If , no branch index exists.
QAlgorithms.Papers.Independent.Intakethird100.P36.bobTotal
For arbitrary natural numbers and an arbitrary family of complex matrices , indexed by and , this defines the complex matrix
There are no positivity or normalization assumptions. Empty sums are zero, and the inverse of zero is defined to be zero, so whenever or .
QAlgorithms.Papers.Independent.Intakethird100.P36.conditionalD
For any finite type equipped with decidable equality, arbitrary real numbers , and arbitrary complex matrices indexed by , this defines
The values lie in , and means unless are positive semidefinite, both have trace , and ; when all these conditions hold, it means
using continuous functional calculus and the total scalar convention . The displayed divisions mean scalar multiplication by the complex reciprocals. No sign, trace, or positivity conditions are hypotheses. In particular, gives zero regardless of the other arguments, while for an empty and , the density trace conditions fail and the value is .
QAlgorithms.Papers.Independent.Intakethird100.P36.conditionalKetProjector
For every natural number and every complex vector , this definition gives the complex matrix whose entry is for all . No normalization or nonzero condition is imposed on ; in particular, gives the zero matrix, and gives the empty matrix.
QAlgorithms.Papers.Independent.Intakethird100.P36.densityD
For any finite index type with decidable equality, including the empty type, and any complex matrices indexed by , this definition returns a nonnegative extended real number as follows. If either matrix fails to be positive semidefinite with trace exactly , the value is . If both satisfy those conditions but , where the kernels are those of their matrix actions on complex coordinate vectors, the value is also . Otherwise the value is
regarded as a nonnegative extended real number, where and are applied by continuous functional calculus and are given by and , with the natural logarithm and the total-function convention . The maximum with zero is the conversion from a real number to a nonnegative extended real number. For empty , every matrix has trace zero, so the value is .
QAlgorithms.Papers.Independent.Intakethird100.P36.entropyBranch
Let be natural numbers, and let consist of positive dimensions , complex matrices for satisfying , and real coefficients , satisfying and . For arbitrary input matrix families indexed by , and an outcome , put
and . This defines the value to be when , when , and when , with division applied to every block. For families of blocks indexed by , is the supremum over finite matrices satisfying and weights , , of , where , is the same expression for , and . Here is infinite unless both matrices are positive semidefinite with trace and ; otherwise it is , with and continuous functional calculus. The term is zero for , infinite for , and for . Neither nor is assumed normalized or positive, the protocol need not satisfy , and normalization uses each branch’s own mass , with . The index requires ; extended arithmetic includes .
QAlgorithms.Papers.Independent.Intakethird100.P36.entropyScore
For arbitrary natural numbers , arbitrary families of complex matrices indexed by , and a strategy consisting of outcomes, matrices with , and weights with , define , , and . Let be the block diagonal matrix with blocks indexed by . The score is
Here unless are positive semidefinite with trace and ; otherwise it is , with and continuous functional calculus. The quantity is if , if , and if . All arithmetic in the score is extended nonnegative arithmetic, including . No assemblage or normalization assumptions are imposed on ; zero dimensions, empty sums, and the total reciprocal are included.
QAlgorithms.Papers.Independent.Intakethird100.P36.filteredCQ
For natural numbers , let have outcomes, complex matrices with , and real input weights with for each outcome. Given an arbitrary family of complex matrices, an outcome , and an input , this defines a complex matrix indexed by pairs , whose entries are
The input weights do not enter this formula. No positivity, normalization, or consistency condition is imposed on . The binders and require existing outcome and input indices; or still permits an empty resulting matrix.
QAlgorithms.Papers.Independent.Intakethird100.P36.measureBranch
Let be any real-valued function on arrays of complex matrices of every natural-number dimension. For natural numbers , let be a protocol with all six dimensions positive, matrices satisfying , and real arrays that are nonnegative and sum to over and , respectively, for every choice of their other indices. Given any array of complex matrices and any , put
The defined value is if , and is otherwise. No validity or normalization condition is imposed on , and is unrestricted. In particular, zero and negative both select the zero value, and any zero mass in the rescaling uses .
QAlgorithms.Papers.Independent.Intakethird100.P36.normalizeAssemblage
For any natural numbers and any array of complex matrices, define
The resulting array has entries , with the real scalar regarded as complex. No positivity, normalization, or nonzero-mass assumption is imposed. In particular, inversion at zero is defined to be zero, so produces the zero array. Zero dimensions and empty index sets are included; when , the scalar is also zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.oneWayFormula
For natural numbers , take a protocol with positive dimensions , matrices satisfying , nonnegative input weights summing to one over , and nonnegative output weights summing to one over , for every choice of their other indices. For any family , , this defines a family of complex matrices, indexed by , through
where the real product in parentheses is interpreted as a complex scalar. The input family is arbitrary, and protocol completeness is not assumed. If , the sum gives the zero family.
QAlgorithms.Papers.Independent.Intakethird100.P36.protocolAction
For natural numbers , take a protocol with positive dimensions , matrices satisfying , nonnegative input weights normalized over , and nonnegative output weights normalized over , for every choice of their other indices. For any family , , this defines the complex blocks
No assemblage or normalization condition is imposed on , and no equality is required. For , every resulting block is zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.protocolBranch
For natural numbers , take a protocol with positive dimensions , matrices satisfying , nonnegative weights summing to one over , and nonnegative weights summing to one over , for every choice of the remaining indices. For any family , , and any , this defines the family indexed by whose blocks are
with real weights acting as complex scalars. The family is arbitrary and need not satisfy assemblage or normalization conditions; when , there is no admissible .
QAlgorithms.Papers.Independent.Intakethird100.P36.relativeEntropyMeasure
This defines a real-valued function of every triple of natural numbers and every family of complex matrices by taking the real conversion of the following extended nonnegative infimum. Minimize over families with , positive semidefinite blocks, input-independent sums , mass , and a finite representation , where , , each is positive semidefinite with trace , and , . Here is the supremum, over finite families with and weights , , of
where , , , and . The divergence is unless both matrices are positive semidefinite of trace and ; otherwise it is , with and continuous functional calculus. The conditional term is zero when , infinite when , and when . Real conversion preserves finite values and sends to . Thus an empty minimizing set, including any case with , , or , yields the real value . No assemblage assumption on , monotonicity property, or attainment condition is part of this definition.
QAlgorithms.Papers.Independent.Intakethird100.P36.steerableWeight
For arbitrary natural numbers and a family of complex matrices, the steerable weight is the real infimum of all for which there exist normalized families of the same dimensions satisfying for every , with admitting a finite hidden-state representation. Here a normalized family has , positive semidefinite blocks, sums independent of , and , where . The required representation of the normalized consists of a natural number , probabilities summing to , positive semidefinite matrices of trace , and response probabilities summing to over , such that . There is no explicit restriction or assumption that is an assemblage. If the candidate set is empty, its real infimum is defined to be ; this occurs in particular if any of is zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.steeringBranchProbability
For natural numbers , let be any array of complex matrices, and let be a protocol with all six dimensions positive. Its data are matrices , indexed by , satisfying , and real arrays and , where for each , the numbers are nonnegative and sum to over , and for each , the numbers are nonnegative and sum to over . For any , the defined real number is
No positivity, normalization, or equality of the sums is required of ; consequently, the definition does not itself require this real number to lie in . The protocol’s arrays do not enter this expression.
QAlgorithms.Papers.Independent.Intakethird100.P36.steeringClassicalDivergence
For every natural number , including , and arbitrary real functions , this defines an extended nonnegative real number as follows. Put and , regarded as complex matrices. If both matrices are positive semidefinite with trace , and , the value is
where functions of matrices use continuous functional calculus and the scalar logarithm has its total convention . Otherwise the value is . Thus the density conditions require and , and the kernel condition requires . No such conditions are assumed on the arguments beforehand. When , the trace condition fails and the value is .
QAlgorithms.Papers.Independent.Intakethird100.P36.steeringEntropy
For arbitrary natural numbers and any family of complex matrices, this defines the infimum in , over families described below, of a quantity . An admissible requires , positive semidefinite blocks, equal sums for all inputs , and mass ; it must also admit a finite model: for some natural , numbers summing to , positive semidefinite matrices of trace , and response numbers summing to over , one has . To define , take the supremum over natural , matrices with , and weights with , of
where , , , and . Here is infinite unless are positive semidefinite of trace and ; otherwise it is , with and continuous functional calculus. The term is zero for , infinite for , and for . There is no assumption on , and no attainment is required for either extremum. An empty admissible set has infimum , in particular whenever any of is zero; an empty score set has supremum , and extended arithmetic uses .
QAlgorithms.Papers.Independent.Intakethird100.P36.steeringRobustness
For arbitrary natural numbers and a family of complex matrices, the steering robustness is the real infimum of the numbers for which there exists a normalized family such that has a finite hidden-state model. For a family , write . Normalization of means that , its blocks are positive semidefinite, its outcome sums are independent of the setting, and . The hidden-state condition on means that its blocks are positive semidefinite, its outcome sums are setting-independent, , and there are finitely many density matrices , probabilities summing to , and response probabilities summing to over , with . Each density matrix is positive semidefinite with trace . The definition assumes no such conditions on itself and places no upper bound on . An empty candidate set has real infimum , including when any dimension is zero.
QAlgorithms.Papers.Independent.Intakethird100.P36.strategyProbability
For natural numbers , let consist of a natural outcome count , complex matrices satisfying , and real input weights satisfying for each . For any family of complex matrices and any outcome , this defines the real number
The input weights are part of but do not enter this formula. There is no assumption that is positive, normalized, or has equal outcome sums across inputs; consequently no probability bounds are asserted. Empty sums are zero, and the reciprocal of is interpreted as .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.