DeterminantRepresentation.lean
1module23public import D5.S3.Quantum.Subentropy.DensityKernel4import all D5.S3.Quantum.Subentropy.DensityKernel5import Mathlib.MeasureTheory.Integral.IntegralEqImproper67/-! The determinant integral in the variable of the arXiv manuscript. -/8@[expose] public section9noncomputable section10open Matrix MeasureTheory Set11open scoped ComplexOrder12namespace SubentropyCertificates.Representations13open D5.S3.Quantum.Subentropy.Basic14open D5.S3.Quantum.Subentropy.DensityKernel1516variable {D : Type*} [Fintype D] [DecidableEq D]1718def determinantIntegrand (A : Matrix D D ℂ) (t : ℝ) : ℝ :=19 (1 / (1 + t) - 1 / (1 + t • A).det.re) / t^22021/-- The determinant in the real-valued integrand is positive real, even22when the density matrix itself has a kernel. -/23theorem determinant_positive_real (A : Matrix D D ℂ) (hA : A.PosSemidef) {t : ℝ} (ht : 0 ≤ t) :24 ∃ r : ℝ, 0 < r ∧ (1 + t • A).det = (r : ℂ) := by25 refine ⟨∏ i, (1 + t * hA.isHermitian.eigenvalues i), ?_, ?_⟩26 · exact Finset.prod_pos fun i _ => add_pos_of_pos_of_nonneg one_pos27 (mul_nonneg ht (hA.eigenvalues_nonneg i))28 · rw [det_spectral hA.isHermitian, Complex.ofReal_prod]2930theorem reciprocal_determinant_integral (A : Matrix D D ℂ) (hA : A.PosSemidef) (ht : A.trace = 1) :31 IntegrableOn (determinantIntegrand A) (Ioi 0) ∧32 matrixSubentropy A = ∫ t in Ioi (0 : ℝ), determinantIntegrand A t := by33 have he (t : ℝ) (ht' : t ∈ Ioi 0) :34 (|(-1 : ℝ)| * t ^ ((-1 : ℝ) - 1)) • subentropyKernel A (t ^ (-1 : ℝ)) =35 determinantIntegrand A t := by36 rw [show (-1 : ℝ) - 1 = -(2 : ℝ) by norm_num, Real.rpow_neg ht'.le,37 Real.rpow_two, Real.rpow_neg_one]38 have hfirst : t⁻¹ / (1 + t⁻¹) = 1 / (1 + t) := by39 field_simp [ht'.ne']; ring40 simp only [subentropyKernel, inv_inv, determinantIntegrand, hfirst, abs_neg, abs_one,41 one_mul, mul_one, smul_eq_mul, div_eq_mul_inv, mul_comm]42 refine ⟨((integrableOn_Ioi_comp_rpow_iff (subentropyKernel A) (p := -1) (by norm_num)).mpr43 (integrable_subentropy_kernel hA ht)).congr_fun he measurableSet_Ioi, ?_⟩44 rw [← setIntegral_congr_fun measurableSet_Ioi he, integral_comp_rpow_Ioi _ (by norm_num : (-1 : ℝ) ≠ 0)]45 rfl4647end SubentropyCertificates.Representations
Axioms used
Choose a statement to see which axioms its proof uses.