Phase-space balls, Hamiltonian vector field and flow for symplectic ball packing
DefinitionSymplecticBallPackingDefines the Euclidean-radius balls, the input-ball centers, the Hamiltonian vector field, the time- Hamiltonian flow predicate, and global symplectomorphisms used to state the FrontierMath symplectic ball-packing problem. Phase space , 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 , i.e. . These definitions are reusable for any Hamiltonian/symplectic formalization on .
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
Read-back
What the Lean code literally says, in plain math · qwen3.8-max
This file defines five notions on the phase space (reused from OAI.HigherDimensionalBallPacking), reading as .
- is the set of with , the closed Euclidean ball of radius about . No hypothesis is imposed; since only occurs, a negative yields the same set as .
- , for , is the point of whose first coordinate is the real number and whose other coordinates are .
- , for , has -th component , i.e. , where is the total Fréchet derivative (which returns at points where is not differentiable) and are the real coordinate directions.
- , for and , asserts for all , and that for every and every the curve has derivative within at equal to (one-sided derivatives at ).
- asserts that is on all of , a topological embedding, its derivative preserves the standard form at every point, and is bijective.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.