MarginalDeterminants.lean
1module23public import SubentropyCertificates.DiagonalDeterminant4import all D5.S3.Quantum.Subentropy.EigenbasisBlocks5import all SubentropyCertificates.MarginalEigenbasisTable67/-! The joint density matrix in a product of marginal eigenbases. Keep8the matrix itself and its shifted determinants at every parameter. -/9@[expose] public section10noncomputable section11set_option autoImplicit false12set_option backward.isDefEq.respectTransparency false13open Matrix14open scoped BigOperators ComplexOrder MatrixOrder Kronecker15namespace SubentropyCertificates.DeterminantComparison16open D5.S3.Quantum.Foundation.FiniteStateChannel17open D5.S3.Quantum.Information.PartialTraceMutualInformation18open D5.S3.Quantum.Subentropy.Basic19open D5.S3.Quantum.Subentropy.EigenbasisBlocks20open SubentropyCertificates.QubitDeficit21variable {D F : Type*} [Fintype D] [DecidableEq D] [Fintype F] [DecidableEq F]2223private theorem reciprocal_reindex (M : Matrix D D ℂ) (e : F ≃ D) (t : ℝ) :24 reciprocalDet t (M.submatrix e e) = reciprocalDet t M := by25 have h : 1 + t • M.submatrix e e = (1 + t • M).submatrix e e := by26 simp [Matrix.submatrix_add, Matrix.submatrix_smul, Matrix.submatrix_one_equiv]27 unfold reciprocalDet28 rw [h, Matrix.det_submatrix_equiv_self]2930private theorem reciprocal_local (M : Matrix (D × F) (D × F) ℂ) (U : Matrix D D ℂ)31 (hu : U * U.conjTranspose = 1) (t : ℝ) :32 reciprocalDet t (localConjugate U M) = reciprocalDet t M := by33 let J := U.conjTranspose ⊗ₖ (1 : Matrix F F ℂ)34 have hJ : J.conjTranspose * J = 1 := by35 simp only [J, Matrix.conjTranspose_kronecker, Matrix.conjTranspose_conjTranspose,36 Matrix.conjTranspose_one, ← Matrix.mul_kronecker_mul, Matrix.one_mul, hu,37 Matrix.one_kronecker_one]38 have hd := Matrix.det_one_add_mul_comm (t • (J*M)) J.conjTranspose39 simp only [Matrix.smul_mul, Matrix.mul_smul, ← Matrix.mul_assoc J.conjTranspose J M,40 hJ, Matrix.one_mul] at hd41 apply congrArg (fun z : ℂ => z.re⁻¹)42 simpa only [J, localConjugate, Matrix.conjTranspose_kronecker,43 Matrix.conjTranspose_conjTranspose, Matrix.conjTranspose_one] using hd4445/-- Both marginal matrices are diagonal in these coordinates. The46same coordinate change preserves the reciprocal determinant for every t. -/47theorem marginal_eigenbasis_determinants (ρ : DensityState (D × F)) :48 let M := CStarMatrix.ofMatrix.symm ρ.149 let hA := (partialTraceRight_posSemidef (density_posSemidef ρ)).isHermitian50 let hB := (partialTraceLeft_posSemidef (density_posSemidef ρ)).isHermitian51 ∃ K : Matrix (D × F) (D × F) ℂ, K.PosSemidef ∧ K.trace = 1 ∧52 partialTraceRight K = diagonal (fun i => (hA.eigenvalues i : ℂ)) ∧53 partialTraceLeft K = diagonal (fun j => (hB.eigenvalues j : ℂ)) ∧54 ∀ t, reciprocalDet t K = reciprocalDet t M := by55 let M := CStarMatrix.ofMatrix.symm ρ.156 have hM := density_posSemidef ρ57 let hA := (partialTraceRight_posSemidef hM).isHermitian58 let hB := (partialTraceLeft_posSemidef hM).isHermitian59 let U : Matrix D D ℂ := hA.eigenvectorUnitary60 let V : Matrix F F ℂ := hB.eigenvectorUnitary61 have hU : U * U.conjTranspose = 1 := Unitary.coe_mul_star_self hA.eigenvectorUnitary62 have hV : V * V.conjTranspose = 1 := Unitary.coe_mul_star_self hB.eigenvectorUnitary63 let e := Equiv.prodComm F D64 let N := M.submatrix e e65 let L := localConjugate V N66 let P := L.submatrix e.symm e.symm67 let K := localConjugate U P68 have hL := local_density V hV N (hM.submatrix e)69 have hK := local_density U hU P (hL.1.submatrix e.symm)70 have ht : K.trace = 1 := hK.2.trans ((reindex_trace L e.symm).trans71 (hL.2.trans ((reindex_trace M e).trans ρ.2.2)))72 have hright : partialTraceRight K = diagonal (fun i => (hA.eigenvalues i : ℂ)) := by73 rw [show partialTraceRight K = _ from local_right U P,74 show partialTraceRight P = partialTraceLeft L from rfl, local_left V hV N]75 exact eigenbasis_diagonal hA76 have hleft : partialTraceLeft K = diagonal (fun j => (hB.eigenvalues j : ℂ)) := by77 rw [show partialTraceLeft K = _ from local_left U hU P,78 show partialTraceLeft P = partialTraceRight L from rfl, local_right V N]79 exact eigenbasis_diagonal hB80 refine ⟨K,hK.1,ht,hright,hleft,fun t => ?_⟩81 exact (reciprocal_local P U hU t).trans ((reciprocal_reindex L e.symm t).trans82 ((reciprocal_local N V hV t).trans (reciprocal_reindex M e t)))8384end SubentropyCertificates.DeterminantComparison
Axioms used
Choose a statement to see which axioms its proof uses.