Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Coordinate Chain Rule Through the Gradient Map

Proved
FunctionalInequalities.Probability.Stein.chain_coordinate_of_differentiableAt_gradient_readable

by Lazyfill · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

functional-inequalitieskls-conjecturekls-modularkls-readableletwin2026log-concave

This statement gives a coordinate chain rule for a composition with a gradient map.

Let n∈Nn\in\mathbb Nn∈N and let u,f:Rn→Ru,f:\mathbb R^n\to\mathbb Ru,f:Rn→R be C1C^1C1. At a point y∈Rny\in\mathbb R^ny∈Rn, assume that ∇u∇u∇u is differentiable at yyy. For every coordinate i∈Fin⁡(n)i\in\operatorname{Fin}(n)i∈Fin(n),

Dei(f∘∇u)(y)=∑j(∇2u(y))ij (∇f(∇u(y)))j.D_{e_i}(f\circ∇u)(y) = \sum_j (\nabla^2u(y))_{ij}\,(\nabla f(\nabla u(y)))_j.Dei​​(f∘∇u)(y)=j∑​(∇2u(y))ij​(∇f(∇u(y)))j​.

Here hessianMatrix u y is the matrix used for the weak Hessian coordinates. The result is a finite-dimensional pointwise identity and makes no global invertibility claim about ∇u∇u∇u.

Original Lean declaration header

Within namespace FunctionalInequalities.Probability.Stein. Shown in its original module context. Proof omitted.

theorem chain_coordinate_of_differentiableAt_gradient {n : ℕ}
    {u f : EuclideanSpace ℝ (Fin n) → ℝ} (hu : ContDiff ℝ 1 u)
    (hf : ContDiff ℝ 1 f) {y : EuclideanSpace ℝ (Fin n)}
    (hy : DifferentiableAt ℝ (gradient u) y) (i : Fin n) :
    fderiv ℝ (f ∘ gradient u) y (EuclideanSpace.basisFun (Fin n) ℝ i) =
      ∑ j, hessianMatrix u y i j * gradient f (gradient u y) j

Module navigation

Module: Analysis/BakryEmery/WeakHessian.

Definition modules: Analysis/BakryEmery/HessianOperator.

Previous: memLp_cutoff_mul_hessianMatrix_entry.

Source excerpt, lines 504–509 · Frozen source 408915f.

Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_BakryEmery_WeakHessian

set_option maxHeartbeats 400000
Formal statement

theorem FunctionalInequalities.Probability.Stein.chain_coordinate_of_differentiableAt_gradient_readable {n : ℕ}
    {u f : EuclideanSpace ℝ (Fin n) → ℝ} (hu : ContDiff ℝ 1 u)
    (hf : ContDiff ℝ 1 f) {y : EuclideanSpace ℝ (Fin n)}
    (hy : DifferentiableAt ℝ (gradient u) y) (i : Fin n) :
    fderiv ℝ (f ∘ gradient u) y (EuclideanSpace.basisFun (Fin n) ℝ i) =
      ∑ j, hessianMatrix u y i j * gradient f (gradient u y) j := by sorry
Source
Source: Letwin, The KLS constant is O(log^(1/4) n) (arXiv:2607.24164v1), Lemma 2.7 (Fathi [29, Theorem 2.3]). Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/BakryEmery/WeakHessian.lean#L501-L535 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.BakryEmery.WeakHessian`, declaration `FunctionalInequalities.Probability.Stein.chain_coordinate_of_differentiableAt_gradient`; the repository is private at upload time).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me