Pratik Patil

BinaryHelstrom.lean

1module23public import SubentropyCertificates.HelstromSpectral4public import SubentropyCertificates.BinaryPureStatistic56/-! Binary Helstrom optimization over the project's original finite-POVM7success set. The spectral test attains the optimum, including ties. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11set_option backward.isDefEq.respectTransparency false12open Matrix Set13open scoped BigOperators MatrixOrder ComplexOrder14namespace SubentropyCertificates.Helstrom15open D5.S3.Quantum.Foundation.FiniteStateChannel16open D5.S3.Quantum.Subentropy.GuessingProbability17variable {D : Type*} [Fintype D] [DecidableEq D]1819private theorem success_trace (p : ℝ) (ρ : Fin 2 → DensityState D) (M : Fin 2 → Matrix D D ℂ)20    (hs : ∑ i, M i = 1) :21    successProbability (binaryPrior p) ρ M = 1-p + (M 0 * difference p ρ).trace.re := by22  rw [Fin.sum_univ_two] at hs23  have hM : M 1 = 1-M 0 := by rw [← hs]; abel24  have ht : (CStarMatrix.ofMatrix.symm (ρ 1).1).trace = 1 := (ρ 1).2.225  simp only [successProbability,Fin.sum_univ_two,hM,Matrix.sub_mul,Matrix.one_mul,26    Matrix.trace_sub,ht,Complex.sub_re,Complex.one_re,difference,Quadratic.weighted,27    Matrix.mul_sub,Matrix.mul_smul,Matrix.trace_smul,Complex.smul_re,smul_eq_mul]28  change p*_ + (1-p)*(1-_) = 1-p+(p*_-(1-p)*_)29  ring3031/-- The optimal success is one half of one plus the sum of the absolute32eigenvalues of pρ₀-(1-p)ρ₁, its Hermitian trace norm. -/33theorem binary_helstrom {p : ℝ} (hp : p ∈ Icc 0 1) (ρ : Fin 2 → DensityState D) :34    pGuess (binaryPrior p) ρ = (1 + ∑ i, |(difference_hermitian hp ρ).eigenvalues i|)/2 ∧35    ∃ M : Fin 2 → Matrix D D ℂ, (∀ i, (M i).PosSemidef) ∧ ∑ i, M i = 1 ∧36      M 0 * M 0 = M 0 ∧ successProbability (binaryPrior p) ρ M = pGuess (binaryPrior p) ρ := by37  obtain ⟨E,hE,hC,hi,ht,hub⟩ := spectral_test (difference_hermitian hp ρ)38  let M : Fin 2 → Matrix D D ℂ := ![E,1-E]39  have hM (i : Fin 2) : (M i).PosSemidef := by fin_cases i <;> first | exact hE | exact hC40  have hs : ∑ i, M i = 1 := by rw [Fin.sum_univ_two]; change E+(1-E)=1; abel41  let s := successProbability (binaryPrior p) ρ M42  have hm : s ∈ successProbabilitySet (binaryPrior p) ρ := ⟨M,hM,hs,rfl⟩43  have hbound : ∀ a ∈ successProbabilitySet (binaryPrior p) ρ, a ≤ s := by44    rintro _ ⟨F,hF,hFs,rfl⟩45    have hc : 1-F 0=F 1 := by have h := hFs; rw [Fin.sum_univ_two] at h; rw [← h]; abel46    have h := hub (F 0) (hF 0) (hc.symm ▸ hF 1)47    dsimp only [s]48    rw [success_trace _ _ F hFs,success_trace _ _ M hs]49    exact add_le_add_right h _50  have hsup : pGuess (binaryPrior p) ρ = s :=51    le_antisymm (csSup_le ⟨_,hm⟩ hbound) (le_csSup ⟨_,hbound⟩ hm)52  refine ⟨?_,M,hM,hs,hi,hsup.symm⟩53  rw [hsup,show s = _ from success_trace p ρ M hs]54  rw [difference_trace] at ht55  change 1-p+(E*difference p ρ).trace.re = _56  linarith5758end SubentropyCertificates.Helstrom

Axioms used

Choose a statement to see which axioms its proof uses.