Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The local inversion gradient by directional differentiation

Open
QAlgorithms.Papers.Independent.Intake100.P95.localInversionGradient

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥1n\ge1n≥1, let HHH be Hermitian and traceless, and use the real Hilbert–Schmidt metric ⟨A,B⟩=Re⁡tr⁡(A†B)\langle A,B\rangle=\operatorname{Re}\operatorname{tr}(A^\dagger B)⟨A,B⟩=Retr(A†B). Let k\mathfrak kk be the real span of the embedded skew Pauli generators, and let PkP_{\mathfrak k}Pk​ be their orthogonal projection, with normalization 2−n2^{-n}2−n. This projection belongs to k\mathfrak kk and leaves an orthogonal residual. For f(K)=−Re⁡tr⁡(KHK†H)f(K)=-\operatorname{Re}\operatorname{tr}(KHK^\dagger H)f(K)=−Retr(KHK†H) and every Ω∈k\Omega\in\mathfrak kΩ∈k,

ddsf(esΩK)∣s=0=⟨Pk([KHK†,H]),Ω⟩.\left.\frac{d}{ds}f(e^{s\Omega}K)\right|_{s=0}=\left\langle P_{\mathfrak k}([KHK^\dagger,H]),\Omega\right\rangle.dsd​f(esΩK)​s=0​=⟨Pk​([KHK†,H]),Ω⟩.

Thus the gradient field is Pk([KHK†,H])KP_{\mathfrak k}([KHK^\dagger,H])KPk​([KHK†,H])K. A vanishing full commutator makes this field zero. If KHK†=HKHK^\dagger=HKHK†=H, it is a stationary global minimum of fff; if KHK†=−HKHK^\dagger=-HKHK†=−H, it is a stationary global maximum. No convergence or global numerical-search guarantee is included.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P95
Formal statement
namespace QAlgorithms.Papers.Independent.Intake100.P95

open scoped BigOperators

open QAlgorithms.Papers.Independent.Information100.P32 (Op evolution)

open QAlgorithms.Papers.Independent.Advance50.P38 (comm realHSPairing)

open QAlgorithms.Papers.Independent.Information100.P10 (pauli)

open QAlgorithms.Papers.Independent.Claimed50.P03 (wordMatrix wordSupport)

noncomputable section

/-- (65)–(67), PDF pp.11–12: the gradient is specified by its actual
real directional derivative in every local skew direction. No step-size,
convergence, or global-search guarantee is asserted. -/
theorem localInversionGradient {n : ℕ} (hn : 0 < n)
    (H : Op (QAlgorithms.Qubits n)) (hH : IsHamiltonian H) :
    (∀ A : Op (QAlgorithms.Qubits n), toLocalIndex (localSkewProjection A) ∈
      QAlgorithms.Papers.Independent.Advance50.P38.localAlgebra n ∧
      ∀ Omega : Op (QAlgorithms.Qubits n), toLocalIndex Omega ∈ QAlgorithms.Papers.Independent.Advance50.P38.localAlgebra n →
        realHSPairing (A - localSkewProjection A) Omega = 0) ∧
    (∀ (K : LocalSU n) (Omega : Op (QAlgorithms.Qubits n)), toLocalIndex Omega ∈ QAlgorithms.Papers.Independent.Advance50.P38.localAlgebra n →
      HasDerivAt (fun s : ℝ => reversalOverlap H
        (NormedSpace.exp (s • Omega) * localMatrix K))
        (realHSPairing (localSkewProjection (comm (localAd K H) H)) Omega) 0) ∧
    (∀ K : LocalSU n, comm (localAd K H) H = 0 →
      localSkewProjection (comm (localAd K H) H) * localMatrix K = 0) ∧
    (∀ K : LocalSU n,
      (localAd K H = H →
        localSkewProjection (comm (localAd K H) H) * localMatrix K = 0 ∧
        ∀ L : LocalSU n, reversalOverlap H (localMatrix K) ≤
          reversalOverlap H (localMatrix L)) ∧
      (localAd K H = -H →
        localSkewProjection (comm (localAd K H) H) * localMatrix K = 0 ∧
        ∀ L : LocalSU n, reversalOverlap H (localMatrix L) ≤
          reversalOverlap H (localMatrix K))) := by sorry

end

end QAlgorithms.Papers.Independent.Intake100.P95
Source
Which Quantum Evolutions Can Be Reversed by Local Unitary Operations? Algebraic Classification and Gradient-Flow-Based Numerical Checks, arXiv:quant-ph/0610061v1, PDF p. 11, (65)–(67): local gradient field for type-I inversion
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let n>0n>0n>0 be a natural number and HHH a complex matrix on the nnn-bit strings satisfying H†=HH^\dagger=HH†=H and tr⁡H=0\operatorname{tr}H=0trH=0. Define the real pairing (A,B)HS=Re⁡tr⁡(A†B)(A,B)_{\mathrm{HS}}=\operatorname{Re}\operatorname{tr}(A^\dagger B)(A,B)HS​=Retr(A†B). Identify each Boolean bit with 000 or 111, and let Gk,aG_{k,a}Gk,a​ act as the matrix SaS_aSa​ on bit kkk and as the identity on every other bit, where

S0=(0ii0),S1=(0−110),S2=(i00−i).S_0=\begin{pmatrix}0&i\\ i&0\end{pmatrix},\qquad S_1=\begin{pmatrix}0&-1\\1&0\end{pmatrix},\qquad S_2=\begin{pmatrix}i&0\\0&-i\end{pmatrix}.S0​=(0i​i0​),S1​=(01​−10​),S2​=(i0​0−i​).

Let L\mathcal LL be their real linear span, and define P(A)=2−n∑k=0n−1∑a=02(A,Gk,a)HSGk,aP(A)=2^{-n}\sum_{k=0}^{n-1}\sum_{a=0}^2(A,G_{k,a})_{\mathrm{HS}}G_{k,a}P(A)=2−n∑k=0n−1​∑a=02​(A,Gk,a​)HS​Gk,a​. For any family KKK of nnn matrices in SU(2)\mathrm{SU}(2)SU(2), write TK=⨂kKkT_K=\bigotimes_kK_kTK​=⨂k​Kk​, BK=TKHTK†B_K=T_KHT_K^\daggerBK​=TK​HTK†​, and RH(T)=Re⁡tr⁡((−H)†THT†)R_H(T)=\operatorname{Re}\operatorname{tr}((-H)^\dagger THT^\dagger)RH​(T)=Retr((−H)†THT†). The statement asserts that, for every complex matrix AAA, P(A)∈LP(A)\in\mathcal LP(A)∈L and (A−P(A),Ω)HS=0(A-P(A),\Omega)_{\mathrm{HS}}=0(A−P(A),Ω)HS​=0 for every Ω∈L\Omega\in\mathcal LΩ∈L. For every KKK and every Ω∈L\Omega\in\mathcal LΩ∈L, the real function s↦RH(esΩTK)s\mapsto R_H(e^{s\Omega}T_K)s↦RH​(esΩTK​) has derivative (P(BKH−HBK),Ω)HS(P(B_KH-HB_K),\Omega)_{\mathrm{HS}}(P(BK​H−HBK​),Ω)HS​ at s=0s=0s=0. For every KKK, if BKH−HBK=0B_KH-HB_K=0BK​H−HBK​=0, then P(BKH−HBK)TK=0P(B_KH-HB_K)T_K=0P(BK​H−HBK​)TK​=0. Finally, for every KKK, if BK=HB_K=HBK​=H, then this same matrix product vanishes and RH(TK)≤RH(TL)R_H(T_K)\le R_H(T_L)RH​(TK​)≤RH​(TL​) for every local family LLL; if BK=−HB_K=-HBK​=−H, then the product vanishes and RH(TL)≤RH(TK)R_H(T_L)\le R_H(T_K)RH​(TL​)≤RH​(TK​) for every LLL. The hypotheses include H=0H=0H=0.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

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