Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Degenerate optical Legendre transform and massive endpoint action

Proved
QAlgorithms.Papers.Independent.Renew46.P42.massiveAction_endpoint

by Goku · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let c,m>0c,m>0c,m>0 and let ggg, G=g−1G=g^{-1}G=g−1 be the Gordon metrics of C2C^2C2 optical data n≥1n\ge1n≥1, ∣u∣<c|\mathbf u|<c∣u∣<c on an open spacetime patch DDD. Consider a C2C^2C2 family q(s,z)q(s,z)q(s,z), defined near [0,1]×E[0,1]\times E[0,1]×E for an open endpoint set E⊂DE\subset DE⊂D, of affinely parametrized future timelike ggg-geodesics with fixed initial endpoint q(0,z)=z0q(0,z)=z_0q(0,z)=z0​, final endpoint q(1,z)=zq(1,z)=zq(1,z)=z for z∈Ez\in Ez∈E, and images in DDD. Require g(q˙,q˙)>0g(\dot q,\dot q)>0g(q˙​,q˙​)>0 and q˙0>0\dot q^0>0q˙​0>0. Define

S(z)=−mc∫01gq(s,z)(q˙,q˙) ds.S(z)=-mc\int_0^1\sqrt{g_{q(s,z)}(\dot q,\dot q)}\,ds.S(z)=−mc∫01​gq(s,z)​(q˙​,q˙​)​ds.

The endpoint function is differentiable and, with v=∂sq(1,z)v=\partial_sq(1,z)v=∂s​q(1,z),

−∂μS(z)=mc gμν(z)vνgz(v,v),Gμν∂μS∂νS=m2c2.-\partial_\mu S(z)=\frac{mc\,g_{\mu\nu}(z)v^\nu}{\sqrt{g_z(v,v)}},\qquad G^{\mu\nu}\partial_\mu S\partial_\nu S=m^2c^2.−∂μ​S(z)=gz​(v,v)​mcgμν​(z)vν​,Gμν∂μ​S∂ν​S=m2c2.

For the massless Hamiltonian (34), k⋅∂kH−H=0\mathbf k\cdot\partial_{\mathbf k}H-H=0k⋅∂k​H−H=0 for every nonzero k\mathbf kk. For a timelike laboratory tangent (c,v)(c,\mathbf v)(c,v), the massive laboratory-time Lagrangian is

L=−mcc2−∣v∣2+(n−2−1)γ2(c−u⋅v/c)2=−mcg((c,v),(c,v)).L=-mc\sqrt{c^2-|\mathbf v|^2+(n^{-2}-1)\gamma^2(c-\mathbf u\cdot\mathbf v/c)^2}=-mc\sqrt{g((c,\mathbf v),(c,\mathbf v))}.L=−mcc2−∣v∣2+(n−2−1)γ2(c−u⋅v/c)2​=−mcg((c,v),(c,v))​.

This constructs the principal function on extremals; the auxiliary mass is a regularization and does not assign a photon rest mass.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P42
Formal statement
namespace QAlgorithms.Papers.Independent.Renew46.P42

noncomputable section

open scoped BigOperators

open Filter Set MeasureTheory

-- Reuse the pinned accepted real quadratic form (arbitrary finite real matrices).

open QAlgorithms.Papers.Independent.Information100.P37 (quadratic)

/-- PDF pp.5–6, (39)–(49): zero massless Legendre transform and the massive
proper-length action on an actual local geodesic endpoint congruence.
The mass m is an artificial regularization, not a photon mass. -/
theorem massiveAction_endpoint (c m : ℝ) (P : OpticalPatch c)
    (q : ℝ → V4 → V4) (z zBase : V4) (J : Set ℝ) (E : Set V4)
    (hc : 0 < c) (hm : 0 < m) (hz : z ∈ E)
    (hE : IsOpen E) (hEP : E ⊆ P.domain)
    (hJ : IsOpen J) (h01 : Icc (0 : ℝ) 1 ⊆ J)
    (hq : ContDiffOn ℝ 2 (fun a : ℝ × V4 => q a.1 a.2) (J ×ˢ E))
    (hend : ∀ y ∈ E, q 0 y = zBase ∧ q 1 y = y)
    (himage : ∀ y ∈ E, ∀ s ∈ Icc (0 : ℝ) 1, q s y ∈ P.domain)
    (htime : ∀ y ∈ E, ∀ s ∈ Icc (0 : ℝ) 1,
      0 < deriv (fun t => q t y) s 0)
    (htimelike : ∀ y ∈ E, ∀ s ∈ Icc (0 : ℝ) 1,
      0 < quadratic (patchDown P (q s y)) (deriv (fun t => q t y) s))
    (hgeo : ∀ y ∈ E, ∀ s ∈ Icc (0 : ℝ) 1,
      covAcceleration (patchDown P) (patchUp P) (fun t => q t y) s = 0) :
    (∀ k : V3, k ≠ 0 →
      dot3 k (rayVelocity c (P.index z) (P.flow z) k) -
        rayHamiltonian c (P.index z) (P.flow z) k = 0) ∧
    (∀ v : V3, 0 < quadratic (patchDown P z) ![c, v 0, v 1, v 2] →
      massiveLagrangian c (P.index z) m (P.flow z) v =
        -m * c * Real.sqrt (quadratic (patchDown P z) ![c, v 0, v 1, v 2])) ∧
    DifferentiableAt ℝ (endpointAction P m q) z ∧
    (∀ i : Fin 4, -cartesianPartial (endpointAction P m q) z i =
      massiveCovector c m (patchDown P z) (deriv (fun s => q s z) 1) i) ∧
    quadratic (patchUp P z) (gradient (endpointAction P m q) z) = m ^ 2 * c ^ 2 := by sorry

end

end QAlgorithms.Papers.Independent.Renew46.P42
Source
Optics of Nonuniformly Moving Media, arXiv:physics/9906038v3, PDF p. 5, §III C, (39)–(49): degenerate optical Legendre transform and massive action
Read-back

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

Let V3=R3V_3=\mathbb R^3V3​=R3, V4=R4V_4=\mathbb R^4V4​=R4, a⋅b=∑i=02aibia\cdot b=\sum_{i=0}^2a_i b_ia⋅b=∑i=02​ai​bi​, η=diag⁡(1,−1,−1,−1)\eta=\operatorname{diag}(1,-1,-1,-1)η=diag(1,−1,−1,−1), and Qg(v)=∑i,j=03vigijvjQ_g(v)=\sum_{i,j=0}^3v_i g_{ij}v_jQg​(v)=∑i,j=03​vi​gij​vj​. Coordinate partial derivatives below are obtained by evaluating the Euclidean Fréchet derivative on the corresponding coordinate vector, and gradients collect these partial derivatives. For c>0c>0c>0, put

γc(u)=11−u⋅u/c2,Fc(u)=γc(u)(1,u0/c,u1/c,u2/c),\gamma_c(u)=\frac1{\sqrt{1-u\cdot u/c^2}},\qquad F_c(u)=\gamma_c(u)(1,u_0/c,u_1/c,u_2/c),γc​(u)=1−u⋅u/c2​1​,Fc​(u)=γc​(u)(1,u0​/c,u1​/c,u2​/c), Gc,n+(u)=η+(n2−1)Fc(u)Fc(u)T,Gc,n−(u)=η+(n−2−1)(ηFc(u))(ηFc(u))T.G^+_{c,n}(u)=\eta+(n^2-1)F_c(u)F_c(u)^{\mathsf T},\qquad G^-_{c,n}(u)=\eta+(n^{-2}-1)(\eta F_c(u))(\eta F_c(u))^{\mathsf T}.Gc,n+​(u)=η+(n2−1)Fc​(u)Fc​(u)T,Gc,n−​(u)=η+(n−2−1)(ηFc​(u))(ηFc​(u))T.

Suppose m>0m>0m>0, and PPP consists of an open set Ω⊆V4\Omega\subseteq V_4Ω⊆V4​ and functions N:V4→RN:V_4\to\mathbb RN:V4​→R, u:V4→V3u:V_4\to V_3u:V4​→V3​, both C2C^2C2 on Ω\OmegaΩ, such that N(x)≥1N(x)\ge1N(x)≥1 and u(x)⋅u(x)<c2u(x)\cdot u(x)<c^2u(x)⋅u(x)<c2 for x∈Ωx\in\Omegax∈Ω. Write g(x)=Gc,N(x)−(u(x))g(x)=G^-_{c,N(x)}(u(x))g(x)=Gc,N(x)−​(u(x)) and h(x)=Gc,N(x)+(u(x))h(x)=G^+_{c,N(x)}(u(x))h(x)=Gc,N(x)+​(u(x)). Define

Γbda(x)=12∑e=03hae(x)(∂bged(x)+∂dgeb(x)−∂egbd(x)),A(q)a(s)=dds(q′(s)a)+∑b,d=03Γbda(q(s))q′(s)bq′(s)d.\Gamma^a_{bd}(x)=\frac12\sum_{e=0}^3h_{ae}(x) \bigl(\partial_b g_{ed}(x)+\partial_d g_{eb}(x)-\partial_e g_{bd}(x)\bigr), \qquad \mathcal A(q)^a(s)=\frac{d}{ds}\bigl(q'(s)_a\bigr) +\sum_{b,d=0}^3\Gamma^a_{bd}(q(s))q'(s)_bq'(s)_d.Γbda​(x)=21​e=0∑3​hae​(x)(∂b​ged​(x)+∂d​geb​(x)−∂e​gbd​(x)),A(q)a(s)=dsd​(q′(s)a​)+b,d=0∑3​Γbda​(q(s))q′(s)b​q′(s)d​.

Let q:R×V4→V4q:\mathbb R\times V_4\to V_4q:R×V4​→V4​, z,zbase∈V4z,z_{\mathrm{base}}\in V_4z,zbase​∈V4​, and sets J⊆RJ\subseteq\mathbb RJ⊆R, E⊆V4E\subseteq V_4E⊆V4​ satisfy: EEE is open, z∈E⊆Ωz\in E\subseteq\Omegaz∈E⊆Ω; JJJ is open and contains [0,1][0,1][0,1]; qqq is jointly C2C^2C2 on J×EJ\times EJ×E; and, for every y∈Ey\in Ey∈E, q(0,y)=zbaseq(0,y)=z_{\mathrm{base}}q(0,y)=zbase​, q(1,y)=yq(1,y)=yq(1,y)=y, while for every s∈[0,1]s\in[0,1]s∈[0,1],

q(s,y)∈Ω,∂sq(s,y)0>0,Qg(q(s,y))(∂sq(s,y))>0,A(q( ⋅ ,y))(s)=0.q(s,y)\in\Omega,\qquad \partial_s q(s,y)_0>0,\qquad Q_{g(q(s,y))}(\partial_s q(s,y))>0,\qquad \mathcal A(q(\,\cdot\,,y))(s)=0.q(s,y)∈Ω,∂s​q(s,y)0​>0,Qg(q(s,y))​(∂s​q(s,y))>0,A(q(⋅,y))(s)=0.

For real nnn and u,k∈V3u,k\in V_3u,k∈V3​, define

a=n2c2−c2n2c2−u⋅u,Hc,n,u(k)=c2−u⋅un2c2−u⋅u c2k⋅k−a(u⋅k)2+a(u⋅k),Vc,n,u(k)=∇kHc,n,u(k).a=\frac{n^2c^2-c^2}{n^2c^2-u\cdot u},\qquad H_{c,n,u}(k)= \sqrt{\frac{c^2-u\cdot u}{n^2c^2-u\cdot u}}\, \sqrt{c^2k\cdot k-a(u\cdot k)^2}+a(u\cdot k), \qquad V_{c,n,u}(k)=\nabla_k H_{c,n,u}(k).a=n2c2−u⋅un2c2−c2​,Hc,n,u​(k)=n2c2−u⋅uc2−u⋅u​​c2k⋅k−a(u⋅k)2​+a(u⋅k),Vc,n,u​(k)=∇k​Hc,n,u​(k).

Define the function of the endpoint

S(y)=−mc∫01Qg(q(s,y))(∂sq(s,y)) ds.S(y)=-mc\int_0^1 \sqrt{Q_{g(q(s,y))}(\partial_s q(s,y))}\,ds.S(y)=−mc∫01​Qg(q(s,y))​(∂s​q(s,y))​ds.

Then every nonzero k∈V3k\in V_3k∈V3​ satisfies k⋅Vc,N(z),u(z)(k)−Hc,N(z),u(z)(k)=0k\cdot V_{c,N(z),u(z)}(k)-H_{c,N(z),u(z)}(k)=0k⋅Vc,N(z),u(z)​(k)−Hc,N(z),u(z)​(k)=0; every v∈V3v\in V_3v∈V3​ with Qg(z)((c,v0,v1,v2))>0Q_{g(z)}((c,v_0,v_1,v_2))>0Qg(z)​((c,v0​,v1​,v2​))>0 satisfies

−mcc2−v⋅v+(N(z)−2−1)γc(u(z))2(c−u(z)⋅vc)2=−mcQg(z)((c,v0,v1,v2));-mc\sqrt{c^2-v\cdot v+ (N(z)^{-2}-1)\gamma_c(u(z))^2 \left(c-\frac{u(z)\cdot v}{c}\right)^2} =-mc\sqrt{Q_{g(z)}((c,v_0,v_1,v_2))};−mcc2−v⋅v+(N(z)−2−1)γc​(u(z))2(c−cu(z)⋅v​)2​=−mcQg(z)​((c,v0​,v1​,v2​))​;

SSS is differentiable at zzz; and, writing w=∂sq(1,z)w=\partial_s q(1,z)w=∂s​q(1,z), all four coordinate derivatives and their quadratic expression satisfy

−∂iS(z)=mcQg(z)(w)∑j=03gij(z)wj(0≤i<4),Qh(z)(∇S(z))=m2c2.-\partial_iS(z)=\frac{mc}{\sqrt{Q_{g(z)}(w)}}\sum_{j=0}^3g_{ij}(z)w_j \quad(0\le i<4),\qquad Q_{h(z)}(\nabla S(z))=m^2c^2.−∂i​S(z)=Qg(z)​(w)​mc​j=0∑3​gij​(z)wj​(0≤i<4),Qh(z)​(∇S(z))=m2c2.
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 2026

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

  • Endorsed by mikedeng1 · Oct 21, 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