Eq. (10): first and second derivatives of the Gaussian log-density
ProvedIActThereforeIAm.gaussian_scoreLet be the log-density of a Gaussian with mean and variance . Then for every ,
Applied to the action-modulated Gaussian additive-noise model, with and , this gives the entries of the vector in Assumption 3.2.
import Mathlib import Definitions.Def_IActThereforeIAm_Basic open MeasureTheory Filter Topology open scoped ENNReal NNReal ContDiff
namespace IActThereforeIAm
theorem gaussian_score (m : ℝ) (v : ℝ≥0) (hv : v ≠ 0) (u : ℝ) :
deriv (fun x => Real.log (ProbabilityTheory.gaussianPDFReal m v x)) u = -(u - m) / v ∧
deriv (deriv fun x => Real.log (ProbabilityTheory.gaussianPDFReal m v x)) u = -1 / v := by sorry
end IActThereforeIAmRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For real numbers and , and a nonnegative real number with (so ), consider the Gaussian probability density with mean and variance (not standard deviation):
Let be its natural logarithm, viewed as a function of the real variable . The statement asserts that both of the following hold at the point :
Here is the ordinary derivative of with respect to , evaluated at . is the derivative of the derivative function , evaluated at .
The derivative operator used is total. It would return at any point where the function is not differentiable. The statement does not separately assert differentiability; it asserts only these two equalities of derivative values.
The variables , and are arbitrary, subject only to . No definitions from the accompanying definitions file are used in this statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.