Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Tangential Hessian in the quaternion frame is a bordered Hessian

Proved
det_quaternionFrame_eq_bordered

by Mazecto · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-algebramatrixquaternions

For g=(g0,g1,g2,g3)∈R4g = (g_0, g_1, g_2, g_3) \in \mathbb{R}^4g=(g0​,g1​,g2​,g3​)∈R4 let I,J,KI, J, KI,J,K be the quaternion matrices of Joung–van Koert (Section 2.3), so that IgIgIg, JgJgJg, KgKgKg span the orthogonal complement of ggg. Let FFF be the 3×43 \times 43×4 matrix with rows Ig=(g2,g3,−g0,−g1)Ig = (g_2, g_3, -g_0, -g_1)Ig=(g2​,g3​,−g0​,−g1​), Jg=(g1,−g0,−g3,g2)Jg = (g_1, -g_0, -g_3, g_2)Jg=(g1​,−g0​,−g3​,g2​) and Kg=(−g3,g2,−g1,g0)Kg = (-g_3, g_2, -g_1, g_0)Kg=(−g3​,g2​,−g1​,g0​). Then for every symmetric 4×44 \times 44×4 real matrix HHH,

det⁡(FHFT)=∣g∣4  gTadj⁡(H) g.\det\bigl(F H F^{\mathsf T}\bigr) = |g|^4 \; g^{\mathsf T} \operatorname{adj}(H)\, g .det(FHFT)=∣g∣4gTadj(H)g.

When g=∇Kg = \nabla Kg=∇K and H=Hess⁡KH = \operatorname{Hess} KH=HessK for a function KKK on R4\mathbb{R}^4R4, the matrix FHFTF H F^{\mathsf T}FHFT is the Hessian of KKK restricted to the tangent space of the level set, written in the frame I∇K,J∇K,K∇KI\nabla K, J\nabla K, K\nabla KI∇K,J∇K,K∇K. The identity turns its determinant into a bordered Hessian, since gTadj⁡(H) g=−det⁡(HggT0)g^{\mathsf T}\operatorname{adj}(H)\,g = -\det\begin{pmatrix} H & g \\ g^{\mathsf T} & 0 \end{pmatrix}gTadj(H)g=−det(HgT​g0​). This is the four-dimensional, quaternion-frame analogue of the bordered-Hessian formula for the Gauss curvature of an implicit surface (Goldman, Curvature formulas for implicit curves and surfaces, 2005). For a Hamiltonian, the determinant factor of the positive-tangential-Hessian (convexity) test then no longer involves the frame.

Formalization note. HHH is given entrywise, H=(abcdbefhcfijdhjk)H = \begin{pmatrix} a&b&c&d\\ b&e&f&h\\ c&f&i&j\\ d&h&j&k \end{pmatrix}H=​abcd​befh​cfij​dhjk​​, so it is symmetric by construction.

Preamble
import Mathlib.Data.Real.Basic
import Mathlib.LinearAlgebra.Matrix.Adjugate
Formal statement
/-- In the quaternion frame `I g, J g, K g` of `ℝ⁴`, the determinant of the tangential Hessian
equals `|g|⁴ · gᵀ adj(H) g` (a bordered-Hessian identity), for every symmetric `4 × 4` matrix `H`. -/
theorem det_quaternionFrame_eq_bordered (g0 g1 g2 g3 a b c d e f h i j k : ℝ) :
    (!![g2, g3, -g0, -g1; g1, -g0, -g3, g2; -g3, g2, -g1, g0] *
        !![a, b, c, d; b, e, f, h; c, f, i, j; d, h, j, k] *
        (!![g2, g3, -g0, -g1; g1, -g0, -g3, g2; -g3, g2, -g1, g0] : Matrix (Fin 3) (Fin 4) ℝ).transpose).det
      = (![g0, g1, g2, g3] ⬝ᵥ ![g0, g1, g2, g3]) ^ 2 *
        (![g0, g1, g2, g3] ⬝ᵥ Matrix.mulVec
          (!![a, b, c, d; b, e, f, h; c, f, i, j; d, h, j, k] : Matrix (Fin 4) (Fin 4) ℝ).adjugate
            ![g0, g1, g2, g3]) := by sorry
Source
Quaternion frame I, J, K from Joung–van Koert, https://arxiv.org/abs/2407.19159v3, Section 2.3; four-dimensional analogue of the bordered-Hessian curvature formula in R. Goldman, Curvature formulas for implicit curves and surfaces, Computer Aided Geometric Design 22 (2005) 632–658.

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me