Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Thomson problem: configurations on the unit sphere, Coulomb energy, and the candidate optimal configurations

Definition
ThomsonProblem_defs

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

discrete-geometrypotential-energythomson-problem

This file sets up the Thomson problem: place NNN electrons on the unit sphere S2⊂R3S^2\subset\mathbb R^3S2⊂R3 so that their total Coulomb energy is as small as possible.

  1. Admissible configuration. An NNN-point configuration is a map x:{0,…,N−1}→R3x:\{0,\dots,N-1\}\to\mathbb R^3x:{0,…,N−1}→R3. It is admissible if every point lies on the unit sphere, ∥xi∥=1\|x_i\|=1∥xi​∥=1, and the points are pairwise distinct, xi≠xjx_i\neq x_jxi​=xj​ for i≠ji\neq ji=j.
  2. Coulomb energy. In units with e=1e=1e=1 and Coulomb constant ke=1k_e=1ke​=1,
U(x)=∑0≤i<j≤N−11∥xi−xj∥.U(x)=\sum_{0\le i<j\le N-1}\frac{1}{\|x_i-x_j\|}.U(x)=0≤i<j≤N−1∑​∥xi​−xj​∥1​.
  1. Energy minimiser. A configuration xxx solves the Thomson problem for NNN electrons if it is admissible and U(x)≤U(y)U(x)\le U(y)U(x)≤U(y) for every admissible NNN-point configuration yyy.
  2. Candidate configurations (explicit coordinates, all on the unit sphere):
    • N=2N=2N=2: the antipodal pair (0,0,±1)(0,0,\pm1)(0,0,±1);
    • N=3N=3N=3: the equilateral triangle (1,0,0)(1,0,0)(1,0,0), (−12,±32,0)(-\tfrac12,\pm\tfrac{\sqrt3}{2},0)(−21​,±23​​,0) on the equator (a great circle);
    • N=4N=4N=4: the regular tetrahedron 13(1,1,1),13(1,−1,−1),13(−1,1,−1),13(−1,−1,1)\tfrac1{\sqrt3}(1,1,1),\tfrac1{\sqrt3}(1,-1,-1),\tfrac1{\sqrt3}(-1,1,-1),\tfrac1{\sqrt3}(-1,-1,1)3​1​(1,1,1),3​1​(1,−1,−1),3​1​(−1,1,−1),3​1​(−1,−1,1);
    • N=5N=5N=5: the triangular bipyramid: the poles (0,0,±1)(0,0,\pm1)(0,0,±1) together with the equatorial equilateral triangle above;
    • N=6N=6N=6: the regular octahedron ±e1,±e2,±e3\pm e_1,\pm e_2,\pm e_3±e1​,±e2​,±e3​;
    • N=7N=7N=7: the pentagonal bipyramid: the poles (0,0,±1)(0,0,\pm1)(0,0,±1) together with the regular pentagon pk=(cos⁡2πk5,sin⁡2πk5,0)p_k=(\cos\tfrac{2\pi k}{5},\sin\tfrac{2\pi k}{5},0)pk​=(cos52πk​,sin52πk​,0), k=0,…,4k=0,\dots,4k=0,…,4;
    • N=12N=12N=12: the regular icosahedron: the twelve points (0,±1,±φ)(0,\pm1,\pm\varphi)(0,±1,±φ), (±1,±φ,0)(\pm1,\pm\varphi,0)(±1,±φ,0), (±φ,0,±1)(\pm\varphi,0,\pm1)(±φ,0,±1), each divided by 1+φ2\sqrt{1+\varphi^2}1+φ2​, where φ=1+52\varphi=\tfrac{1+\sqrt5}{2}φ=21+5​​ is the golden ratio.

These definitions are shared by every statement of the mission. The energy is invariant under rotations and reflections of the sphere and under relabelling of the points, so fixing one particular orientation of each candidate polyhedron loses no generality.

Formalization Note Points live in EuclideanSpace ℝ (Fin 3), configurations are functions Fin N → EuclideanSpace ℝ (Fin 3), and the pairwise sum runs over j∈(i,N−1]j\in(i,N-1]j∈(i,N−1] via Finset.Ioi i. Lean's convention 1/0=01/0=01/0=0 only affects non-admissible configurations with coincident points, which are excluded by the admissibility hypothesis.

Definition code
import Mathlib

namespace ThomsonProblem

/-- Euclidean three-space `ℝ³` with its usual (Euclidean) distance. -/
abbrev Space := EuclideanSpace ℝ (Fin 3)

/-- An admissible `N`-electron configuration: `N` pairwise distinct points on the unit
sphere `{v ∈ ℝ³ : ‖v‖ = 1}`. -/
def IsAdmissible {N : ℕ} (x : Fin N → Space) : Prop :=
  (∀ i, ‖x i‖ = 1) ∧ Function.Injective x

/-- The Coulomb (Riesz `s = 1`) energy `∑_{i < j} 1 / ‖x i - x j‖` of a configuration,
in units with `e = 1` and `kₑ = 1`. -/
noncomputable def coulombEnergy {N : ℕ} (x : Fin N → Space) : ℝ :=
  ∑ i : Fin N, ∑ j ∈ Finset.Ioi i, 1 / dist (x i) (x j)

/-- `x` solves the Thomson problem for `N` electrons: it is admissible and its Coulomb
energy is at most that of every admissible `N`-point configuration. -/
def IsEnergyMinimizer {N : ℕ} (x : Fin N → Space) : Prop :=
  IsAdmissible x ∧ ∀ y : Fin N → Space, IsAdmissible y → coulombEnergy x ≤ coulombEnergy y

/-- `N = 2`: two antipodal points (the poles). -/
noncomputable def antipodalPair : Fin 2 → Space :=
  ![!₂[0, 0, 1], !₂[0, 0, -1]]

/-- `N = 3`: vertices of an equilateral triangle inscribed in the equator (a great circle). -/
noncomputable def equilateralTriangle : Fin 3 → Space :=
  ![!₂[1, 0, 0], !₂[-1 / 2, Real.sqrt 3 / 2, 0], !₂[-1 / 2, -(Real.sqrt 3 / 2), 0]]

/-- `N = 4`: vertices of a regular tetrahedron inscribed in the unit sphere. -/
noncomputable def regularTetrahedron : Fin 4 → Space :=
  fun i => (1 / Real.sqrt 3) •
    ![!₂[1, 1, 1], !₂[1, -1, -1], !₂[-1, 1, -1], !₂[-1, -1, 1]] i

/-- `N = 5`: vertices of a triangular bipyramid (the two poles and an equilateral triangle
on the equator). -/
noncomputable def triangularBipyramid : Fin 5 → Space :=
  ![!₂[0, 0, 1], !₂[0, 0, -1],
    !₂[1, 0, 0], !₂[-1 / 2, Real.sqrt 3 / 2, 0], !₂[-1 / 2, -(Real.sqrt 3 / 2), 0]]

/-- `N = 6`: vertices of a regular octahedron (`±e₁, ±e₂, ±e₃`). -/
noncomputable def regularOctahedron : Fin 6 → Space :=
  ![!₂[1, 0, 0], !₂[-1, 0, 0], !₂[0, 1, 0], !₂[0, -1, 0], !₂[0, 0, 1], !₂[0, 0, -1]]

/-- The `k`-th vertex `(cos (2πk/5), sin (2πk/5), 0)` of a regular pentagon inscribed in
the equator. -/
noncomputable def pentagonVertex (k : ℕ) : Space :=
  !₂[Real.cos (2 * Real.pi * k / 5), Real.sin (2 * Real.pi * k / 5), 0]

/-- `N = 7`: vertices of a pentagonal bipyramid (the two poles and a regular pentagon on
the equator). -/
noncomputable def pentagonalBipyramid : Fin 7 → Space :=
  ![!₂[0, 0, 1], !₂[0, 0, -1],
    pentagonVertex 0, pentagonVertex 1, pentagonVertex 2, pentagonVertex 3, pentagonVertex 4]

/-- `N = 12`: vertices of a regular icosahedron inscribed in the unit sphere: the twelve
points `(0, ±1, ±φ)`, `(±1, ±φ, 0)`, `(±φ, 0, ±1)` (with `φ` the golden ratio), each
scaled by `1 / √(1 + φ²)`. -/
noncomputable def regularIcosahedron : Fin 12 → Space :=
  fun i => (1 / Real.sqrt (1 + Real.goldenRatio ^ 2)) •
    ![!₂[0, 1, Real.goldenRatio], !₂[0, 1, -Real.goldenRatio],
      !₂[0, -1, Real.goldenRatio], !₂[0, -1, -Real.goldenRatio],
      !₂[1, Real.goldenRatio, 0], !₂[1, -Real.goldenRatio, 0],
      !₂[-1, Real.goldenRatio, 0], !₂[-1, -Real.goldenRatio, 0],
      !₂[Real.goldenRatio, 0, 1], !₂[Real.goldenRatio, 0, -1],
      !₂[-Real.goldenRatio, 0, 1], !₂[-Real.goldenRatio, 0, -1]] i

end ThomsonProblem
Source
Wikipedia, "Thomson problem" (as uploaded, PDF snapshot retrieved 2026-09-29/30), sections "Mathematical statement", "Example" and "Known exact solutions".
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as drafter; NON-BLIND

Non-blind read-back. This read-back is NOT independent testimony. It was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source material and of the intended meaning. It is not the blind, independent-auditor read-back recommended by the platform, and reviewers should not treat it as such; please compare the Lean code against the source directly.

The file introduces, inside the namespace ThomsonProblem, the following objects.

Space. R3\mathbb R^3R3 with the Euclidean norm ∥v∥=v02+v12+v22\|v\|=\sqrt{v_0^2+v_1^2+v_2^2}∥v∥=v02​+v12​+v22​​ and distance d(u,v)=∥u−v∥d(u,v)=\|u-v\|d(u,v)=∥u−v∥.

Admissibility. For N∈NN\in\mathbb NN∈N and x:{0,…,N−1}→R3x:\{0,\dots,N-1\}\to\mathbb R^3x:{0,…,N−1}→R3, "xxx is admissible" means: (a) ∥xi∥=1\|x_i\|=1∥xi​∥=1 for every iii, and (b) xxx is injective, i.e. xi=xj⇒i=jx_i=x_j\Rightarrow i=jxi​=xj​⇒i=j. For N=0N=0N=0 the empty configuration is admissible; for N=1N=1N=1 any single unit vector is admissible.

Coulomb energy. For any xxx (admissible or not),

U(x)=∑i=0N−1 ∑j: i<j≤N−11d(xi,xj),U(x)=\sum_{i=0}^{N-1}\ \sum_{j:\ i<j\le N-1}\frac{1}{d(x_i,x_j)},U(x)=i=0∑N−1​ j: i<j≤N−1∑​d(xi​,xj​)1​,

where the order i<ji<ji<j is the usual order on indices. If two points coincide, the corresponding term is 1/01/01/0, which the formal system evaluates to 000 (not +∞+\infty+∞); this can only happen for non-injective, hence non-admissible, xxx. For N≤1N\le1N≤1 the sum is empty and U(x)=0U(x)=0U(x)=0.

Energy minimiser. "xxx is an energy minimiser" means: xxx is admissible, and for every y:{0,…,N−1}→R3y:\{0,\dots,N-1\}\to\mathbb R^3y:{0,…,N−1}→R3 that is admissible, U(x)≤U(y)U(x)\le U(y)U(x)≤U(y). The comparison is only against configurations with the same number NNN of points; it is a non-strict inequality, and nothing is asserted about uniqueness.

Explicit configurations. Writing φ\varphiφ for the golden ratio (1+5)/2(1+\sqrt5)/2(1+5​)/2:

  • antipodalPair (N=2N=2N=2): x0=(0,0,1)x_0=(0,0,1)x0​=(0,0,1), x1=(0,0,−1)x_1=(0,0,-1)x1​=(0,0,−1).
  • equilateralTriangle (N=3N=3N=3): (1,0,0)(1,0,0)(1,0,0), (−12,32,0)(-\tfrac12,\tfrac{\sqrt3}2,0)(−21​,23​​,0), (−12,−32,0)(-\tfrac12,-\tfrac{\sqrt3}2,0)(−21​,−23​​,0).
  • regularTetrahedron (N=4N=4N=4): 13\tfrac{1}{\sqrt3}3​1​ times (1,1,1)(1,1,1)(1,1,1), (1,−1,−1)(1,-1,-1)(1,−1,−1), (−1,1,−1)(-1,1,-1)(−1,1,−1), (−1,−1,1)(-1,-1,1)(−1,−1,1).
  • triangularBipyramid (N=5N=5N=5): (0,0,1)(0,0,1)(0,0,1), (0,0,−1)(0,0,-1)(0,0,−1), (1,0,0)(1,0,0)(1,0,0), (−12,32,0)(-\tfrac12,\tfrac{\sqrt3}2,0)(−21​,23​​,0), (−12,−32,0)(-\tfrac12,-\tfrac{\sqrt3}2,0)(−21​,−23​​,0).
  • regularOctahedron (N=6N=6N=6): (1,0,0),(−1,0,0),(0,1,0),(0,−1,0),(0,0,1),(0,0,−1)(1,0,0),(-1,0,0),(0,1,0),(0,-1,0),(0,0,1),(0,0,-1)(1,0,0),(−1,0,0),(0,1,0),(0,−1,0),(0,0,1),(0,0,−1).
  • pentagonVertex kkk (for k∈Nk\in\mathbb Nk∈N, cast to a real number): (cos⁡(2πk/5), sin⁡(2πk/5), 0)\big(\cos(2\pi k/5),\ \sin(2\pi k/5),\ 0\big)(cos(2πk/5), sin(2πk/5), 0).
  • pentagonalBipyramid (N=7N=7N=7): (0,0,1)(0,0,1)(0,0,1), (0,0,−1)(0,0,-1)(0,0,−1), then pentagon vertices k=0,1,2,3,4k=0,1,2,3,4k=0,1,2,3,4.
  • regularIcosahedron (N=12N=12N=12): 11+φ2\tfrac{1}{\sqrt{1+\varphi^2}}1+φ2​1​ times, in order, (0,1,φ)(0,1,\varphi)(0,1,φ), (0,1,−φ)(0,1,-\varphi)(0,1,−φ), (0,−1,φ)(0,-1,\varphi)(0,−1,φ), (0,−1,−φ)(0,-1,-\varphi)(0,−1,−φ), (1,φ,0)(1,\varphi,0)(1,φ,0), (1,−φ,0)(1,-\varphi,0)(1,−φ,0), (−1,φ,0)(-1,\varphi,0)(−1,φ,0), (−1,−φ,0)(-1,-\varphi,0)(−1,−φ,0), (φ,0,1)(\varphi,0,1)(φ,0,1), (φ,0,−1)(\varphi,0,-1)(φ,0,−1), (−φ,0,1)(-\varphi,0,1)(−φ,0,1), (−φ,0,−1)(-\varphi,0,-1)(−φ,0,−1).

The file contains only definitions (no theorems or proofs); that these explicit points have norm 111 and are pairwise distinct is not asserted here — it is part of each theorem's conclusion "is an energy minimiser".

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

    Confirmed by the moderator at approval.

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