Pratik Patil

GaussianPinchingDensities.lean

1module23public import SubentropyCertificates.GaussianPinchingDomination4public import SubentropyCertificates.RepresentationTheorem5import all SubentropyCertificates.GaussianSignSpectral67/-! Normalization and logarithmic integrability of the Gaussian densities of a8state and its pinching. All conclusions allow singular density matrices. -/9@[expose] public section10noncomputable section11set_option autoImplicit false12set_option backward.isDefEq.respectTransparency false13open Matrix MeasureTheory Real14open scoped BigOperators ComplexOrder MatrixOrder15namespace SubentropyCertificates.GaussianPinching16open SubentropyCertificates.Representations17open SubentropyCertificates.ConditionalContinuity18open SubentropyCertificates.OrthogonalPinching19open D5.S3.Quantum.Subentropy.DensityKernel2021variable {X D : Type*} [Fintype X] [Fintype D] [DecidableEq D]2223theorem measurable_quadratic (A : Matrix D D ℂ) : Measurable (quadraticForm A) := by24  unfold quadraticForm25  fun_prop2627/-- The Gaussian quadratic form of a state has total mass one. -/28theorem integral_quadratic_one (A : Matrix D D ℂ) (hA : A.PosSemidef) (ht : A.trace = 1) :29    (∫ g, quadraticForm A g ∂circularGaussian D) = 1 := by30  classical31  let h := hA.isHermitian32  let e := h.eigenvectorBasis.repr.symm33  have hi (i : D) : Integrable (fun z : V D ↦ Complex.normSq (z i)) (circularGaussian D) := by34    by_contra hn35    have ho := circular_coordinate_mean i36    rw [integral_undef hn] at ho37    exact zero_ne_one ho38  have he := circPreserving e39  rw [← he.integral_comp e.toHomeomorph.measurableEmbedding (quadraticForm A)]40  change (∫ z, quadraticForm A (h.eigenvectorBasis.repr.symm z) ∂circularGaussian D) = _41  simp_rw [base_quad h, diagonalEnergy]42  rw [integral_finsetSum _ (fun i _ ↦ (hi i).const_mul (h.eigenvalues i))]43  simp only [integral_const_mul, circular_coordinate_mean, mul_one]44  exact (spectral_prob hA ht).24546theorem quadratic_integrable (A : Matrix D D ℂ) (hA : A.PosSemidef) (ht : A.trace = 1) :47    Integrable (quadraticForm A) (circularGaussian D) := by48  by_contra hn49  have h := integral_quadratic_one A hA ht50  rw [integral_undef hn] at h51  exact zero_ne_one h5253/-- If a nonnegative density is dominated by a multiple of another, its54cross entropy is absolutely integrable whenever the latter's own entropy is. -/55theorem dominated_log_integrable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω}56    {a b : Ω → ℝ} {c : ℝ} (ha : Measurable a) (hb : Measurable b)57    (ha0 : ∀ z, 0 ≤ a z) (hb0 : ∀ z, 0 ≤ b z) (h : ∀ z, a z ≤ c * b z)58    (hi : Integrable (fun z ↦ b z * log (b z)) μ) :59    Integrable (fun z ↦ a z * log (b z)) μ := by60  apply (hi.abs.const_mul c).mono' ((ha.mul (measurable_log.comp hb)).aestronglyMeasurable)61  refine .of_forall fun z ↦ ?_62  change ‖a z * log (b z)‖ ≤ c * |b z * log (b z)|63  simp only [Real.norm_eq_abs, abs_mul, abs_of_nonneg (ha0 z), abs_of_nonneg (hb0 z)]64  simpa only [mul_assoc] using mul_le_mul_of_nonneg_right (h z) (abs_nonneg (log (b z)))6566theorem cross_log_integrable (R : Resolution X D) (A : Matrix D D ℂ)67    (hA : A.PosSemidef) (ht : A.trace = 1) :68    Integrable (fun g ↦ quadraticForm A g * log (quadraticForm (pinch R A) g))69      (circularGaussian D) :=70  dominated_log_integrable (measurable_quadratic _) (measurable_quadratic _)71    (quadratic_nonneg hA) (quadratic_nonneg (pinch_posSemidef R A hA))72    (quadratic_le_card_pinch R A hA)73    (gaussian_representation _ (pinch_posSemidef R A hA) ((pinch_trace R A).trans ht)).17475theorem quadratic_log_ratio_eq (R : Resolution X D) (A : Matrix D D ℂ)76    (hA : A.PosSemidef) (g : V D) :77    quadraticForm A g * log (quadraticForm A g / quadraticForm (pinch R A) g) =78      quadraticForm A g * log (quadraticForm A g) -79        quadraticForm A g * log (quadraticForm (pinch R A) g) := by80  by_cases ha : quadraticForm A g = 081  · simp [ha]82  have hb : quadraticForm (pinch R A) g ≠ 0 := by83    intro hz84    have h := quadratic_le_card_pinch R A hA g85    rw [hz, mul_zero] at h86    exact ha (le_antisymm h (quadratic_nonneg hA g))87  rw [Real.log_div ha hb, mul_sub]8889theorem log_ratio_integrable (R : Resolution X D) (A : Matrix D D ℂ)90    (hA : A.PosSemidef) (ht : A.trace = 1) :91    Integrable (fun g ↦ quadraticForm A g * log (quadraticForm A g / quadraticForm (pinch R A) g))92      (circularGaussian D) := by93  simp_rw [quadratic_log_ratio_eq R A hA]94  exact (gaussian_representation A hA ht).1.sub (cross_log_integrable R A hA ht)9596end SubentropyCertificates.GaussianPinching

Axioms used

Choose a statement to see which axioms its proof uses.