OctoInform Beta

OpenAI preprint, September 2026 · §4. Adjoints in moment coordinates · §4

Pairings of the tests (4.5): Equating target integrals of FδμWF\,\delta_\mu W, ∇F⋅W\nabla F\cdot W, and tr⁡(B∇2F)\operatorname{tr}(B\,\nabla^2 F) for compactly supported smooth ff and smooth FF

Pairings of test fields under the moment equation.

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 a measure with density proportional to e−Ve^{-V} on a finite-dimensional coordinate space and the gradient map Φ=∇φ\Phi = \nabla\varphi of a potential φ\varphi satisfying the moment equation log⁡det⁡∇2φ=V∘∇φ+c−φ\log\det\nabla^2\varphi = V\circ\nabla\varphi + c - \varphi for VV, with cc a constant. From a smooth compactly supported test function ff in target coordinates, one constructs a target vector field and a target matrix field whose weighted divergence can be integrated against any smooth function FF, even when FF is not compactly supported.

Weighted calculus

For an index type ι\iota, the coordinate space ℝι\mathbb R^\iota is the real vector space of all functions x:ι→ℝx : \iota \to \mathbb R with pointwise addition and scalar multiplication, where xjx_j denotes the value of xx at j∈ιj \in \iota.✦ Given an index i∈ιi \in \iota, the standard basis vector ei∈ℝιe_i \in \mathbb R^\iota is the vector whose ii-th coordinate equals 11 and whose every other coordinate equals 00.✦

Given a real normed space EE, a vector v∈Ev \in E, and a function f:E→ℝf : E \to \mathbb R, the directional derivative Dvf:E→ℝD_v f : E \to \mathbb R is the function sending each x∈Ex \in E to the Fréchet derivative of ff at xx evaluated at vv.✦ On ℝι\mathbb R^\iota, the partial derivative ∂if:ℝι→ℝ\partial_i f : \mathbb R^\iota \to \mathbb R of a function f:ℝι→ℝf : \mathbb R^\iota \to \mathbb R with respect to an index i∈ιi \in \iota is the directional derivative DeifD_{e_i} f along the standard basis vector eie_i.✦ The gradient ∇f:ℝι→ℝι\nabla f : \mathbb R^\iota \to \mathbb R^\iota of f:ℝι→ℝf : \mathbb R^\iota \to \mathbb R is the map sending each x∈ℝιx \in \mathbb R^\iota to the vector (∂if(x))i∈ι(\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 f:ℝι→ℝf : \mathbb R^\iota \to \mathbb R is the ι×ι\iota\times\iota real matrix whose (i,j)(i,j) entry is ∂j∂if(x)\partial_j\partial_i f(x).✦

For a space EE and a function V:E→ℝV : E \to \mathbb R, the weight function e−V:E→ℝe^{-V} : E \to \mathbb R is the function sending each x∈Ex \in E to exp⁡(−V(x))\exp(-V(x)).✦ On a real normed space EE, given V:E→ℝV : E \to \mathbb R, a vector v∈Ev \in E, and a function f:E→ℝf : E \to \mathbb R, the weighted adjoint Dv*f:E→ℝD_v^* f : E \to \mathbb R is the function defined for x∈Ex \in E by Dv*f(x)=DvV(x)f(x)−Dvf(x).D_v^* f(x) = D_v V(x)\,f(x) - D_v f(x).(1)✦ Given a real normed space EE, a finite index type ι\iota, a function V:E→ℝV : E \to \mathbb R, a family e=(ei)i∈ιe = (e_i)_{i\in\iota} in EE, and a family Y=(Yi)i∈ιY = (Y_i)_{i\in\iota} of real functions on EE, the weighted divergence of YY with respect to VV and ee is the function sending x∈Ex \in E to ∑i∈ιDei*Yi(x)\sum_{i\in\iota} D_{e_i}^* Y_i(x) from (1).✦ On ℝι\mathbb R^\iota with the standard basis (ej)j∈ι(e_j)_{j\in\iota}, the weighted divergence for a potential V:ℝι→ℝV : \mathbb R^\iota \to \mathbb R is denoted by δμ\delta_\mu, where μ\mu is the measure with density proportional to e−Ve^{-V}, and takes each family Y=(Yj)j∈ιY = (Y_j)_{j\in\iota} of real functions on ℝι\mathbb R^\iota to δμY(x)=∑j∈ι(∂jV(x)Yj(x)−∂jYj(x)).\delta_\mu Y(x) = \sum_{j\in\iota} \bigl(\partial_j V(x)\,Y_j(x) - \partial_j Y_j(x)\bigr).(2) When the potential is a function φ:ℝι→ℝ\varphi : \mathbb R^\iota \to \mathbb R, the operator Dek*D_{e_k}^* in (1) is the source adjoint ∂k*\partial_k^*, which together with (2) gives the weighted divergence for the weight e−φe^{-\varphi}.

Target coordinates

Given an index type ι\iota, a measure mm on ℝι\mathbb R^\iota, a function V:ℝι→ℝV : \mathbb R^\iota \to \mathbb R, and a real constant ZZ, the target measure μ\mu on ℝι\mathbb R^\iota is the measure with density e−V/Ze^{-V}/Z with respect to mm when Z>0Z > 0, and with density 00 when Z≤0Z \le 0.✦ For an index type ι\iota, a homeomorphism Φ:ℝι→ℝι\Phi : \mathbb R^\iota \to \mathbb R^\iota, and a function g:ℝι→ℝg : \mathbb R^\iota \to \mathbb R, the transported function of gg along Φ\Phi is the composition g∘Φ−1:ℝι→ℝg \circ \Phi^{-1} : \mathbb R^\iota \to \mathbb R.✦

Test fields

The pulled-back Hessian of a function f:ℝι→ℝf : \mathbb R^\iota \to \mathbb R under ∇φ\nabla\varphi (for an index type ι\iota and φ:ℝι→ℝ\varphi : \mathbb R^\iota \to \mathbb R) is the ι×ι\iota\times\iota matrix-valued function ∇2f∘∇φ\nabla^2 f \circ \nabla\varphi sending each z∈ℝιz \in \mathbb R^\iota to ∇2f(∇φ(z))\nabla^2 f(\nabla\varphi(z)).✦ Let ι\iota be a finite index type, let φ,f:ℝι→ℝ\varphi, f : \mathbb R^\iota \to \mathbb R, and let a,k∈ιa, k \in \iota; then the Hessian product Pak:ℝι→ℝP_{ak} : \mathbb R^\iota \to \mathbb R is the (a,k)(a,k) entry of the matrix product ∇2φ⋅(∇2f∘∇φ)\nabla^2\varphi \cdot (\nabla^2 f \circ \nabla\varphi), given at z∈ℝιz \in \mathbb R^\iota by Pak(z)=∑i∈ι(∇2φ(z))ai(∇2f(∇φ(z)))ik.P_{ak}(z) = \sum_{i\in\iota} \bigl(\nabla^2\varphi(z)\bigr)_{ai}\,\bigl(\nabla^2 f(\nabla\varphi(z))\bigr)_{ik}.(3)✦ With φ,f:ℝι→ℝ\varphi, f : \mathbb R^\iota \to \mathbb R on a finite index type ι\iota and a∈ιa \in \iota, the source divergence field W̃a:ℝι→ℝ\widetilde W_a : \mathbb R^\iota \to \mathbb R is the weighted divergence of the row (Pak)k∈ι(P_{ak})_{k\in\iota} from (3) with respect to e−φe^{-\varphi} and the standard basis: W̃a(z)=∑k∈ι∂k*Pak(z)=∑k∈ι(∂kφ(z)Pak(z)−∂kPak(z)).\widetilde W_a(z) = \sum_{k\in\iota} \partial_k^* P_{ak}(z) = \sum_{k\in\iota} \bigl(\partial_k\varphi(z)\,P_{ak}(z) - \partial_k P_{ak}(z)\bigr).(4)✦

The Hessian sandwich B̃\widetilde B associated with φ,f:ℝι→ℝ\varphi, f : \mathbb R^\iota \to \mathbb R on a finite index type ι\iota is the ι×ι\iota\times\iota matrix-valued function on ℝι\mathbb R^\iota given at z∈ℝιz \in \mathbb R^\iota by B̃(z)=∇2φ(z)∇2f(∇φ(z))∇2φ(z).\widetilde B(z) = \nabla^2\varphi(z)\,\nabla^2 f(\nabla\varphi(z))\,\nabla^2\varphi(z).(5)✦ When Φ:ℝι→ℝι\Phi : \mathbb R^\iota \to \mathbb R^\iota is a homeomorphism and φ,f:ℝι→ℝ\varphi, f : \mathbb R^\iota \to \mathbb R on a finite index type ι\iota, the transported vector field W=(Wa)a∈ιW = (W_a)_{a\in\iota} has components Wa=W̃a∘Φ−1W_a = \widetilde W_a \circ \Phi^{-1} obtained from (4).✦ For a finite index type ι\iota, a homeomorphism Φ:ℝι→ℝι\Phi : \mathbb R^\iota \to \mathbb R^\iota, and functions φ,f:ℝι→ℝ\varphi, f : \mathbb R^\iota \to \mathbb R, the transported matrix field BB on ℝι\mathbb R^\iota is the ι×ι\iota\times\iota matrix-valued function given at x∈ℝιx \in \mathbb R^\iota by B(x)=B̃(Φ−1(x))B(x) = \widetilde B(\Phi^{-1}(x)) from (5).✦

The claim

Theorem. Let ι\iota be a finite index set, let mm be an additive Haar measure on ℝι\mathbb R^\iota (any positive constant multiple of Lebesgue measure), and let φ,V,f,F:ℝι→ℝ\varphi, V, f, F : \mathbb R^\iota \to \mathbb R be smooth functions such that ff has compact support and det⁡∇2φ(z)≠0\det\nabla^2\varphi(z) \neq 0 for every z∈ℝιz \in \mathbb R^\iota. Suppose c∈ℝc \in \mathbb R and Z>0Z > 0 are constants such that the target measure μ\mu associated with mm, VV, and ZZ is a finite measure and the moment equation log⁡det⁡∇2φ(z)=V(∇φ(z))+c−φ(z)\log\det\nabla^2\varphi(z) = V(\nabla\varphi(z)) + c - \varphi(z) holds for every z∈ℝιz \in \mathbb R^\iota. Let Φ:ℝι→ℝι\Phi : \mathbb R^\iota \to \mathbb R^\iota be a homeomorphism equal to ∇φ\nabla\varphi with smooth inverse Φ−1\Phi^{-1}, and let WW and BB be the transported vector field and matrix field associated with Φ\Phi, φ\varphi, and ff. Then ∫ℝιF(x)δμW(x)dμ(x)=∫ℝι∑i∈ι∂iF(x)Wi(x)dμ(x)=∫ℝιtr⁡(B(x)∇2F(x))dμ(x).\int_{\mathbb R^\iota} F(x)\,\delta_\mu W(x)\,d\mu(x) = \int_{\mathbb R^\iota} \sum_{i\in\iota} \partial_i F(x)\,W_i(x)\,d\mu(x) = \int_{\mathbb R^\iota} \operatorname{tr}\bigl(B(x)\,\nabla^2 F(x)\bigr)\,d\mu(x).(6)✦

What is checked

The theorem is stated over a finite index set ι\iota, the coordinate space ℝι\mathbb R^\iota with its standard basis and an additive Haar measure mm on ℝι\mathbb R^\iota (any positive constant multiple of Lebesgue measure), smooth functions φ,V,f,F:ℝι→ℝ\varphi, V, f, F : \mathbb R^\iota \to \mathbb R with ff compactly supported, nondegeneracy det⁡∇2φ≠0\det\nabla^2\varphi \neq 0, constants c∈ℝc \in \mathbb R and Z>0Z > 0 making the target measure μ\mu finite and satisfying the moment equation, a homeomorphism Φ=∇φ\Phi = \nabla\varphi with smooth inverse Φ−1\Phi^{-1}, the weighted divergence δμ\delta_\mu, the transported vector field WW built from the Hessian products PakP_{ak} and source divergence field W̃a\widetilde W_a, and the transported matrix field BB built from the pulled-back Hessian and the Hessian sandwich B̃\widetilde B.