Definitions for Vanishing quantum discord is necessary and sufficient for completely positive maps
DefinitionQAlgorithms_Papers_Independent_Advance50_P40The objects the formalized statements of Vanishing quantum discord is necessary and sufficient for completely positive maps (arXiv:0808.0175) are stated in. Each was checked against the paper by a blind read-back and a moderator.
SystemMatrix: System operators in the fixed basis of Eq. (4), PDF p. 2.JointMatrix: Joint operators, system first, in Eq. (1), PDF p. 1.BathFamily: The fixed bath coefficient operators of Eq. (4), PDF p. 2.IsSLFamily: Definition 1 and the adjoint symmetry stated before it, PDF p. 2. This imposes no positivity on individual bath coefficients.sourceAssignment: Eq. (4), PDF p. 2, extended to every system matrix as in Eqs. (14)-(15), PDF p. 4: the (i,j) bath block is X_ij phi_ij. Zero coefficient operators annihilate the corresponding matrix units, independently of the scalar input.IsSLAdmissibleInput: The admissible scalar data of Eq. (4) and its normalization, PDF p. 2. Positivity means positive semidefinite; rank-deficient joint states are included.qdp: Eq. (1), PDF p. 1: conjugate by the joint unitary and trace out the bath.specifiedReducedMap: The specific matrix-unit extension in Eqs. (14)-(15), PDF p. 4. The fixed phi and U precede the varying system input.AllUnitaryCP: The all-unitary CP hypothesis of the Introduction, PDF p. 1, and the necessary-direction proof, PDF p. 3. The linear map agrees with the specified extension on the entire matrix space. CP does not include trace preservation.operatorComponent: Definition 2, PDF pp. 2-3: components are generated by nonzero operator entries. Reflexivity retains isolated indices, including wholly zero singleton blocks.bathBlock: The actual (i,j) bath block of a joint operator, Eq. (4), PDF p. 2.IsSLState: Intrinsic SL membership in the specified system basis, Definition 1 and Discussion, PDF pp. 2,4. On density matrices this is equivalent to existence of an SL expansion: a nonzero bath block must have nonzero trace.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
/-!
Statements from Shabani and Lidar, arXiv:0808.0175v2.
All matrices use fixed orthonormal coordinates, with the system first and bath second.
Theorem 3, Lemma 1, and the arbitrary-state claim are deferred in HARD.md.
Theorem 1 records its minimal rectangular typing correction explicitly.
No CP sufficiency assertion is made for the matrix-unit extension below.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P40
/-- System operators in the fixed basis of Eq. (4), PDF p. 2. -/
abbrev SystemMatrix (n : ℕ) := Matrix (Fin n) (Fin n) ℂ
/-- Joint operators, system first, in Eq. (1), PDF p. 1. -/
abbrev JointMatrix (n m : ℕ) := Matrix (Fin n × Fin m) (Fin n × Fin m) ℂ
/-- The fixed bath coefficient operators of Eq. (4), PDF p. 2. -/
abbrev BathFamily (n m : ℕ) := Fin n → Fin n → SystemMatrix m
/-- Definition 1 and the adjoint symmetry stated before it, PDF p. 2.
This imposes no positivity on individual bath coefficients. -/
def IsSLFamily {n m : ℕ} (phi : BathFamily n m) : Prop :=
(∀ i j, phi i j = 0 ∨ Matrix.trace (phi i j) = 1) ∧
∀ i j, phi j i = (phi i j).conjTranspose
/-- Eq. (4), PDF p. 2, extended to every system matrix as in Eqs. (14)-(15),
PDF p. 4: the (i,j) bath block is X_ij phi_ij. Zero coefficient operators
annihilate the corresponding matrix units, independently of the scalar input. -/
def sourceAssignment {n m : ℕ} (phi : BathFamily n m) (X : SystemMatrix n) :
JointMatrix n m :=
Matrix.of fun p q => X p.1 q.1 * phi p.1 q.1 p.2 q.2
/-- The admissible scalar data of Eq. (4) and its normalization, PDF p. 2.
Positivity means positive semidefinite; rank-deficient joint states are included. -/
def IsSLAdmissibleInput {n m : ℕ} (phi : BathFamily n m) (R : SystemMatrix n) : Prop :=
R.IsHermitian ∧ (∑ i, R i i) = 1 ∧
QAlgorithms.IsDensityMatrix (sourceAssignment phi R)
/-- Eq. (1), PDF p. 1: conjugate by the joint unitary and trace out the bath. -/
def qdp {n m : ℕ} (U : Matrix.unitaryGroup (Fin n × Fin m) ℂ)
(rho : JointMatrix n m) : SystemMatrix n :=
QAlgorithms.traceRight ((U : JointMatrix n m) * rho *
(U : JointMatrix n m).conjTranspose)
/-- The specific matrix-unit extension in Eqs. (14)-(15), PDF p. 4.
The fixed phi and U precede the varying system input. -/
def specifiedReducedMap {n m : ℕ} (phi : BathFamily n m)
(U : Matrix.unitaryGroup (Fin n × Fin m) ℂ) (X : SystemMatrix n) : SystemMatrix n :=
qdp U (sourceAssignment phi X)
/-- The all-unitary CP hypothesis of the Introduction, PDF p. 1, and the
necessary-direction proof, PDF p. 3. The linear map agrees with the specified
extension on the entire matrix space. CP does not include trace preservation. -/
def AllUnitaryCP {n m : ℕ} (phi : BathFamily n m) : Prop :=
∀ U : Matrix.unitaryGroup (Fin n × Fin m) ℂ,
∃ F : SystemMatrix n →ₗ[ℂ] SystemMatrix n,
(∀ X, F X = specifiedReducedMap phi U X) ∧
QAlgorithms.Entanglement.IsCompletelyPositive F
/-- Definition 2, PDF pp. 2-3: components are generated by nonzero operator
entries. Reflexivity retains isolated indices, including wholly zero singleton blocks. -/
def operatorComponent {n m : ℕ} (phi : BathFamily n m) : Setoid (Fin n) :=
Relation.EqvGen.setoid (fun i j => phi i j ≠ 0)
/-- The actual (i,j) bath block of a joint operator, Eq. (4), PDF p. 2. -/
def bathBlock {n m : ℕ} (rho : JointMatrix n m) (i j : Fin n) : SystemMatrix m :=
Matrix.of fun a b => rho (i, a) (j, b)
/-- Intrinsic SL membership in the specified system basis, Definition 1 and
Discussion, PDF pp. 2,4. On density matrices this is equivalent to existence
of an SL expansion: a nonzero bath block must have nonzero trace. -/
def IsSLState {n m : ℕ} (rho : JointMatrix n m) : Prop :=
∀ i j, bathBlock rho i j = 0 ∨ Matrix.trace (bathBlock rho i j) ≠ 0
/-- Sanity: Eq. (4) retains each scalar coefficient and the tensor-factor order. -/
example {n m : ℕ} (phi : BathFamily n m) (X : SystemMatrix n)
(i j : Fin n) (a b : Fin m) :
sourceAssignment phi X (i, a) (j, b) = X i j * phi i j a b := rfl
/-- Sanity: a zero bath family gives the zero joint operator on every input. -/
example {n m : ℕ} (X : SystemMatrix n) :
sourceAssignment (fun _ _ => (0 : SystemMatrix m)) X = 0 := by
ext p q
simp [sourceAssignment]
/-- Sanity: the one-dimensional normalized coefficient family is SL. -/
example : IsSLFamily (fun _ _ : Fin 1 => (1 : SystemMatrix 1)) := by
constructor
· intro i j
right
simp [Matrix.trace]
· intro i j
simp
/-- Sanity: identity joint evolution and a one-dimensional bath keep the entry. -/
example (rho : JointMatrix 1 1) :
qdp (1 : Matrix.unitaryGroup (Fin 1 × Fin 1) ℂ) rho 0 0 = rho (0, 0) (0, 0) := by
simp [qdp, QAlgorithms.traceRight]
/-- Sanity: isolated indices are still in their own component. -/
example {n m : ℕ} (phi : BathFamily n m) (i : Fin n) :
(operatorComponent phi).r i i := Relation.EqvGen.refl i
/-- Sanity: zero bath blocks satisfy the intrinsic SL condition; zero trace
alone does not make a block non-SL. Density is required separately. -/
example {n m : ℕ} : IsSLState (0 : JointMatrix n m) := by
intro i j
left
rfl
/-- Sanity: the physical one-dimensional trace-one state is SL. -/
example : IsSLState (1 : JointMatrix 1 1) := by
intro i j
right
have hij : i = j := Subsingleton.elim _ _
subst j
simp [bathBlock, Matrix.trace]
open scoped Matrix.Norms.Frobenius
end QAlgorithms.Papers.Independent.Advance50.P40
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P40.AllUnitaryCP
For all natural numbers and every family of complex matrices, this predicate holds exactly when, for every unitary complex matrix on the index set , there exists a complex-linear map from complex matrices to complex matrices such that, for every matrix , , where , and such that the following positivity requirement holds: for every natural number and every positive semidefinite complex matrix indexed by , the matrix with entries at is positive semidefinite, where . The equality is required for all , including those that are not admissible, and no SL-family condition is assumed. The case is included; if or , the predicate holds using the zero linear map.
QAlgorithms.Papers.Independent.Advance50.P40.BathFamily
For all natural numbers , a bath family is an assignment sending every ordered pair to a complex matrix . No conditions are imposed on these matrices. When the assignment has no arguments; when every assigned matrix is the unique empty matrix.
QAlgorithms.Papers.Independent.Advance50.P40.IsSLAdmissibleInput
For all natural numbers , every family of complex matrices, and every complex matrix , the input is admissible exactly when is Hermitian, , and the joint matrix with entries is positive semidefinite and has trace . No separate assumption that satisfies the SL-family predicate is included. If either or is zero, these requirements cannot all hold because the joint matrix has trace zero.
QAlgorithms.Papers.Independent.Advance50.P40.IsSLFamily
For all natural numbers and every family of complex matrices, the family satisfies this predicate exactly when every block is either the zero matrix or has complex trace equal to , and for every , where denotes conjugate transpose. For both requirements are vacuous; for every block is zero and the predicate holds.
QAlgorithms.Papers.Independent.Advance50.P40.IsSLState
For all natural numbers and every complex matrix indexed by , this predicate holds exactly when, for every , the complex block defined by is either the zero matrix or has nonzero complex trace . Hermiticity, positivity, and trace-one normalization of are not required. For the condition is vacuous, and for every block is zero, so the predicate holds.
QAlgorithms.Papers.Independent.Advance50.P40.JointMatrix
For every pair of natural numbers , a joint matrix of sizes is a complex matrix whose rows and columns are indexed by pairs with and . If either size is zero, the index set is empty and there is a unique such matrix.
QAlgorithms.Papers.Independent.Advance50.P40.SystemMatrix
For every natural number , a system matrix of size is a complex matrix whose rows and columns are indexed by . The case is included and gives the unique matrix with no entries.
QAlgorithms.Papers.Independent.Advance50.P40.bathBlock
For all natural numbers , every complex matrix indexed by , and every , the bath block at is the complex matrix with entries . No conditions on are required. If , the block is the unique empty matrix; if , there are no choices of .
QAlgorithms.Papers.Independent.Advance50.P40.operatorComponent
For all natural numbers and every family of complex matrices, this definition equips with the smallest equivalence relation containing every pair for which . Explicitly, and are equivalent exactly when there is a finite chain such that each consecutive pair satisfies or ; a chain of length zero is allowed. No symmetry condition on is assumed. When there are no elements, and when this equivalence relation is equality.
QAlgorithms.Papers.Independent.Advance50.P40.qdp
For all natural numbers , every unitary complex matrix indexed by pairs with and , and every complex matrix on the same index set, this definition returns the complex matrix whose entries are . No density-matrix assumption is imposed on . When , the empty sum gives the zero matrix; when , the result is the unique empty matrix.
QAlgorithms.Papers.Independent.Advance50.P40.sourceAssignment
For all natural numbers , every family of complex matrices, and every complex matrix , the source assignment is the complex matrix indexed by pairs , with entries for and . There are no positivity, normalization, or symmetry assumptions on or . If or , the result is the unique empty matrix.
QAlgorithms.Papers.Independent.Advance50.P40.specifiedReducedMap
For all natural numbers , every family of complex matrices, every unitary complex matrix indexed by , and every complex matrix , the specified reduced map returns the matrix with entries , where . No SL-family or admissibility conditions are required. When this map is zero, and when its value is the unique empty matrix.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.