Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Phase-space balls, Hamiltonian vector field and flow for symplectic ball packing

Definition
SymplecticBallPacking

by LG · Nov 17, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysisdifferential-geometrysymplectic-geometry

Defines the Euclidean-radius balls, the input-ball centers, the Hamiltonian vector field, the time-111 Hamiltonian flow predicate, and global symplectomorphisms used to state the FrontierMath symplectic ball-packing problem. Phase space Cn≅R2n\mathbb C^n\cong\mathbb R^{2n}Cn≅R2n, the standard symplectic form, capacity balls and symplectic embeddings are reused from the platform's BallPacking definitions; this file adds the Euclidean-radius convention and the Hamiltonian-flow machinery. The Hamiltonian convention is ω(XH,⋅)=dH\omega(X_H,\cdot)=dHω(XH​,⋅)=dH, i.e. XH=(∂H/∂p,−∂H/∂q)X_H=(\partial H/\partial p,-\partial H/\partial q)XH​=(∂H/∂p,−∂H/∂q). These definitions are reusable for any Hamiltonian/symplectic formalization on R2n\mathbb R^{2n}R2n.

Definition code
import Mathlib
import Definitions.Def_BallPacking

namespace SymplecticBallPacking
open OAI.HigherDimensionalBallPacking
open Set

def euclClosedBall {n : ℕ} (c : Phase n) (r : ℝ) : Set (Phase n) :=
  {z | ∑ j, Complex.normSq (z j - c j) ≤ r ^ 2}

def inputCenter {k : ℕ} (i : Fin k) : Phase 2 :=
  Pi.single 0 ((3 * i.val : ℕ) : ℂ)

noncomputable def hamiltonianVectorField {n : ℕ} (H : Phase n → ℝ) (z : Phase n) : Phase n :=
  fun j => (↑(fderiv ℝ H z (Pi.single j Complex.I)) : ℂ) -
    Complex.I * (↑(fderiv ℝ H z (Pi.single j (1 : ℂ))) : ℂ)

def IsHamiltonianFlow {n : ℕ} (H : Phase n → ℝ → ℝ) (Φ : ℝ → Phase n → Phase n) : Prop :=
  (∀ x, Φ 0 x = x) ∧
  ∀ t ∈ Icc (0 : ℝ) 1, ∀ x,
    HasDerivWithinAt (fun s => Φ s x)
      (hamiltonianVectorField (fun z => H z t) (Φ t x)) (Icc (0 : ℝ) 1) t

def IsSymplectomorphism {n : ℕ} (f : Phase n → Phase n) : Prop :=
  SymplecticOn (Set.univ : Set (Phase n)) f ∧ Function.Bijective f

end SymplecticBallPacking
Source
Epoch AI, FrontierMath: Open Problems — Symplectic Ball Packing, https://epoch.ai/frontiermath/open-problems/symplectic-ball-packing (Prompt: balls, Hamiltonian flow); McDuff–Salamon, Introduction to Symplectic Topology, 3rd ed., §3.2 (Hamiltonian vector fields).
Read-back

What the Lean code literally says, in plain math · qwen3.8-max

This file defines five notions on the phase space Phase n=Fin n→C\mathrm{Phase}\,n = \mathrm{Fin}\,n \to \mathbb CPhasen=Finn→C (reused from OAI.HigherDimensionalBallPacking), reading zjz_jzj​ as qj+i pjq_j + i\,p_jqj​+ipj​.

  • euclClosedBall(c,r)\mathrm{euclClosedBall}(c,r)euclClosedBall(c,r) is the set of zzz with ∑j∣zj−cj∣2≤r2\sum_j |z_j-c_j|^2 \le r^2∑j​∣zj​−cj​∣2≤r2, the closed Euclidean ball of radius rrr about ccc. No hypothesis r≥0r\ge 0r≥0 is imposed; since only r2r^2r2 occurs, a negative rrr yields the same set as ∣r∣|r|∣r∣.
  • inputCenter(i)\mathrm{inputCenter}(i)inputCenter(i), for i∈Fin ki\in\mathrm{Fin}\,ki∈Fink, is the point of C2\mathbb C^2C2 whose first coordinate is the real number 3 i.val3\,i.\mathrm{val}3i.val and whose other coordinates are 000.
  • hamiltonianVectorField(H,z)\mathrm{hamiltonianVectorField}(H,z)hamiltonianVectorField(H,z), for H:Phase n→RH:\mathrm{Phase}\,n\to\mathbb RH:Phasen→R, has jjj-th component DHz(epj)−i DHz(eqj)D H_z(e_{p_j}) - i\,D H_z(e_{q_j})DHz​(epj​​)−iDHz​(eqj​​), i.e. ∂H/∂pj−i ∂H/∂qj\partial H/\partial p_j - i\,\partial H/\partial q_j∂H/∂pj​−i∂H/∂qj​, where DHzD H_zDHz​ is the total Fréchet derivative (which returns 000 at points where HHH is not differentiable) and eqj,epje_{q_j},e_{p_j}eqj​​,epj​​ are the real coordinate directions.
  • IsHamiltonianFlow(H,Φ)\mathrm{IsHamiltonianFlow}(H,\Phi)IsHamiltonianFlow(H,Φ), for H:Phase n→R→RH:\mathrm{Phase}\,n\to\mathbb R\to\mathbb RH:Phasen→R→R and Φ:R→Phase n→Phase n\Phi:\mathbb R\to\mathrm{Phase}\,n\to\mathrm{Phase}\,nΦ:R→Phasen→Phasen, asserts Φ0(x)=x\Phi_0(x)=xΦ0​(x)=x for all xxx, and that for every t∈[0,1]t\in[0,1]t∈[0,1] and every xxx the curve s↦Φs(x)s\mapsto\Phi_s(x)s↦Φs​(x) has derivative within [0,1][0,1][0,1] at ttt equal to hamiltonianVectorField(H(⋅,t))(Φt(x))\mathrm{hamiltonianVectorField}(H(\cdot,t))(\Phi_t(x))hamiltonianVectorField(H(⋅,t))(Φt​(x)) (one-sided derivatives at t=0,1t=0,1t=0,1).
  • IsSymplectomorphism(f)\mathrm{IsSymplectomorphism}(f)IsSymplectomorphism(f) asserts that fff is C∞C^\inftyC∞ on all of Phase n\mathrm{Phase}\,nPhasen, a topological embedding, its derivative preserves the standard form ω(u,v)=∑j(Re uj Im vj−Im uj Re vj)\omega(u,v)=\sum_j(\mathrm{Re}\,u_j\,\mathrm{Im}\,v_j-\mathrm{Im}\,u_j\,\mathrm{Re}\,v_j)ω(u,v)=∑j​(Reuj​Imvj​−Imuj​Revj​) at every point, and fff is bijective.
Human review
  • Endorsed by Shuze Chen · Nov 17, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Nov 17, 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