BinarySignalColumns.lean
1module2public import SubentropyCertificates.BinaryPureHelstrom34/-! Two-column factorizations of the equal-prior mixture and its classical5record. The record columns are orthogonal even when the signal vectors coincide. -/6@[expose] public section7noncomputable section8set_option autoImplicit false9set_option backward.isDefEq.respectTransparency false10open Matrix Set11open scoped BigOperators Kronecker12namespace SubentropyCertificates.BinarySpectra13open D5.S3.Quantum.Foundation.FiniteStateChannel14open D5.S3.Quantum.Information.OrthogonalRecordEntropy15open SubentropyCertificates.Helstrom16open SubentropyCertificates.PinchingEquality17variable {D : Type*} [Fintype D] [DecidableEq D]1819abbrev halfPrior := binaryPrior (1/2)20theorem halfPrior_nonneg (i : Fin 2) : 0 ≤ halfPrior i :=21 binary_prior_nonneg (by constructor <;> norm_num) i22theorem halfPrior_sum : ∑ i, halfPrior i = 1 := binary_prior_sum _2324abbrev densityMatrix {K : Type*} [Fintype K] [DecidableEq K] (ρ : DensityState K) :=25 CStarMatrix.ofMatrix.symm ρ.12627def columns (v w : D → ℂ) : Matrix D (Fin 2) ℂ := fun i => ![v i,w i]28def tagged (x : Fin 2) (v : D → ℂ) (i : Fin 2 × D) : ℂ := if i.1=x then v i.2 else 02930omit [DecidableEq D] in31theorem tagged_normalized (x : Fin 2) (v : D → ℂ) (hv : amplitude v v = 1) :32 amplitude (tagged x v) (tagged x v) = 1 := by33 simpa [amplitude, dotProduct, tagged, Fintype.sum_prod_type] using hv3435omit [DecidableEq D] in36theorem tagged_orthogonal (v w : D → ℂ) : amplitude (tagged 0 v) (tagged 1 w) = 0 := by37 simp [amplitude,dotProduct,tagged,Fintype.sum_prod_type]3839omit [DecidableEq D] in40theorem column_gram (v w : D → ℂ) (hv : amplitude v v=1) (hw : amplitude w w=1) :41 (columns v w).conjTranspose * columns v w =42 !![1,amplitude v w; star (amplitude v w),1] := by43 have hc : amplitude w v = star (amplitude v w) := by44 simp [amplitude,dotProduct,star_sum,mul_comm]45 ext i j46 fin_cases i <;> fin_cases j47 · exact hv48 · rfl49 · exact hc50 · exact hw5152theorem average_factorization (v w : D → ℂ) (hv : amplitude v v=1) (hw : amplitude w w=1) :53 densityMatrix (mixtureState halfPrior halfPrior_nonneg halfPrior_sum (purePair v w hv hw)) =54 ((1/2 : ℂ) • columns v w) * (columns v w).conjTranspose := by55 ext i j56 change (∑ x : Fin 2, halfPrior x • (purePair v w hv hw x).1) i j = _57 rw [Fin.sum_univ_two]58 change (1/2 : ℝ) • (v i * star (v j)) + (1-1/2 : ℝ) • (w i * star (w j)) = _59 simp [Matrix.mul_apply,Fin.sum_univ_two,columns,Matrix.conjTranspose_apply,Complex.real_smul]60 ring6162theorem joint_factorization (v w : D → ℂ) (hv : amplitude v v=1) (hw : amplitude w w=1) :63 let V := columns (tagged 0 v) (tagged 1 w)64 densityMatrix (recordState halfPrior halfPrior_nonneg halfPrior_sum (purePair v w hv hw)) =65 ((1/2 : ℂ) • V) * V.conjTranspose := by66 dsimp only67 ext ⟨x,i⟩ ⟨y,j⟩68 change (∑ k : Fin 2, halfPrior k • ((diagonal (fun a => if a=k then (1:ℂ) else 0)) ⊗ₖ69 (densityMatrix (purePair v w hv hw k)))) (x,i) (y,j) = _70 rw [Fin.sum_univ_two]71 fin_cases x <;> fin_cases y <;>72 norm_num [halfPrior,binaryPrior,purePair,densityMatrix,Discrimination.pureSignal,73 Matrix.kroneckerMap_apply,Matrix.mul_apply,Fin.sum_univ_two,columns,tagged,74 Matrix.conjTranspose_apply,Complex.real_smul,Matrix.vecMulVec_apply] <;> ring7576end SubentropyCertificates.BinarySpectra
Axioms used
Choose a statement to see which axioms its proof uses.