GaussianSignBound.lean
1module23public import SubentropyCertificates.GaussianGradientDefs45/-! Integrability of the normalized outer product even at a singular covariance. -/6@[expose] public section7noncomputable section8set_option backward.isDefEq.respectTransparency false9open Matrix MeasureTheory ProbabilityTheory10open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator1112namespace SubentropyCertificates.ConditionalContinuity13open SubentropyCertificates.Representations1415variable {D : Type*} [Fintype D] [DecidableEq D]1617theorem gaussianOuter_norm (g : V D) : ‖gaussianOuter g‖ = ‖g‖ ^ 2 := by18 have h : toEuclideanCLM (𝕜 := ℂ) (gaussianOuter g) = InnerProductSpace.rankOne ℂ g g := by19 ext x i20 change ((gaussianOuter g) *ᵥ (fun j ↦ x j)) i = _21 rw [gaussianOuter, vecMulVec_mulVec, InnerProductSpace.rankOne_apply,22 EuclideanSpace.inner_eq_star_dotProduct]23 change (g i) * ((star (WithLp.ofLp g)) ⬝ᵥ (WithLp.ofLp x)) = _24 rw [dotProduct_comm (star (WithLp.ofLp g)), mul_comm]25 rfl26 rw [← Matrix.l2_opNorm_toEuclideanCLM, h, InnerProductSpace.norm_rankOne, sq]2728theorem quadraticForm_sqrt_norm {M : Matrix D D ℂ} (hM : M.PosSemidef) (g : V D) :29 quadraticForm M g = ‖Matrix.toEuclideanLin (CFC.sqrt M) g‖ ^ 2 := by30 let L := Matrix.toEuclideanCLM (𝕜 := ℂ) (CFC.sqrt M)31 have hh : star L * L = Matrix.toEuclideanCLM (𝕜 := ℂ) M := by32 dsimp only [L]33 rw [← map_star, ← map_mul, (CFC.sqrt_nonneg M).isSelfAdjoint.star_eq,34 CFC.sqrt_mul_sqrt_self _ hM.nonneg]35 have hv := congrArg (fun T : V D →L[ℂ] V D ↦ T g) hh36 rw [show Matrix.toEuclideanLin (CFC.sqrt M) g = L g from rfl,37 L.apply_norm_sq_eq_inner_adjoint_right]38 exact congrArg (fun v : V D ↦ (inner ℂ g v).re) hv.symm3940/-- A normalized Gaussian outer product has operator norm at most one pointwise. -/41theorem gaussianSign_norm_le_one {M : Matrix D D ℂ} (hM : M.PosSemidef) (g : V D) :42 ‖gaussianSign M g‖ ≤ 1 := by43 rw [gaussianSign, norm_smul, gaussianOuter_norm, quadraticForm_sqrt_norm hM]44 rw [Real.norm_of_nonneg (inv_nonneg.mpr (sq_nonneg _))]45 by_cases h : ‖Matrix.toEuclideanLin (CFC.sqrt M) g‖ ^ 2 = 046 · simp [h]47 · rw [inv_mul_cancel₀ h]4849theorem gaussianSign_integrable {M : Matrix D D ℂ} (hM : M.PosSemidef) :50 Integrable (gaussianSign M) (circularGaussian D) := by51 have hn : Measurable (normalizeGaussian (D := D)) := by unfold normalizeGaussian; fun_prop52 have : IsProbabilityMeasure (circularGaussian D) := (Measure.isProbabilityMeasure_map_iff hn.aemeasurable).mpr inferInstance53 apply (integrable_const (1 : ℝ)).mono'54 · apply Measurable.aestronglyMeasurable55 unfold gaussianSign gaussianOuter quadraticForm56 fun_prop57 · exact .of_forall (gaussianSign_norm_le_one hM)5859end SubentropyCertificates.ConditionalContinuity
Axioms used
Choose a statement to see which axioms its proof uses.