OctoInform Beta

OpenAI preprint, September 2026 · §6. A tensor estimate for the divergence tests · §6

Differentiated moment equation (6.4): For smooth φ\varphi and VV on ℝι\mathbb{R}^\iota with det⁡∇2φ≠0\det\nabla^2\varphi \ne 0, relating ∇2V(∇φ)\nabla^2 V(\nabla\varphi) to the Hessian derivatives CiC_i of φ\varphi

Differentiating the moment equation twice gives a Hessian identity.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

Consider two smooth real functions φ\varphi and VV on the coordinate space ℝι\mathbb{R}^\iota of a finite index set ι\iota, defined below, that satisfy the moment equation log⁡det⁡∇2φ(z)=V(∇φ(z))+k−φ(z)\log\det\nabla^2\varphi(z) = V(\nabla\varphi(z)) + k - \varphi(z) for a real constant kk. The question is what matrix identity for the Hessian of VV results from differentiating the moment equation twice.

Coordinate space

Given an index set ι\iota, the coordinate space ℝι\mathbb{R}^\iota is the real vector space of all functions from ι\iota to ℝ\mathbb{R} under pointwise addition and scalar multiplication, so that a point x∈ℝιx\in\mathbb{R}^\iota is the family (xj)j∈ι(x_j)_{j\in\iota} of its coordinates.✦ For each index i∈ιi\in\iota, the standard basis vector eie_i in ℝι\mathbb{R}^\iota is the vector whose coordinate ii is 11 and whose every other coordinate is 00.✦

Derivatives

The directional derivative DvfD_v f of a real function ff on a real normed space EE along a vector v∈Ev\in E is the real function on EE whose value at x∈Ex\in E is the Fréchet derivative of ff at xx applied to vv.✦ For an index i∈ιi\in\iota and a real function ff on ℝι\mathbb{R}^\iota, the partial derivative ∂if\partial_i f is the directional derivative DeifD_{e_i} f along eie_i, a real function on ℝι\mathbb{R}^\iota.✦

The gradient ∇f:ℝι→ℝι\nabla f \colon \mathbb{R}^\iota \to \mathbb{R}^\iota of a real function ff on ℝι\mathbb{R}^\iota is the map sending each x∈ℝιx\in\mathbb{R}^\iota to the vector ∇f(x)=(∂if(x))i∈ι\nabla f(x) = (\partial_i f(x))_{i\in\iota}.✦ At a point x∈ℝιx\in\mathbb{R}^\iota, the Hessian matrix ∇2f(x)\nabla^2 f(x) of a real function ff on ℝι\mathbb{R}^\iota is the ι×ι\iota\times\iota real matrix whose (i,j)(i,j) entry is ∂j(∂if)(x)\partial_j(\partial_i f)(x).✦

Given a vector vv in a real normed space EE and a map AA from EE to the ι×ι\iota\times\iota real matrices, the matrix derivative DvAD_v A is the map sending each z∈Ez\in E to the ι×ι\iota\times\iota real matrix DvA(z)D_v A(z) whose (i,j)(i,j) entry is the Fréchet derivative at zz of y↦A(y)ijy\mapsto A(y)_{ij} applied to vv.✦

The hessian derivative

The Hessian derivative CiC_i of a function along coordinate ii records its third partial derivatives in that direction as a square matrix. For a real function φ\varphi on ℝι\mathbb{R}^\iota and an index i∈ιi\in\iota, the Hessian derivative CiC_i of φ\varphi is the matrix derivative Dei(∇2φ)D_{e_i}(\nabla^2\varphi) of ∇2φ\nabla^2\varphi along eie_i.✦

The claim

Theorem. Let ι\iota be a finite index set, and let φ,V:ℝι→ℝ\varphi, V \colon \mathbb{R}^\iota \to \mathbb{R} be smooth functions such that ∇2φ(z)\nabla^2\varphi(z) has nonzero determinant for every z∈ℝιz\in\mathbb{R}^\iota. Suppose there is a real constant kk such that log⁡det⁡∇2φ(z)=V(∇φ(z))+k−φ(z)\log\det\nabla^2\varphi(z) = V(\nabla\varphi(z)) + k - \varphi(z) for every z∈ℝιz\in\mathbb{R}^\iota. Then for all i,j∈ιi,j\in\iota and every z∈ℝιz\in\mathbb{R}^\iota, (∇2φ(z)∇2V(∇φ(z))∇2φ(z)−∇2φ(z))ij=∑d∈ι(∂d(y↦∑a∈ι(∇2φ(y))da−1(Ci(y))ja)(z)−(∇φ(z))d∑a∈ι(∇2φ(z))da−1(Ci(z))ja)−tr((∇2φ(z))−1Ci(z)(∇2φ(z))−1Cj(z)).\begin{split} &\bigl(\nabla^2\varphi(z)\,\nabla^2 V(\nabla\varphi(z))\,\nabla^2\varphi(z) - \nabla^2\varphi(z)\bigr)_{ij} \\ &\quad = \sum_{d\in\iota} \Bigl(\partial_d\Bigl(y \mapsto \sum_{a\in\iota} (\nabla^2\varphi(y))^{-1}_{da} (C_i(y))_{ja}\Bigr)(z) - (\nabla\varphi(z))_d \sum_{a\in\iota} (\nabla^2\varphi(z))^{-1}_{da} (C_i(z))_{ja}\Bigr) \\ &\qquad - \mathrm{tr}\bigl((\nabla^2\varphi(z))^{-1} C_i(z) (\nabla^2\varphi(z))^{-1} C_j(z)\bigr). \end{split}(1)✦

What is checked

The identity (1) in the theorem above is stated over a finite index set ι\iota, the coordinate space ℝι\mathbb{R}^\iota with its standard basis vectors eie_i, the directional derivative DvfD_v f, partial derivatives ∂if\partial_i f, gradient ∇f\nabla f, Hessian matrix ∇2f\nabla^2 f, matrix derivative DvAD_v A, and Hessian derivatives CiC_i, for smooth functions φ,V:ℝι→ℝ\varphi, V \colon \mathbb{R}^\iota \to \mathbb{R} such that ∇2φ\nabla^2\varphi has nonzero determinant everywhere and φ\varphi and VV satisfy the moment equation with a real constant kk.