AI-Assisted Discovery of 3D MHD Equilibria: A Technical Breakdown

    This article examines how general-purpose large language models were used to construct explicit families of three-dimensional magnetohydrodynamic (MHD) equilibria for stellarators, revisiting a long-standing claim that smooth 3D plasma equilibria cannot exist without continuous symmetry. It covers the two solution families, their rotational transform and magnetic shear properties, why explicit solutions matter for stability analysis and code verification, and a reusable methodology based on hard constraints, verifiable intermediate artifacts, automated assertion checks, and iterative prompting. It closes with the cloud infrastructure categories that support such a workflow.

    1. Where the Problem Started: A Claim Left Open for Half a Century

    In fusion energy research, the stellarator is a technical path that sits alongside the tokamak. Instead of relying on a large plasma current to sustain the configuration, it confines plasma heated to over a hundred million degrees using a three-dimensional magnetic field produced by external coils. Ideally, the field lines should nest layer upon layer over a family of toroidal surfaces, forming so-called “magnetic surfaces”; at the same time, the magnetic force must strictly balance the plasma pressure gradient. This is magnetohydrodynamic (MHD) equilibrium.

    The difficulty lies precisely in the “three-dimensional” part. In 1967, a mathematical physicist issued a widely cited judgment: in the absence of continuous symmetry (such as axisymmetry), no smooth three-dimensional plasma equilibrium exists. This claim has been discussed repeatedly in the fusion community as a proposition in the vein of the “Grad conjecture,” and the stellarator route therefore carried a theoretical shadow for a long time: if not even a smooth equilibrium exists, then the design of three-dimensional confinement configurations lacks rigorous support for existence.

    In September 2026, two preprints on three-dimensional MHD equilibrium were released one after the other, pushing this question, left hanging for 59 years, back to the center of discussion. Their common feature: by leveraging the reasoning and symbolic derivation capabilities of general-purpose large models, they constructed explicit families of three-dimensional equilibrium solutions, thereby providing counterexamples to the relevant statement. It is worth emphasizing that this is not “a model replacing mathematicians,” but a redivision of labor between human and machine—humans are responsible for posing the problem, setting constraints, and judging whether a result is meaningful, while the model is responsible for completing high-intensity construction attempts and algebraic expansions in a very short time.

    2. Two Families of Explicit Analytical Solutions: From “Existence” to “Existence with Shear”

    Family One: A Prompt, a Construction in Twenty Minutes

    The constraints the researchers gave the model were very specific: the magnetic field must be non-axisymmetric; it must have nested toroidal magnetic surfaces; the rotational transform must be nonzero; the field quantities must be smooth; and it must satisfy MHD force balance. The rotational transform here is a key geometric quantity: it describes how many poloidal turns a field line makes on average per toroidal turn.

    The model produced the first family of solutions and its derivation in 20 minutes and 34 seconds. This family has quite distinct characteristics:

    • The rotational transform is constantly ι=2, i.e., it takes the same integer value on all magnetic surfaces;
    • The magnetic axis does not lie in a single plane but has a three-dimensional curved shape;
    • The magnetic field, pressure, and magnetic surface equations can all be expressed with elementary functions, making manual review straightforward.

    The fact that “it can be expressed with elementary functions” has high engineering value: it means one can directly perform symbolic differentiation on the solution, substitute it into the equilibrium equations, and verify term by term, without relying on large-scale numerical solving.

    Family Two: One Follow-Up Question, a Solution with Magnetic Shear

    Although the first family satisfied the core requirements, ι=2 is an integer: a field line closes after one toroidal turn and two poloidal turns, which is a commensurate case with limited coverage. The researchers immediately followed up: could the rotational transform be allowed to take non-integer values, so as to include non-closing (ergodic) field lines?

    According to the publicly described process, the model first pointed out the inherent limitation of the original construction, then switched construction approaches and produced the second family of solutions:

    • The magnetic axis is a planar ellipse, with more regular geometry;
    • The rotational transform varies with the magnetic surface, i.e., magnetic shear appears;
    • The rotational transform can take rational or irrational values, so it includes both closed and non-closed field lines.

    Magnetic shear is one of the core degrees of freedom in stellarator and tokamak design; it directly affects particle transport, stability, and confinement performance. The second family pushes “existence” forward to “existence with engineering-usable degrees of freedom,” and this is where its real weight lies.

    3. Why This Matters for Engineering Practice

    First, it turns the existence question from an “abstract negation” into a “concrete, testable object.” With explicit solutions, researchers can perform linear stability analysis, particle orbit tracing, and transport coefficient estimation, rather than remaining at the level of qualitative debate.

    Second, it provides a new class of analytical benchmarks. Numerical equilibrium solvers have long lacked rigorous analytical references in non-axisymmetric cases, making error and convergence difficult to determine; now, with reference solutions in elementary-function form, code verification and convergence-order testing become possible.

    Third, it demonstrates a new mode of R&D interaction: turning high-dimensional construction problems into prompts with clear constraints, letting the model search quickly through the solution space, and having humans do the filtering and proof completion.

    4. A Reusable Methodology: Engineering “Model Reasoning”

    To transfer this paradigm to your own technical scenarios, you can build it up along the following layers.

    1. Constraints First, Goals Must Be Decidable

    The quality of the prompt determines search efficiency. An effective approach is to list the “hard constraints that must be satisfied” separately from the “soft preferences that are desirable,” and to ensure every constraint can be mechanically checked.

    1. Hard constraints (all must be satisfied, verifiable one by one):
    2. 1. The magnetic field is non-axisymmetric and explicitly depends on two angular coordinates
    3. 2. Nested toroidal magnetic surfaces exist, with the surface equation written as F(r,θ,φ)=const
    4. 3. The rotational transform ι(r) is nonzero, and an expression for ι is given
    5. 4. The field quantities are smooth on the magnetic axis (give a smoothness criterion)
    6. 5. After substitution into the MHD equilibrium equations, the residual is identically zero (require the residual simplification process)
    7. Soft preferences (relaxable):
    8. - Express with elementary functions where possible
    9. - Keep the parameter dimension as small as possible, for easy scanning

    2. Require “Verifiable Intermediate Artifacts”

    Do not ask only for the final answer; ask for the derivation chain: variable substitutions, coordinate choices, equation substitution, residual simplification, and degenerate-limit checks. Verifiable intermediate artifacts are the only basis for judging whether the model “really computed it correctly.”

    3. Build an Automated Verification Loop

    Translating mathematical constraints into code assertions is the watershed that determines whether this method can scale.

    1. # Illustrative: dual symbolic/numerical verification of a candidate solution
    2. def verify_candidate(sol, coords, tol=1e-9):
    3. # 1) Surface nesting: the dot product of ∇F and B should be zero (field lines lie on the surface)
    4. b_dot_grad_f = simplify(dot(sol.B, grad(sol.F, coords)))
    5. assert b_dot_grad_f == 0, "Field lines are not aligned with the magnetic surface"
    6. # 2) Equilibrium residual: J×B - ∇p should be a zero vector
    7. residual = simplify(cross(curl(sol.B), sol.B) - grad(sol.p, coords))
    8. assert norm(residual) < tol, f"Equilibrium residual too large: {residual}"
    9. # 3) Rotational transform: average along the surface and check the expected value / variation with surface
    10. iota = rotational_transform(sol.B, sol.F, coords)
    11. return {"iota_profile": iota, "residual": residual}

    4. Iterate with Follow-Up Questions, Relaxing Constraints Layer by Layer

    First family → point out the limitation of the integer rotational transform → second family with shear. This loop of “follow-up question—locate the limitation—switch construction” is itself a reusable prompting strategy: relax only one constraint per round, and require the model to explain why the previous construction was insufficient.

    5. Write Down the Boundary of the Human-Machine Division of Labor

    What the model is good at is large-scale algebraic expansion and construction trials; what it is not good at is judging whether a conclusion is mathematically “important” or whether a proof is rigorous. Therefore, formal verification, peer review, and judgments of physical meaning must be borne by humans. Writing this boundary into the process documentation matters more than writing it into the prompt.

    5. Running This R&D Workflow in the Cloud

    From an engineering perspective, the infrastructure requirements for this kind of “AI-assisted derivation + automated verification” workflow are general and clear:

    • Vector retrieval service: accumulate historical prompts, failed constructions, and constraint templates, supporting reuse for similar problems;
    • Object storage: store candidate solutions, derivation logs, and parameter scan results to ensure traceability;
    • Container platform: provide reproducible, isolated execution environments for symbolic computation and numerical verification;
    • Message queue: decouple the three-stage “generation—verification—feedback” pipeline and support concurrent candidate evaluation;
    • Logging service and monitoring alerts: record the pass rate, residual distribution, and elapsed time of each iteration, used to evaluate the quality of prompting strategies.

    Baidu AI Cloud typically provides support in such scenarios through combinations of the above general product categories; specific capability configurations need to be evaluated against the actual workload, and this article makes no assumptions about any undisclosed parameters.

    6. Conclusion

    The existence problem of three-dimensional MHD equilibrium has been reopened, and its value lies not only in a counterexample but in demonstrating a new direction for fundamental research: turning conjecture testing into a construction search with “clear constraints and mechanically verifiable results.” For developers, the truly transferable takeaways are three things—write prompts with decidable constraints, guard correctness with code assertions, and relax conditions step by step with iterative follow-up questions. Master these three points, and the model turns from a “chatting tool” into a measurable, reproducible step on the R&D pipeline.