Pratik Patil

CommonMixTraceDistance.lean

1module23public import SubentropyCertificates.PositiveBlockSegment4public import SubentropyCertificates.QubitTraceDistance56/-! Exact scaling of the joint trace distance under common mixing. -/7@[expose] public section8noncomputable section9set_option backward.isDefEq.respectTransparency false10open Matrix Set11open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator1213namespace SubentropyCertificates.ConditionalContinuity14open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)15open SubentropyCertificates.BinarySpectra (densityMatrix)16open SubentropyCertificates.MixedQubit (traceDistance traceDistance_test)1718variable {X D : Type*} [Fintype X] [DecidableEq X] [Fintype D] [DecidableEq D]1920omit [Fintype X] [DecidableEq X] [Fintype D] [DecidableEq D] in21/-- Every convex combination of positive semidefinite blocks is positive semidefinite. -/22theorem blockSegment_posSemidef (A B : X → Matrix D D ℂ)23    (ha : ∀ x, (A x).PosSemidef) (hb : ∀ x, (B x).PosSemidef)24    {s : ℝ} (hs : s ∈ Icc 0 1) (x : X) : (blockSegment A B s x).PosSemidef :=25  ((ha x).smul (sub_nonneg.mpr hs.2)).add ((hb x).smul hs.1)2627private theorem traceDistance_of_scaled_difference (ρ σ ρ' σ' : DensityState D)28    (k : ℝ) (hk : 0 ≤ k)29    (hd : densityMatrix ρ' - densityMatrix σ' = k • (densityMatrix ρ - densityMatrix σ)) :30    traceDistance ρ' σ' = k * traceDistance ρ σ := by31  have hpair (T : Matrix D D ℂ) :32      (T * (densityMatrix ρ' - densityMatrix σ')).trace.re =33        k * (T * (densityMatrix ρ - densityMatrix σ)).trace.re := by34    rw [hd, Matrix.mul_smul, trace_smul, Complex.smul_re, smul_eq_mul]35  obtain ⟨E, he, hc, hv, hm⟩ := traceDistance_test ρ σ36  obtain ⟨F, hf, hf', hw, hn⟩ := traceDistance_test ρ' σ'37  rw [← hv, ← hw, hpair F]38  exact le_antisymm (mul_le_mul_of_nonneg_left (hm F hf hf') hk)39    (by simpa only [hpair] using hn E he hc)4041/-- Mixing two CQ states with the same normalized state scales their joint trace distance42by the retained weight, including when some blocks have zero rank. -/43theorem commonMix_traceDistance (A B U : X → Matrix D D ℂ)44    (ha : ∀ x, (A x).PosSemidef) (hb : ∀ x, (B x).PosSemidef) (hu : ∀ x, (U x).PosSemidef)45    (hta : (∑ x, A x).trace = 1) (htb : (∑ x, B x).trace = 1) (htu : (∑ x, U x).trace = 1)46    {e : ℝ} (he : e ∈ Icc 0 1) :47    traceDistance48      (blockDensity (blockSegment A U e) (blockSegment_posSemidef A U ha hu he)49        (blockSegment_trace A U e hta htu))50      (blockDensity (blockSegment B U e) (blockSegment_posSemidef B U hb hu he)51        (blockSegment_trace B U e htb htu)) =52      (1 - e) * traceDistance (blockDensity A ha hta) (blockDensity B hb htb) := by53  apply traceDistance_of_scaled_difference _ _ _ _ _ (sub_nonneg.mpr he.2)54  change blockDiagonal (blockSegment A U e) - blockDiagonal (blockSegment B U e) =55    (1 - e) • (blockDiagonal A - blockDiagonal B)56  rw [← blockDiagonal_sub, ← blockDiagonal_sub, ← blockDiagonal_smul]57  congr 158  funext x59  change ((1 - e) • A x + e • U x) - ((1 - e) • B x + e • U x) = (1 - e) • (A x - B x)60  rw [add_sub_add_right_eq_sub, smul_sub]6162end SubentropyCertificates.ConditionalContinuity63

Axioms used

Choose a statement to see which axioms its proof uses.