Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The position map r(u,v,ζ)r(u,v,\zeta)r(u,v,ζ) integrates BBB

Proved
Landreman3DEquilibria.posMap_is_field_line

by LG · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

mathematical-physicsmhd-equilibriumpartial-differential-equations

Let 0<ϵ<10<\epsilon<10<ϵ<1 and let u,vu,vu,v satisfy u2+v2<1/4u^2+v^2<1/4u2+v2<1/4. Put q2=u2+v2q^2=u^2+v^2q2=u2+v2 and

L=(1+1−4q22)1/2,so thatL2+q2L2=1,L=\left(\frac{1+\sqrt{1-4q^2}}{2}\right)^{1/2},\qquad\text{so that}\qquad L^2+\frac{q^2}{L^2}=1 ,L=(21+1−4q2​​)1/2,so thatL2+L2q2​=1,

and let

r(u,v,ζ)=(a[Lcos⁡ζ+ucos⁡ζ+vsin⁡ζL], b[Lsin⁡ζ+vcos⁡ζ−usin⁡ζL], vcos⁡2ζ−usin⁡2ζ).r(u,v,\zeta)=\Big(a\big[L\cos\zeta+\tfrac{u\cos\zeta+v\sin\zeta}{L}\big],\ b\big[L\sin\zeta+\tfrac{v\cos\zeta-u\sin\zeta}{L}\big],\ v\cos2\zeta-u\sin2\zeta\Big).r(u,v,ζ)=(a[Lcosζ+Lucosζ+vsinζ​], b[Lsinζ+Lvcosζ−usinζ​], vcos2ζ−usin2ζ).

Then for every ζ\zetaζ,

∂r∂ζ(u,v,ζ)=B(r(u,v,ζ)),\frac{\partial r}{\partial\zeta}(u,v,\zeta)=B\big(r(u,v,\zeta)\big),∂ζ∂r​(u,v,ζ)=B(r(u,v,ζ)),

so the curves ζ↦r(u,v,ζ)\zeta\mapsto r(u,v,\zeta)ζ↦r(u,v,ζ) are exactly the integral curves of the magnetic field, with (u,v)(u,v)(u,v) labelling the field line and ζ\zetaζ playing the role of a toroidal angle of period 2π2\pi2π.

Preamble
import Mathlib
import Definitions.Def_landreman_vector_calculus
import Definitions.Def_landreman_integer_iota_family
Formal statement
namespace Landreman3DEquilibria

theorem posMap_is_field_line (e u v z : ℝ) (he : 0 < e) (he1 : e < 1)
    (huv : u ^ 2 + v ^ 2 < 1 / 4) (i : Fin 3) :
    deriv (fun t => posMap e u v t i) z = Bfield e (posMap e u v z) i := by sorry

end Landreman3DEquilibria
Source
M. Landreman, Analytic toroidal 3D MHD equilibria and steady Euler flows with invariant surfaces, J. Plasma Phys. (submitted), arXiv:2609.26742v1 (2026), https://arxiv.org/abs/2609.26742 , Section 2, eqs. (2.10)-(2.12): 'Direct substitution confirms B(r) = ∂ζ r'
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Disclosure — non-blind read-back. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner. It is therefore not independent testimony from a blind auditor: the author already knew what the statement was intended to say, so it cannot be relied on to expose an unfaithful formalization. Reviewers should compare the Lean code against the cited source directly rather than treating this text as corroboration.

Let e,u,v,ζe,u,v,\zetae,u,v,ζ be real numbers with 0<e<10<e<10<e<1 and u2+v2<1/4u^2+v^2<1/4u2+v2<1/4, and let iii be one of the three coordinate indices 0,1,20,1,20,1,2.

Write a=1+ea=\sqrt{1+e}a=1+e​, b=1−eb=\sqrt{1-e}b=1−e​ and L=(1+1−4(u2+v2))/2L=\sqrt{\big(1+\sqrt{1-4(u^2+v^2)}\big)/2}L=(1+1−4(u2+v2)​)/2​; the hypothesis u2+v2<1/4u^2+v^2<1/4u2+v2<1/4 makes the inner radicand positive, so L∈(1/2,1]L\in(\sqrt{1/2},1]L∈(1/2​,1] and in particular L≠0L\neq0L=0. Let r(u,v,t)r(u,v,t)r(u,v,t) be the triple

(a[Lcos⁡t+ucos⁡t+vsin⁡tL],  b[Lsin⁡t+vcos⁡t−usin⁡tL],  vcos⁡2t−usin⁡2t).\Big(a\big[L\cos t+\tfrac{u\cos t+v\sin t}{L}\big],\ \ b\big[L\sin t+\tfrac{v\cos t-u\sin t}{L}\big],\ \ v\cos 2t-u\sin 2t\Big).(a[Lcost+Lucost+vsint​],  b[Lsint+Lvcost−usint​],  vcos2t−usin2t).

Let BBB be the vector field of this bundle at parameter eee.

The assertion, for the given index iii, is the equality of two real numbers

ddt[r(u,v,t)i]t=ζ  =  B(r(u,v,ζ))i,\frac{d}{dt}\Big[r(u,v,t)_i\Big]_{t=\zeta}\;=\;B\big(r(u,v,\zeta)\big)_i,dtd​[r(u,v,t)i​]t=ζ​=B(r(u,v,ζ))i​,

where the left-hand side is the one-variable derivative of the iii-th coordinate function, taken in the total sense that returns 000 at points of non-differentiability. Because iii is universally quantified, the statement covers all three coordinates and so amounts to ∂ζr=B(r)\partial_\zeta r=B(r)∂ζ​r=B(r) at the given (u,v,ζ)(u,v,\zeta)(u,v,ζ). It is not asserted that r(u,v,ζ)r(u,v,\zeta)r(u,v,ζ) lies in any particular domain, nor that rrr is injective or covers anything.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 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