Samplinglib
Lean gate not recorded for this source state main · 0e31a3cda412
test module

Tests.IsotropicGaussianDensity

3 named declarations scanned from Tests/IsotropicGaussianDensity.lean.

Imports
Imported by
Placeholder scan
0 declaration(s) flagged
Gate status
Partial

Declarations

theorem Tests.IsotropicGaussianDensity.real_scale_density Partial Not mapped

No declaration docstring.

theorem real_scale_density (η : ℝ) (hη : 0 < η) :
    (stdGaussian ℝ).map (fun z : ℝ => Real.sqrt η • z) =
      (volume : Measure ℝ).withDensity (fun z =>
        ENNReal.ofReal
          ((Real.sqrt (2 * Real.pi * η))⁻¹ *
            Real.exp (-‖z‖ ^ 2 / (2 * η)))) := by
  simpa using (map_sqrt_smul_stdGaussian_eq_withDensity (E := ℝ) η hη)
theorem Tests.IsotropicGaussianDensity.two_dimensional_density Partial Not mapped

No declaration docstring.

theorem two_dimensional_density (η : ℝ) (hη : 0 < η) :
    (stdGaussian (EuclideanSpace ℝ (Fin 2))).map (fun z => Real.sqrt η • z) =
      (volume : Measure (EuclideanSpace ℝ (Fin 2))).withDensity (fun z =>
        ENNReal.ofReal
          (((Real.sqrt (2 * Real.pi * η))⁻¹) ^ 2 *
            Real.exp (-‖z‖ ^ 2 / (2 * η)))) := by
  simpa using (map_sqrt_smul_stdGaussian_eq_withDensity
    (E := EuclideanSpace ℝ (Fin 2)) η hη)
theorem Tests.IsotropicGaussianDensity.zero_dimensional_density Partial Not mapped

No declaration docstring.

theorem zero_dimensional_density (η : ℝ) (hη : 0 < η) :
    (stdGaussian (EuclideanSpace ℝ (Fin 0))).map (fun z => Real.sqrt η • z) =
      (volume : Measure (EuclideanSpace ℝ (Fin 0))) := by
  have hnorm0 (z : EuclideanSpace ℝ (Fin 0)) : ‖z‖ = 0 := by
    rw [show z = 0 from Subsingleton.elim _ _, norm_zero]
  simpa [hnorm0] using (map_sqrt_smul_stdGaussian_eq_withDensity
    (E := EuclideanSpace ℝ (Fin 0)) η hη)

#print axioms map_sqrt_smul_stdGaussian_eq_withDensity

end Tests.IsotropicGaussianDensity