import YM.EveryPhase.Light import Mathlib.Analysis.SpecialFunctions.Gamma.Basic /-! # Heat decay and continuity -/ set_option autoImplicit false noncomputable section namespace YM.EveryPhase open Function Filter Set Spec Boundary Next.BOUNDARY Spectral Mink Probe MeasureTheory Measure open scoped Topology NNReal ENNReal InnerProductSpace ComplexOrder section decay private lemma density_power (r : ℝ) (hr : 0 < r) : ∫ t : ℝ in Ioi 0, t^2 * Real.exp (-r*t) = r⁻¹ ^ 3 * Real.Gamma 3 := by convert Real.integral_rpow_mul_exp_neg_mul_Ioi (a:=3) (by norm_num) hr using 1 · norm_num [Real.rpow_two] rw [one_div,show (3:ℝ)= (↑(3:ℕ):ℝ) by norm_num,Real.rpow_natCast] /-- Tail integration of the shell bound. Parameters outside the unit interval can already be included at the same price using total mass. -/ theorem decay (μ : Measure E4) [IsFiniteMeasure μ] (C : ℝ) (_ : 0≤C) (h : ∀ u > (0:ℝ), μ.real (lowE u) ≤ C*u^2) (s : ℝ≥0) (hs : 0 show 0 < t from lt_of_lt_of_le (show 0