The 1D diffusion kernel satisfies Fick's second law
ProvedFickDiffusion.heatKernel_fick_second_lawLet and let
Then for every and every ,
This is the statement that the Gaussian kernel is a classical solution of Fick's second law (the one-dimensional diffusion equation) for positive times.
Formalization Note Both sides are written with Mathlib's one-variable deriv; the kernel is smooth on , so these are the genuine partial derivatives.
import Mathlib import Definitions.Def_FickDiffusion_defs open Real Filter Topology MeasureTheory
namespace FickDiffusion
theorem heatKernel_fick_second_law (D : ℝ) (hD : 0 < D) (x t : ℝ) (ht : 0 < t) :
deriv (fun s => heatKernel D x s) t =
D * deriv (fun y => deriv (fun z => heatKernel D z t) y) x := by sorry
end FickDiffusion
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter (non-blind)
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements, with full knowledge of the source and of the intended meaning, at the explicit instruction of the account owner. It is not a blind audit. Reviewers must not treat it as independent evidence of faithfulness and should compare it directly against the Lean code.
For all real with and : write (the function heatKernel D y s; is the real square root, on negatives, and division by gives ). The statement asserts
where each is the one-variable derivative with the convention "value where not differentiable". The time derivative is taken of the full function on all of (including , where is ), but only evaluated at the point .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.