All proofs
Project-declaredLean 4.30.0 · mathlib@c5ea00351c28

Has Deriv At heat Kernel t

Heat.hasDerivAt_heatKernel_t

Plain-language statement

The time derivative of the heat kernel ∂/∂t heatKernel(α, x, t).

Exact Lean statement

lemma hasDerivAt_heatKernel_t (hα : 0 < α) {t x : ℝ} (ht : 0 < t) :
    HasDerivAt (fun τ => heatKernel α x τ)
      ((-(1 / (2 * t)) * (1 / Real.sqrt (4 * Real.pi * α * t))) *
         Real.exp (-(x^2) / (4 * α * t))
       + (1 / Real.sqrt (4 * Real.pi * α * t)) *
         ((1 / (4 * α)) * (1 / t^2) * x^2) * Real.exp (-(x^2) / (4 * α * t))) t

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma hasDerivAt_heatKernel_t (hα : 0 < α) {t x : } (ht : 0 < t) :    HasDerivAt (fun τ => heatKernel α x τ)      ((-(1 / (2 * t)) * (1 / Real.sqrt (4 * Real.pi * α * t))) *         Real.exp (-(x^2) / (4 * α * t))       + (1 / Real.sqrt (4 * Real.pi * α * t)) *         ((1 / (4 * α)) * (1 / t^2) * x^2) * Real.exp (-(x^2) / (4 * α * t))) t := by  unfold heatKernel   -- Derivative of the prefactor 1/√(4παt) with respect to t  have h_coef : HasDerivAt (fun τ => 1 / Real.sqrt (4 * Real.pi * α * τ))                            (-(1 / (2 * t)) * (1 / Real.sqrt (4 * Real.pi * α * t))) t := by    have hg : HasDerivAt (fun τ  4 * Real.pi * α * τ) (4 * Real.pi * α) t := by      simpa using (hasDerivAt_id t).const_mul (4 * Real.pi * α)    have hpos : 4 * Real.pi * α * t > 0 := by positivity    have := (deriv_sqrt_inv hpos).comp t hg    convert this using 1    field_simp [ne_of_gt hpos]   -- Derivative of the exponent -(x²)/(4ατ) with respect to t  have h_inside : HasDerivAt (fun τ => -(x^2) / (4 * α * τ))                              ((1 / (4 * α)) * (1 / t^2) * x^2) t := by    have hexp1 : HasDerivAt (fun τ => τ⁻¹) (-(t^2)⁻¹) t := by      simpa using hasDerivAt_inv (ne_of_gt ht)    convert (hexp1.const_mul (-(x^2) / (4 * α))) using 1    · ext τ; field_simp    · field_simp   -- Apply chain rule through the exponential  have h_exp : HasDerivAt (fun τ => Real.exp (-(x^2) / (4 * α * τ)))                          (((1 / (4 * α)) * (1 / t^2) * x^2) *                           Real.exp (-(x^2) / (4 * α * t))) t := by    simpa [mul_comm, mul_left_comm, mul_assoc] using      (Real.hasDerivAt_exp (x := (-(x^2) / (4 * α * t)))).comp t h_inside   -- Apply product rule to combine the two parts  simpa [mul_comm, mul_left_comm, mul_assoc] using h_coef.mul h_exp
Project
PDE
License
Apache-2.0
Commit
0ab5d79a0d7a
Source
PDE/Basics/Heat/HeatKernel.lean:148-183

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.30.0

Fderiv Ccinfty

FderivCcinfty

Plain-language statement

The Fréchet derivative x ↦ (∂ˢψ(x))(unitSeq s) of a test function ψ ∈ Cc^∞(U) again lies in Cc^∞(U). This is used to compose the weak derivative definition with itself.

partial differential equationsSobolev spacesanalysis

Source project: PDE

Person-level attribution pending.

View proof record
Project-declaredLean 4.30.0

Heat from convolution heat Kernel

heat_from_convolution_heatKernel

Project documentation

Swap the second spatial derivative xx\partial_{xx} with the integral \int. -/ lemma swap_xx_heatKernel {α : ℝ} {x t : ℝ} (g : ℝ → ℝ) (ht : 0 < t) (hα : 0 < α) (hg : Integrable g) : HasDerivAt (fun x' => ∫ y, HKx α (x' - y) t * g y ∂volume) (∫ y, HKxx α (x - y) t * g y ∂volume) x := by have mem_nhds : Metric.ball x 1 ∈ 𝓝 x := Metric.ball_mem_nhds x (by...

partial differential equationsSobolev spacesanalysis

Source project: PDE

Person-level attribution pending.

View proof record
Project-declaredLean 4.30.0

Deriv exp heat Kernel

Heat.deriv_exp_heatKernel

Plain-language statement

Derivative of the exponential term exp(-(x²)/(4αt)) with respect to x.

partial differential equationsSobolev spacesanalysis

Source project: PDE

Person-level attribution pending.

View proof record