∀
PlasmaLean
Formalization handbook · all 13 guides

Detailed plans and progress for every workstream. Compiled results & assumption ledger → Vacuum demonstrator: checked margins & next device →

Handbook overview & task progress →
Fundamentals & Physics Principles Magnetic Confinement Fusion

What is a Stellarator? Physics Concepts, Geometry & Importance

Nuclear fusion requires heating hydrogen isotopes (Deuterium & Tritium) to over 100 million degrees Celsius—far hotter than the core of the Sun. At these extreme temperatures, matter becomes fully ionized plasma. To prevent this ultra-hot plasma from touching solid walls, magnetic fields trap charged particles inside a toroidal "magnetic bottle."

A stellarator uses external three-dimensional coils to create magnetic-field twist without requiring a large inductive plasma current. This supports the goal of steady-state operation. Finite plasma currents and instability mechanisms remain possible, so confinement, stability, and engineering feasibility each need their own analysis.

INTERACTIVE DIAGRAM

1. Toroidal Geometry & Helical Field Twist ($\iota$)

Simulates magnetic field lines wrapping around a torus. Toggle between Tokamak (driven current) vs. Stellarator (3D coil twist).

Schematic torus, field lines, and particle motion; no computed equilibrium or orbit solution.

Schematic torus, field lines, and particle motion; no computed equilibrium or orbit solution.

Mode: 3D Helical Stellarator Coils Rotational Transform $\iota \approx 0.85$
🧲 Why Field Line Twist is Essential:

Simple toroidal magnetic fields cause charged particles to drift vertically due to magnetic field gradients ($\nabla B$) and curvature ($\mathbf{v}_d \propto \mathbf{B} \times \nabla B$). Ions drift up, electrons drift down, creating a huge electric field that blows the plasma apart.

By twisting magnetic field lines into a helical trajectory, a field line spends time on both top and bottom of the torus. This short-circuits the charge separation and confines the plasma!

Rotational Transform Metric:
$$\iota(\psi) = \frac{d\theta}{d\phi} = \text{Poloidal Turns per Toroidal Turn}$$

2. Tokamaks vs. Stellarators: Key Trade-offs & Physics Architecture

Why the world is shifting toward stellarators for commercial power generation.

TOKAMAK ARCHITECTURE 2D Axi-symmetric

High Current, High Disruption Risk

Uses planar toroidal coils combined with a massive central solenoid transformer to induce millions of Amperes of electric current ($I_p$) directly inside the plasma.

  • ✗ Major Disruptions: Sudden instability collapses destroy vacuum chamber walls within milliseconds.
  • ✗ Pulsed Operation: Solenoid flux runs out, requiring complex external current drive.
  • ✓ Simple Coils: Planar circular magnets are much easier to manufacture.
Primary Bottleneck: Disruption avoidance & non-inductive current drive.
STELLARATOR ARCHITECTURE 3D Non-symmetric

External Field Twist & Steady-State Potential

Uses external three-dimensional coils to supply field twist; plasma currents can also affect the operating equilibrium.

  • ✓ Reduced reliance on plasma current: Large inductive current is not required for confinement.
  • ✓ Steady-state potential: Continuous operation also requires heat removal, transport control, and component margins.
  • ⚠️ Complex Geometry: Highly complex 3D coils, and large neoclassical drift losses of thermal ions and electrons unless the field is (close to) omnigenous; quasisymmetric and quasi-isodynamic fields are special cases.
Requirement: the stellarator contract C1–C5 (below) — rotational transform from the external field with no net plasma current, omnigeneity for thermal particles, finite-β stability, existence, thermal performance. Non-axisymmetry is a consequence, not a goal.
PLAN OF RECORD (30 OCTOBER 2026)

3. The stellarator contract C1–C5

Tokamaks rely on a large toroidal plasma current, which brings kinks, tearing, disruptions and the need for current drive. PlasmaLean therefore does not aim at “non-axisymmetric” solutions as such, but at solutions with the properties a stellarator needs. A candidate satisfies the contract when, for one decoded field and equilibrium with common witnesses, all five clauses hold. Non-axisymmetry is a means and a consequence, not a goal: an axisymmetric current-free field has $\iota = 0$, so C1 already excludes tokamaks. See the implementation plan and model contracts.

ClauseRequirementHonest status (Lean)
C1. Current-free rotational transformNet toroidal plasma current zero or bootstrap-small; $\iota \ge \iota_{\min} > 0$ on the confining surfaces, provided by the external field (3-D shaping or helical coils), not by plasma current.Vacuum only. The exact rational stellarator field is a vacuum field (RationalStellarator.field_vacuum), and a KAM-certified exact torus ($\iota \approx 0.137$) confines its field lines for all time (rationalStellarator_confined_forever_exists). Not stated: $\iota \ge \iota_{\min}$ on a nested family, any finite-β current-free equilibrium.
C2. Omnigeneity / small neoclassical transportFor thermal ions and electrons: bounce-averaged radial drift vanishes or is bounded, or $\epsilon_{\text{eff}}$ is bounded. Quasisymmetry and quasi-isodynamic fields are special cases.Essentially nothing for thermal particles. Alpha results (passing alphas, one species) only. WeakQS and qsDefect are defined; the Landreman families are proved not weakly quasisymmetric (family1_not_weakQS, family2_not_weakQS). No bounce-averaged drift, omnigeneity or $\epsilon_{\text{eff}}$ in Lean.
C3. MHD stability at finite βMercier, ideal ballooning and, where available, global ideal modes at a stated β > 0.Only on test beds that fail C1. Landreman family 2 has a certified Mercier-stable band (family2_mercier_stable_derived, Mercier index supplied), but it carries positive net toroidal current; the Solov'ev results are tokamak results. Nothing at finite β for a current-free candidate.
C4. ExistenceNested flux surfaces (certified invariant tori or a validated equilibrium) and $\mathbf{J}\times\mathbf{B} = \nabla p$ (vacuum: $\mathbf{J} = 0$).Vacuum, or symmetric / current-carrying only. Holds for the vacuum rational field inside one certified torus; at finite β only for the Landreman families (which fail C1) and the symmetric models.
C5. Thermal performanceOn the same candidate: core temperature above a burn threshold (e.g. 10 keV) over the operating interval and below wall limits, from power balance with alpha heating, bremsstrahlung, neoclassical losses from C2 and a stated supplied anomalous-transport scaling.Only on a tokamak model. On the Solov'ev field, every supplied solution of the radial transport model starting in a certified band keeps the core ≥ 10 keV for all time (solovev_one_plasma_actual; transport solution assumed, one field with a pressure-budget band). On stellarator parameters only 0-D windows and proved obstructions.

Plainly: Solov'ev is a tokamak model (a test bed and a model for burn temperature, not a stellarator candidate). Landreman family 2 carries positive net toroidal current (torCurrent_eq writes $\mu_0 I_{\text{tor}}/2\pi$ as an integral of a positive integrand, by F1_pos and Eint_pos; the corollary $I_{\text{tor}} > 0$ is not yet a named declaration), so it is tokamak-like under C1 however non-axisymmetric it is. The Grad counterexample family1_grad_counterexample is mathematical infrastructure, not design progress. C2 and C5 on a stellarator candidate are essentially open.

The Core Challenge

Why Formal Verification (Lean 4) & Mathematical Theory are Essential

Because a stellarator lacks 2D rotational symmetry, particle orbits do not automatically conserve canonical toroidal momentum ($P_\phi$). Unoptimized 3D magnetic fields lead to large drift losses of thermal ions and electrons (neoclassical transport) and of fusion alpha particles ($\text{He}^{2+}$) before they heat the plasma.

1. Omnigeneity (contract clause C2)

The bounce-averaged radial drift of trapped thermal ions and electrons must vanish or be small (or the effective ripple $\epsilon_{\text{eff}}$ bounded). Quasisymmetry, $|B| = B(s, M\theta - N\phi)$, and quasi-isodynamic fields are special cases. Not yet defined in Lean (only weak quasisymmetry, WeakQS, is).

2. High-Dimensional Design Space

Stellarator plasma boundaries are defined by dozens of Fourier coefficients ($R_{m,n}, Z_{m,n}$). Finding stable shapes ($\delta W > 0$) requires exploring infinite-dimensional functional spaces.

3. The PlasmaLean Solution

PlasmaLean is a Lean 4 library with no project-specific axioms (the latest audit found only Lean/Mathlib's standard axioms). It already contains machine-checked equilibrium, local-stability, confinement and burn-temperature theorems for idealized models; the goal remains to let AI agents discover candidate geometries and prove precisely stated plasma-stability results for them.

Target goal: one constructible candidate with machine-checked C1–C5 on common witnesses.