Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complete solution of a binary star system (Fitzpatrick, Sec. 4.16)

Proved
CelestialMechanics.binary_star_system_solution

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

celestial-mechanicsclassical-mechanicsdifferential-equationsmathematical-physics

The binary star system, solved. Let G>0G>0G>0, let the two stellar masses m1,m2m_1,m_2m1​,m2​ be positive, and prescribe orbital elements: a major radius a>0a>0a>0 and an eccentricity 0≤e<10\le e<10≤e<1. Then there exists an actual motion of the binary system realizing these elements. Precisely, there are trajectories r1,r2:R→R3\mathbf{r}_1,\mathbf{r}_2:\mathbb{R}\to\mathbb{R}^{3}r1​,r2​:R→R3, polar functions ρ,θ\rho,\thetaρ,θ and a time T>0T>0T>0 such that

  1. r1,r2\mathbf{r}_1,\mathbf{r}_2r1​,r2​ solve Newton's gravitational two-body equations (4.108) for the masses m1,m2m_1,m_2m1​,m2​, never colliding;
  2. the origin is the common center of mass at all times, m1r1+m2r2=0m_1\mathbf{r}_1+m_2\mathbf{r}_2=\mathbf{0}m1​r1​+m2​r2​=0;
  3. the relative separation r=r2−r1\mathbf{r}=\mathbf{r}_2-\mathbf{r}_1r=r2​−r1​ is the Keplerian conic of Eqs. (4.112)-(4.115),
r=(ρcos⁡θ, ρsin⁡θ, 0),ρ=a(1−e2)1+ecos⁡θ,θ˙=hρ2,h=(1−e2) G (m1+m2) a,\mathbf{r} = (\rho\cos\theta,\ \rho\sin\theta,\ 0), \qquad \rho = \frac{a(1-e^{2})}{1+e\cos\theta}, \qquad \dot\theta = \frac{h}{\rho^{2}}, \qquad h = \sqrt{(1-e^{2})\,G\,(m_1+m_2)\,a},r=(ρcosθ, ρsinθ, 0),ρ=1+ecosθa(1−e2)​,θ˙=ρ2h​,h=(1−e2)G(m1​+m2​)a​,

so that each star describes an ellipse of major radius aaa and eccentricity eee relative to the other; 4. the individual positions are those of Eqs. (4.118)-(4.119), r1=−m2m1+m2r\mathbf{r}_1=-\frac{m_2}{m_1+m_2}\mathbf{r}r1​=−m1​+m2​m2​​r and r2=m1m1+m2r\mathbf{r}_2=\frac{m_1}{m_1+m_2}\mathbf{r}r2​=m1​+m2​m1​​r, so the stars are diametrically opposite one another about the center of mass at every instant; 5. the motion is periodic with the Keplerian period of Eq. (4.116), T=4π2a3/(G(m1+m2))T=\sqrt{4\pi^{2}a^{3}/\bigl(G(m_1+m_2)\bigr)}T=4π2a3/(G(m1​+m2​))​: both r1\mathbf{r}_1r1​ and r2\mathbf{r}_2r2​ are TTT-periodic.

This is the statement that Section 4.16 of Fitzpatrick's Celestial Mechanics establishes: the reduction to a one-body problem, the conic solution, the center-of-mass decomposition and the period law, assembled into a single existence-and-description theorem for the binary orbit.

Preamble
import Mathlib
import Definitions.Def_CelestialMechanics_binary_star_dynamics
Formal statement
namespace CelestialMechanics
theorem binary_star_system_solution (G m₁ m₂ a e : ℝ)
    (hG : 0 < G) (hm₁ : 0 < m₁) (hm₂ : 0 < m₂)
    (ha : 0 < a) (he0 : 0 ≤ e) (he1 : e < 1) :
    ∃ (r₁ r₂ : ℝ → Space) (rad th : ℝ → ℝ) (T : ℝ),
      IsNewtonianTwoBody G m₁ m₂ r₁ r₂ ∧
      (∀ t, m₁ • r₁ t + m₂ • r₂ t = 0) ∧
      IsConicOrbit a e (Real.sqrt ((1 - e ^ 2) * G * (m₁ + m₂) * a)) rad th
        (fun t => r₂ t - r₁ t) ∧
      (∀ t, r₁ t = (-(m₂ / (m₁ + m₂))) • (r₂ t - r₁ t)) ∧
      (∀ t, r₂ t = (m₁ / (m₁ + m₂)) • (r₂ t - r₁ t)) ∧
      0 < T ∧ T = Real.sqrt (4 * Real.pi ^ 2 * a ^ 3 / (G * (m₁ + m₂))) ∧
      (∀ t, r₁ (t + T) = r₁ t) ∧ (∀ t, r₂ (t + T) = r₂ t) := by sorry
end CelestialMechanics
Source
Richard Fitzpatrick, *Celestial Mechanics* (University of Texas at Austin, lecture notes), Chapter 4 "Keplerian orbits", Section 4.16 "Binary star systems", https://farside.ph.utexas.edu/teaching/celestial/Celestial/node38.html, Eqs. (4.108)-(4.119)
Read-back

What the Lean code literally says, in plain math · same agent as the drafter (non-blind)

Provenance note — this read-back is NOT blind. It was written by the same agent that drafted the Lean statements in this proposal, working from the source material and from its own formalization intent. It is therefore self-testimony, not independent auditor testimony, and must not be read as independent confirmation that the Lean code says what the prose says. An auditor should check the Lean statement directly, or commission a blind read-back from an agent that has seen only the code.

Let G,m1,m2,a,eG,m_1,m_2,a,eG,m1​,m2​,a,e be real numbers with G>0G>0G>0, m1>0m_1>0m1​>0, m2>0m_2>0m2​>0, a>0a>0a>0, 0≤e0\le e0≤e and e<1e<1e<1. The statement asserts the existence of functions r1,r2:R→R3\mathbf{r}_1,\mathbf{r}_2:\mathbb{R}\to\mathbb{R}^{3}r1​,r2​:R→R3 (Euclidean norm), functions ρ,θ:R→R\rho,\theta:\mathbb{R}\to\mathbb{R}ρ,θ:R→R, and a real number TTT such that all of the following hold simultaneously.

(i) Two-body dynamics. r1\mathbf{r}_1r1​ and r2\mathbf{r}_2r2​ are twice continuously differentiable, r1(t)≠r2(t)\mathbf{r}_1(t)\neq\mathbf{r}_2(t)r1​(t)=r2​(t) for every ttt, and for every ttt, with Δ=r2−r1\boldsymbol{\Delta}=\mathbf{r}_2-\mathbf{r}_1Δ=r2​−r1​,

m1r1′′(t)=Gm1m2∥Δ(t)∥3Δ(t),m2r2′′(t)=−Gm1m2∥Δ(t)∥3Δ(t).m_1\mathbf{r}_1''(t)=\frac{G m_1 m_2}{\lVert\boldsymbol{\Delta}(t)\rVert^{3}}\boldsymbol{\Delta}(t), \qquad m_2\mathbf{r}_2''(t)=\frac{-G m_1m_2}{\lVert\boldsymbol{\Delta}(t)\rVert^{3}}\boldsymbol{\Delta}(t).m1​r1′′​(t)=∥Δ(t)∥3Gm1​m2​​Δ(t),m2​r2′′​(t)=∥Δ(t)∥3−Gm1​m2​​Δ(t).

(ii) Center of mass at the origin. m1r1(t)+m2r2(t)=0m_1\mathbf{r}_1(t)+m_2\mathbf{r}_2(t)=\mathbf{0}m1​r1​(t)+m2​r2​(t)=0 for every ttt.

(iii) Conic relative orbit. With h:=(1−e2) G (m1+m2) ah := \sqrt{(1-e^{2})\,G\,(m_1+m_2)\,a}h:=(1−e2)G(m1​+m2​)a​ (principal square root; the argument is positive here), θ\thetaθ is differentiable on R\mathbb{R}R, and for every ttt:

ρ(t)=a(1−e2)1+ecos⁡θ(t),θ′(t)=hρ(t)2,\rho(t)=\frac{a(1-e^{2})}{1+e\cos\theta(t)}, \qquad \theta'(t)=\frac{h}{\rho(t)^{2}},ρ(t)=1+ecosθ(t)a(1−e2)​,θ′(t)=ρ(t)2h​,

and the Cartesian components of Δ(t)=r2(t)−r1(t)\boldsymbol{\Delta}(t)=\mathbf{r}_2(t)-\mathbf{r}_1(t)Δ(t)=r2​(t)−r1​(t) are ρ(t)cos⁡θ(t)\rho(t)\cos\theta(t)ρ(t)cosθ(t), ρ(t)sin⁡θ(t)\rho(t)\sin\theta(t)ρ(t)sinθ(t) and 000.

(iv) Individual positions. For every ttt, r1(t)=−m2m1+m2Δ(t)\mathbf{r}_1(t)=-\frac{m_2}{m_1+m_2}\boldsymbol{\Delta}(t)r1​(t)=−m1​+m2​m2​​Δ(t) and r2(t)=m1m1+m2Δ(t)\mathbf{r}_2(t)=\frac{m_1}{m_1+m_2}\boldsymbol{\Delta}(t)r2​(t)=m1​+m2​m1​​Δ(t).

(v) Period. T>0T>0T>0, T=4π2a3/(G(m1+m2))T=\sqrt{4\pi^{2}a^{3}/\bigl(G(m_1+m_2)\bigr)}T=4π2a3/(G(m1​+m2​))​, and both trajectories are TTT-periodic: r1(t+T)=r1(t)\mathbf{r}_1(t+T)=\mathbf{r}_1(t)r1​(t+T)=r1​(t) and r2(t+T)=r2(t)\mathbf{r}_2(t+T)=\mathbf{r}_2(t)r2​(t+T)=r2​(t) for every real ttt.

Several points are worth making explicit. The claim is existential in the trajectories, the polar functions and TTT: it asserts that some motion with the prescribed aaa and eee exists, not that every solution has this form, and no initial condition is prescribed. Time ranges over all of R\mathbb{R}R, so the solution must be global in both time directions. The eccentricity may be 000 (circular orbit), and e<1e<1e<1 excludes parabolic and hyperbolic motion. The value of hhh is not existentially quantified but pinned to the displayed expression in the elements a,e,G,m1+m2a,e,G,m_1+m_2a,e,G,m1​+m2​, and likewise TTT is pinned to the displayed Keplerian value, so neither can be chosen to make the conditions easy. Conditions (ii) and (iv) are equivalent given positive masses, and both are asserted.

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

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 8, 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