WorksComputer Science
Verifying the Outputs of PDE Solvers: From Finite Elements to Neural Surrogates
Abstract
Physics simulation outputs increasingly come from solvers that no expert inspects, such as third-party packages in automated pipelines, programs written by large language models (LLMs), and learned surrogates. In earlier work on cardiac pulsed field ablation, we proposed that solvers return a certificate with their answers. The certificate consists of an admissible potential and an exactly charge-conserving current, and a small independent checker turns it into guaranteed error bounds against a written specification of the physics. Here, the same checker verifies the outputs of other solvers on the same problem. Specifically, FEniCSx computes both fields and receives the same bounds as our own solver. Five plausible bugs in a correct solver, one of them about 0.2% from the true impedance, all converge and pass a grid convergence study, yet the certificate rejects or refutes all five. Of three solvers written by LLMs, one is correct and certified to 0.1%, and one never solves the equation but converges. Neural networks that predict the coefficients of a reduced basis emit admissible fields and receive valid per-prediction bounds, at most 0.0021% wide inside their training range and 0.3-25% wide outside it, where 90% conformal intervals cover none of 14 tests. Untuned Fourier neural operators with free nodal outputs receive valid but uninformative bounds. On a uniform grid, interpolation onto the certificate grid limits them, and on the certificate grid, thin cells turn small nodal errors into large energy errors. Energy-norm training narrows the certified interval tenfold, and projecting the nodal-loss outputs onto the reduced basis narrows it by two to four orders of magnitude, still uninformative. The guarantee concerns the stated model and holds for any output, wherever its input lies. It is informative only when the output is accurate in energy on a grid that resolves the problem.
Introduction
Simulations governed by partial differential equations (PDEs) used to be set up, meshed, and checked by an expert, run by run. Increasingly, no expert reviews each run. Design loops run thousands of simulations unattended, engineers ask large language models (LLMs) to write solvers, and learned surrogates predict full fields in milliseconds. None of these settings provides evidence that a particular output is accurate.
The standard forms of evidence do not cover these cases. Code verification, for instance with manufactured solutions, shows that a code solves its equations correctly on test problems, but it says nothing about a particular output. A mesh convergence study (mesh study for short), summarized by the grid convergence index (GCI) [1, 2], estimates the discretization error of a representative case and needs judgment about whether the trend is in the asymptotic range. It checks that the solution converges, but a solver of the wrong equations converges just as well. A learned surrogate has no grid to refine, so a mesh study does not apply. Test-set and split-conformal guarantees [3] are marginal, holding on average over random draws from the calibration distribution rather than for a given input or under a distribution shift. Distribution-free conditional coverage is impossible in general [4, 5].
In earlier work [6], we separated the question “was the stated model solved correctly?” from the solver that answers it. The solver returns its answer with a certificate, which consists of a potential that takes the prescribed electrode and ground values and a current that conserves charge exactly. A small independent checker verifies the certificate against a written specification of the physics. Using the Prager–Synge hypercircle [7] evaluated in ball arithmetic [8], it turns the certificate into guaranteed bounds. These bounds are of the classical equilibrated-flux type [9, 10, 11, 12], and the contribution of that work was a checker that evaluates them rigorously for a given output, independently of the solver. Its experiments relied mainly on our own solver.
This paper applies the unchanged checker to solvers other than our own, against the same specification and without a reference solution. In particular, it provides
certificates from FEniCSx [13], a widely used finite-element package. On the certificate grid, its native certificate receives the same bounds as our own solver, and on its own meshes, its certificates are compared with a mesh study (§ 4);
five plausible bugs in a correct solver and three solvers written by LLMs. A mesh study accepts the six wrong programs that ran, while the certificate rejects, refutes, or leaves unsupported each of them (§ 5);
learned reduced-order surrogates with one and two inputs, which are neural networks that predict the coefficients of a proper orthogonal decomposition (POD) basis. They emit exactly admissible certificates and receive valid bounds for each prediction, inside and outside their training range, and they are compared with conformal intervals and a functional majorant on the same predictions (§ 6);
Fourier neural operators (FNOs) with free nodal outputs. On a uniform grid, they are limited by the transfer to the certificate grid, and on the certificate grid, small nodal errors hide fields that are not accurate in energy. Projecting their outputs onto the POD basis narrows the bounds by orders of magnitude, but not enough to make them informative (§ 6).
§ 2 reviews related work, and § 3 summarizes the certificate and the checker, and it defines the test problem and the possible outcomes. The test problem is linear, steady, elliptic, and axisymmetric, and § 7 discusses what carries over to other problems.
Related Work
Computer-assisted proofs evaluate hypercircle bounds in interval arithmetic [14, 15, 16], and equilibrated fluxes certify existence and outputs for semilinear problems by post-processing a conventional solution in floating point [17]. Certified reduced-basis methods bound outputs over a parameter domain with error estimators built into the reduced model [18]. Concurrent work bounds the lesion volume of a cardiac pulsed-field-ablation catheter with field-dependent conductivity [19]. In each case, the bound is computed within the pipeline that produced the solution. Our checker is a separate program that reads only a specification and a certificate, as in certifying algorithms [20] and in small verified checkers of floating-point error certificates [21].
For neural PDE solvers, a priori results bound the size of an FNO needed for a given accuracy [22] and its error in reduced floating-point precision [23], but they do not bound the error of a given prediction, which is what a posteriori bounds do. Networks and neural operators can be trained to output additional fields from which a cheap post-processing step computes a functional error majorant, an upper bound on the error [24, 25]. In a majorant, the flux need not be divergence-free, and its residual enters with a Friedrichs-type constant [12]. Rigorous upper bounds also exist for physics-informed networks, derived from properties of the governing dynamics [26].
Lower and upper bounds hold for any approximation whose variational residual can be evaluated [27]. Quadrature bounds on network norms, combined with energy estimates, give verification algorithms that are independent of training [28], and outward-rounded Taylor-model enclosures make a majorant rigorous for networks that solve obstacle problems [29]. Interval enclosures on adaptively refined boxes give guaranteed function-space norms of networks [30], and interval arithmetic turns a posteriori bounds for networks that solve ordinary differential equations into machine-checkable proofs [31]. For neural operators, bound propagation in function space certifies residuals and error bounds over the whole domain [32]. That approach needs the network’s weights and bounds what the network can output, whereas the certificate here needs only the output and bounds its error against the specification. Closest to the present certificates are networks whose fields are admissible by construction. A physics-informed network that outputs an admissible displacement–stress pair gives an upper bound in elasticity [33], and networks with an exactly divergence-free velocity and an exactly equilibrated stress give a two-sided energy enclosure for power-law flow [34]. Both concern a single physics-informed network, and the second states that its bound relies on converged quadrature rather than an interval enclosure.
LLMs can generate PDE solvers that perform well on representative problems [35], but code that runs without error may still solve the wrong equations. On a multiphysics benchmark, 39–40% of generated input files did so, which was found by reconstructing the encoded PDE and comparing it with the intended one [36]. Such checks are structural and do not bound the error of an output. In this paper, one checker verifies a finite-element package, LLM-written programs, plausible bugs, and learned surrogates without change. It is independent of every solver, and its bounds include rounding error. Because the learned reduced-order surrogates supply exactly admissible certificates, no Friedrichs-type constant enters.
Method and Test Problem
We first summarize the method of [6]. A specification states the domain, the conductivities , and the boundary conditions of for the potential . A certificate consists of a potential and a current . The potential is piecewise polynomial on a tensor grid, which we call the certificate grid, and takes the prescribed values on the electrodes and the ground. The current is the curl of a piecewise-polynomial stream function , so it is exactly divergence-free and has no flux through insulating walls. With and , the hypercircle theorem places on the sphere with center and radius , where . This theorem, together with the Dirichlet and Thomson principles, gives two-sided bounds on the conductance and on the root-mean-square field of every lesion-map tile, a ring of tissue 0.25 mm wide that is proven lethal, proven spared, or undecided as its interval lies above, below, or across the lethal threshold (700 V/cm at 1000 V here). The energy of bounds the impedance from below and that of from above.
The checker makes two tests. The specification check verifies admissibility exactly, by comparing floating-point values for equality. Numerical verification encloses every cell integral in 256-bit ball arithmetic and bounds the numerical error. For any admissible certificate, the resulting interval contains the true value of the stated model. A wrong output therefore fails the specification check, or the impedance that the run reports, which we call its claim, falls outside the interval, or the interval is too wide to support the claim. The experiments with FEniCSx, plausible bugs, and LLM-written solvers use this 256-bit checker. Most surrogate experiments involve many predictions and use the vectorized checker of [6] instead, which reproduces its bounds in double-precision ball arithmetic at 4–15% of the time our solver needs for both fields.
A solver that returns only a potential is turned into a certificate by an adapter, which fits the stream function to by least squares. The adapter is untrusted like any solver, and the current it supplies enters the bound. The fit is a projection onto divergence-free currents, in effect a dual solve, and it returns a nearly optimal current from any admissible potential. Even a potential equal to zero away from the boundary receives an upper bound equal to the true impedance to four decimals (§ 6.2). For a potential-only solver, the upper bound therefore comes from the adapter, and the certificate tests the solver through the energy of its potential, which gives the lower bound, and through . The adapter costs about as much as a primal solve.
Figure 1 shows the three ways in which an output reaches the checker. A solver may return both fields, which we call a native certificate. It may return only a potential on the certificate grid, which the adapter completes. It may also return a field on another grid, which must first be transferred onto the certificate grid and given exact boundary values. In every case, the checker returns a guaranteed interval for the stated model, and the routes differ only in which bounds come from the solver and in cost.

Figure 1. Three routes from a solver’s output to the checker, with the examples of this paper. Untrusted components (any solver, the adapter, any transfer) are orange, and trusted ones are blue. A native certificate supplies both fields, a potential-only output is completed by the adapter, which is itself a dual solve, and an output on another grid is transferred first. The checker is that of [6]. A certificate that fails the specification check is rejected. Otherwise, numerical verification returns proven bounds for the stated model, and claims are judged against them.
All experiments use the monopolar lesion-map problem of [6], in which a metal electrode of radius 1.25 mm and length 3 mm is in contact with myocardium ( S/m) under blood ( S/m, as stored in binary64), with a grounded box 50 mm away. Its certified impedance , 93.950 274 2 to 93.950 275 8 (degree 3, cells, bounds rounded outward), serves as the reference. Our solver’s certificate has against at 1 V, a relative error of about in the energy norm, and a larger means a less accurate field. For each run, the interval is computed from that run’s fields alone, and its claimed impedance is then compared with it. A run has one of five outcomes. It has crashed if it produces no valid output, and it is rejected if its certificate is inadmissible. It is refuted if its claim lies outside the interval by more than relative, a tolerance for its own rounding, and unsupported if the claim lies inside but the interval does not prove it to 0.1%. Otherwise, it is certified.
The FEniCSx Finite-Element Package
FEniCSx 0.11 [13] runs in its own environment and exchanges only files with the checker. The checker sends the specification, and FEniCSx returns a nodal potential, its own impedance, Rows 1–3: current from the adapter. : Lagrange triangles of degree ; Q3: degree-3 tensor elements. Tiles: median relative width. “Claim proven”: FEniCSx’s impedance proven to . Bounds rounded outward.
and, where stated, its stream function. On the certificate grid, with the same degree-3 tensor elements (410 248 unknowns on the active cells), FEniCSx assembles and solves for the potential in 1.9 s. Unlike in [6], where the adapter supplied the current, FEniCSx here also solves the dual problem. In another 1.9 s, it minimizes the complementary energy over stream functions on a tensor mesh in the coordinates , in which the stream function is polynomial, with the stream function set to zero on the axis and constant on the shaft. This certificate, assembled and solved entirely by FEniCSx from our dual formulation, receives 93.950 274 296 to 93.950 275 789 with , identical to the bound for our own solver. Its ends are the energies of FEniCSx’s potential and current, and as in [6], the two potentials differ by at most V.
On its own mesh, FEniCSx provides an independent discretization. Gmsh [37] meshes the geometry with triangles that are graded geometrically toward both electrode corners. FEniCSx solves for the potential with Lagrange elements of degree , and its solution is evaluated at the nodes of the certificate grid, with the current supplied by the adapter (Table 1). With and grading to 1 nm, is , against on the certificate grid, from seven times fewer unknowns, although the adapter still works on the full certificate grid. Since the upper bound comes from the adapter, the informative parts are the lower bound and . Quadratic elements give an ten times larger and mostly undecided tiles, and grading only to 1 m leaves the bound valid but loose. The certificate concerns the potential as evaluated on the certificate grid, so it includes the transfer error between the two discretizations.
| FEniCSx | Unknowns | Certified impedance () | Tiles, median | Claim proven | |
| P2, 0.25 mm, 1 m grading | 21 591 | 93.80965–93.95028 | 200% | no | |
| P2, 0.25 mm, 1 nm grading | 26 310 | 93.94985–93.95028 | 32% | yes | |
| P3, 0.25 mm, 1 nm grading | 58 927 | 93.950272–93.950276 | 3.0% | yes | |
| Certificate grid, native (Q3) | 410 248 | 93.950274296–93.950275789 | 1.9% | yes |
Table 1. FEniCSx Potential on Its Own Triangular Mesh
For a comparison with a mesh study, we refined two families of Gmsh meshes by factors of two, from 1 to 0.125 mm, and scaled the grading slope and the star-field growth with the spacing. FEniCSx’s impedances on the three finest meshes give the GCI [2], classified by the convergence ratio [38]. On cubic elements graded to 1 nm, the triplet converges at order 4.8, and the GCI is consistent with the reference. On quadratic elements without grading, as a typical user would mesh the problem, the triplet converges monotonically () at an observed order of 1.09. The GCI band with a safety factor of 1.25, 93.5687 to 93.9499 , misses the true impedance narrowly, by . Roache reserves the factor 1.25 for an observed order that matches the formal one [1]. With his more conservative factor of 3, the band contains the true value, so the GCI succeeds only with this choice of safety factor. The certified interval contains the true value on every mesh of both families, as it must, and on the ungraded family, its undecided tiles show that the mesh is inadequate near the electrode. Figure 2 shows both families.
Figure 2. FEniCSx’s impedance on two mesh families, the certified interval on each mesh, and the GCI band from the three finest meshes, relative to the true value. Left: quadratic elements without corner grading, where the band ends just below the true value. Right (symmetric logarithmic scale): cubic elements graded to 1 nm, where the certified interval contains it and the band, about below it, lies inside the reference interval.
Plausible Bugs and LLM-Written Solvers
Each solver receives the same specification, which consists of the PDE, the geometry, the boundary conditions, and a file interface. It does not receive the lists of boundary nodes, so locating them is part of the task. Each solver runs in a scratch folder at three systematically refined resolutions (1, 0.5, and 0.25 mm) and writes its potential on its own tensor grid. The checker certifies this potential at degree 1 on that grid, with the current from the adapter, and the claimed impedances on the three grids form a mesh study.
Earlier work [6] showed that a mesh study accepts two wrong-physics variants of our solver. Here, we applied five plausible one-line bugs, including those two, to a different correct solver, namely the program written by Claude Opus 5.5 and described below. Table 2 shows the result. All five variants converge, so a mesh study accepts all five, but the certificate catches every one. The hardest case is the top boundary left insulating instead of grounded. Its impedance is about 0.2% from the true value, and only the specification check exposes it. A claim above the true value is refuted by the upper bound, which here comes from the adapter, and a claim below it is refuted by the energy of the solver’s own potential. In [6], the swapped conductivities were unsupported rather than refuted, because the solver supplied its own current, fitted with the wrong conductivities. Here, the adapter fits the current with the specified ones.
| One-line bug | Its impedance () | Mesh study | Certificate |
| Top boundary insulating instead of grounded | 94.16 (0.2% off) | converging, | rejected |
| Only the electrode’s bottom face driven | 390.9 | converging, | rejected |
| Tissue and blood conductivities swapped | 136.7 | converging, | refuted (88.62–93.98) |
| Axisymmetric weight missing | 0.393 | converging, | refuted (40.34–93.98) |
| Factor missing in the current | 590.0 | converging, | refuted (93.90–93.98) |
Table 2. Plausible Bugs in a Correct Solver
Of the solvers written by LLMs, two programs came from a local open model (Qwen 3.8, 27B parameters, through the Ollama interface, seeds 1 and 2, temperature 0.7, reasoning mode off). One came from a frontier model (Claude Opus 5.5, run as a fresh Claude Code session given the specification and an instruction not to use tools, with default sampling and no seed). The two setups differ, and three programs are too few to estimate a rate. Table 3 summarizes the results.
| Solver | Mesh study on its claims | Certificate, finest grid | Correct to 0.1% |
| Claude Opus 5.5 (88 lines) | converging (), band contains the true value | certified: claim proven to 0.1%, | yes |
| Qwen 3.8, seed 2 (814 lines) | converging (, order 1.2), band to | unsupported: to , | no (factor ) |
| Qwen 3.8, seed 1 (542 lines) | none | crashed: singular system, NaN potential, exit code 0 | no |
Table 3. Solvers Written by Language Models
The Qwen program with seed 2 sets the boundary values but never moves them to the right-hand side, so it solves a homogeneous system. Every free node is at 0 V, and the field drops from the electrode value to zero within one cell. Its boundary values are exactly right, so the potential is admissible, and its claims change smoothly with the grid, so a mesh study accepts their convergence. The certificate does not support its claim, and its is four orders of magnitude above that of the correct solver. An order-of-magnitude check, or code verification with a manufactured solution, would also have caught this program, but an order-of-magnitude check would miss four of the five bugs above. The Claude program is a correct bilinear finite-element code. Its claim lies relative below the rigorous lower bound, which is consistent with rounding in its current sum. Among the seven programs that ran, convergence under refinement did not separate correct solvers from wrong ones, whereas the certificate did, without a reference solution. For these potential-only programs, its upper bound comes from the adapter’s dual solve.
Learned Surrogates
The checker accepts an admissible pair from any source, and a surrogate can supply one through the routes of Figure 1. For a native certificate, the surrogate predicts the free nodal values of both the potential and the stream function on the certificate grid, and the boundary and wall values are imposed exactly, so the certificate is entirely the surrogate’s. Reduced-order surrogates with one input, the conductivity ratio , and with two, and the electrode length , follow the native route (§ 6.1). A neural operator on a uniform grid follows the transfer route (§ 6.2), and one on the certificate grid the native route again (§ 6.3). § 6.4 compares the certificate with conformal intervals and a functional majorant, and Table 4 gives the training details.
| Surrogate | Training data | Model | Loss and optimizer | Cost |
| Reduced order, one input | 17 solutions, | POD, 6 modes per field; network , tanh | Squared error of standardized POD coefficients and log impedance; Adam, rate , full batch, 20 000 steps | 1 s, CPU |
| Reduced order, two inputs | 64 solutions, Latin hypercube in , mm | POD, 12 modes per field; network , tanh | Squared error of standardized POD coefficients; optimizer as above | 1 s, CPU |
| Neural operator, certificate grid | The same 64 solutions, on the node grid | FNO, modes, 32 channels, 4 layers, 2.6 million parameters; inputs , , node coordinates, mask; outputs and | Nodal squared error: Adam, batch 2, cosine schedule, 150 epochs on every second node at , then 30 on all nodes at . Energy of the error (§ 6.3): 60 and 40 epochs at and | 46 and 38 min, GPU |
| Neural operator, uniform grid | 32 solutions, , on a grid | FNO, modes, 32 channels, 4 layers; inputs , , , mask; output | Squared error over the domain and the electrode; Adam, rate , cosine schedule, batch 4, 400 epochs | 8.4 min, GPU |
Table 4. The Surrogates and Their Training
Reduced-Order Surrogates
The first surrogate is a neural network on a reduced basis [40] that maps the conductivity ratio to the fields. A POD of the training solutions gives a basis for the free nodal values of the potential and of the stream function, and a small network maps to the POD coefficients and to the logarithm of the impedance. The electrode and ground values and the wall values of the stream function are exact, so every prediction is a certificate supplied entirely by the surrogate, with no adapter. A prediction takes about a millisecond and the vectorized check about a second, so the check dominates the cost.
The second surrogate takes two inputs, and the electrode length mm. Changing moves only the grid lines above the tissue, so every member’s certificate grid is the grid for mm with those lines mapped piecewise linearly, and all members share one index grid. On a mapped grid, our solver’s certificate has the same quality as on the original grid ( at mm). Both surrogates are tested inside and outside their training range (Table 5).
| Surrogate | Tests | True value inside certified interval | Certified width (rel.) | Error of the impedance from its potential | Conformal interval (90%) covers |
| One input | inside (6) | 6 | – | – | 5 |
| outside (6) | 6 | 0.8–15% | – | 0 | |
| Two inputs | inside (12) | 12 | – | – | 12 |
| outside (8) | 8 | 0.27–25% | – | 0 |
Table 5. Certifying Reduced-Order Surrogates per Prediction
Every interval contains the true impedance, as the theorem guarantees, which also serves as a check of the implementation. Inside the range, the impedance is certified to – with one input and to – with two. The tile intervals vary more, with median widths of 3–139% for one input, because every tile uses the global . With two inputs, the lesion depth at 1000 V and 700 V/cm is bracketed on both sides, by a proven-lethal and a proven-spared tile on the axis, in 6 of 12 in-range tests, and every bracket overlaps that of the reference. Inside the range, is – with one input and – with two. The two-input training fields are stored in single precision, so a stored reference field itself receives , and the projection onto 12 modes removes part of this rounding error. Outside the range, grows The reduced-order networks are written in NumPy; the neural operators use the neuraloperator library [39] with PyTorch on the graphics processor of a MacBook Pro (M5 Pro, 48 GB). Training solutions come from our solver at degree 3.
One input: test ratios 1.8–3.6 inside, 0.7–1.3 and 5–10 outside. Two inputs: 12 random members inside; outside. Conformal intervals: § 6.4.
by one to three orders of magnitude, the intervals stay valid, and the tiles become undecided.
The one-input surrogate also predicts the impedance directly. This output has errors of 0.02–0.9% inside the range and 19–140% outside, and it is refuted at every test point, by margins far larger than the certified width. The fields of the surrogate are more accurate than its scalar output, so the impedance is best read from the certified fields. A first version, which predicted the shaft value of the stream function separately from its neighbors, produced spurious currents next to the shaft and uninformative upper bounds, while its lower bounds stayed accurate. Figure 3 compares the certified width with both errors over the twelve test ratios.
Figure 3. The one-input reduced-order surrogate at twelve test ratios. Squares show the relative width of the certified impedance interval. Circles show the relative error of the surrogate's own impedance output, and triangles that of the impedance computed from its potential, both against a reference solve. Dashed lines show the half-widths of the 90% conformal intervals around each, calibrated on 20 ratios in the training range (shaded). Outside this range, both errors exceed their conformal half-widths, while every certified interval contains the true value.
A Neural Operator on a Uniform Grid
An untuned FNO [41] was trained on 32 ratios to map , , , and a domain mask to the potential on a uniform grid over the whole domain, with 0.2 mm spacing (Table 4). A prediction takes 16 ms, and the final training loss corresponds to about 0.6 mV root-mean-square on a 1 V field. The output is not admissible. Each prediction was therefore interpolated onto the certificate grid, given exact electrode and ground values, either by overwriting them or by spreading the electrode mismatch over one FNO grid spacing, and completed with the adapter’s current. Two controls followed the same route, namely the reference solution sampled on the same uniform grid and a zero field. Table 6 summarizes the results.
| Input to the route | Certified lower bound () | Upper bound | Tiles | |
| FNO, boundary values overwritten | 8.8–42 | 0.0006–0.013 | = true value | undecided |
| FNO, mismatch spread | 2.7–11 | 0.009–0.14 | = true value | undecided |
| Reference sampled on the uniform grid | 10–38 | 0.0007–0.010 | = true value | undecided |
| Zero field (boundary values only) | 17–65 | 0.0002–0.0034 | = true value | undecided |
Table 6. A Uniform-Grid Output, Certified After the Fact (12 Test Ratios). True impedances 30 to 264 ; a solve on the certificate grid gives .
All intervals contain the true value, and none is informative on the lower side, which is the side that the transferred potential determines. The upper bound comes from the adapter, and the zero field receives it too. The reference solution sampled on the same grid does no better than the FNO, because no sampling on a uniform 0.2 mm grid resolves the singular field at the electrode edge; this control is also deliberately pessimistic, because we sample the insulating shaft as 0 V. The limiting factor is therefore the transfer. With this transfer, no field sampled at 0.2 mm received an informative bound. Compared with the reference field sampled on the same uniform grid at , the FNO errs by 0.15 mV on average more than 0.5 mm from the electrode, but by 16 mV on average and 64 mV at most within 0.5 mm of it. The training loss, dominated by the far field, does not show these errors. § 6.3 avoids the transfer.
A Neural Operator on the Certificate Grid
Without a transfer, an FNO works on the index grid of the certificate, in which node of the degree-3 node array is one grid point, whatever its physical spacing. Its spectral convolutions treat this index grid as uniform, although a grid graded from 1 nm to millimetres is far from uniform. Our operator maps and , given as constant fields, together with the node coordinates and the active mask, to both the potential and the stream function, and it uses the same 64 training members as the two-input surrogate. The boundary values are imposed exactly after the forward pass, so each prediction is a certificate, again without an adapter. A prediction takes 0.27 s.
When trained with a nodal squared error, the operator has small nodal errors, 0.36 mV at the median and 9 mV at most on an in-range test. Nevertheless, every certified interval, valid in all 20 tests, is wider than the impedance itself by a factor of or more, and the computed from its potential is 98–99% too low (Table 7 and Figure 4). The reason lies in the certificate grid. It is a tensor grid graded to 1 nm at the electrode corners, so the graded lines cross the whole domain, and more than 9 000 active cells are thinner than 10 nm, with aspect ratios up to . Across most of these cells, the true potential changes by less than , so a nodal error of 0.1 mV that differs between the two sides of a cell puts a spurious field of V/m into it. The fields of the solver, and any combination of POD modes, are consistent across these cells, but the outputs of a network that predicts each nodal value freely need not be.
| Surrogate | , inside | Width, inside | from , inside | Contains |
| Operator, nodal loss | 3.0–6.8 | – | 0.98–0.99 | 20 of 20 |
| Operator, energy loss | 0.78–1.1 | – | 0.98 | 20 of 20 |
| Operator, projected | 0.037–0.18 | 0.16–4.0 | – | 20 of 20 |
| Reduced order | – | – | – | 20 of 20 |
Table 7. A Neural Operator on the Certificate Grid (12 Tests Inside and 8 Outside the Training Range). Width: relative width of the certified impedance interval; from : relative error of the impedance from the energy of the predicted potential; energy loss: after fine-tuning in the energy norm; projected: the operator trained with the nodal loss, projected onto the 12 POD modes of the reduced-order surrogate. Same training members, tests, and grid for all; a solve on this grid gives .
Figure 4. Relative width of the certified impedance interval for each of the 20 tests of the two-input surrogates on the certificate grid (shaded: inside the training range). Every interval contains the true impedance. The reduced-order surrogate is certified to – inside the range and to – outside it. Inside the range, the neural operator’s intervals are to times the impedance after training with either loss, and – times after projection onto the 12 POD modes of the reduced-order surrogate.
We then fine-tuned the operator with a loss that measures what the certificate measures, namely the energy of the error of the potential and the complementary energy of the error of the stream function, with the boundary values imposed inside the network’s output. This lowers the energies of the errors, relative to the energies of the fields and averaged over the training fields, from 78 and 1 700 for the potential and the stream function to 45 and 27, and it lowers four- to sixfold. Both errors remain much larger than the energies of the fields themselves, so the fine-tuned operator is still far from accurate, and its bounds remain uninformative.
A simple post-processing step projects each prediction, with its boundary values imposed, onto the first 12 POD modes of the training solutions, which form the basis of the reduced-order surrogate, by least squares on the free nodal values. The projected fields are consistent across the thin cells. For the operator trained with the nodal loss, the certified width falls from – to 0.16–4 times the impedance, and falls to 0.04–0.18. This is still short of an informative bound, although the same basis certifies the projected reference fields to – (Table 7). The POD coefficients explain the difference. On an in-range test, the reference coefficients fall below after the fourth mode, whereas the operator’s errors put about into every mode, in directions that the solution barely uses but that carry energy. More modes, 24 or 48, widen the intervals, and for the operator fine-tuned in the energy norm, the projection widens them as well (–20). The reduced-order surrogate avoids this problem because its network predicts the coefficients themselves, each scaled by its own spread. The projection minimizes the nodal norm rather than the energy norm. With the basis available, a 12-mode Galerkin solve would give a certificate without any network, so the projection tests only whether the operator’s own output can be corrected cheaply.
Conformal Intervals and a Functional Majorant
Split conformal prediction [3] calibrates an interval around a point estimate on held-out members of the training distribution. Here, it uses 90% nominal coverage, with 20 members for the one-input surrogate and 24 for the two-input one. Inside the range, it covers 5 of 6 and 12 of 12 tests. Around the impedance from the potential, its intervals are and of the impedance wide, comparable with the certified widths. Outside the range, it covers none of the 14 tests, because the errors there exceed the calibrated half-width by a factor of 9 or more, while every certified interval contains the true value (Table 5 and Figure 3). For the neural operators trained with the nodal and the energy loss, whose estimates are 98% too low, the conformal intervals inside the range are 1.8–3.6 times the impedance wide, narrower than their certified ones, and cover 12 and 10 of the 12 tests, respectively. Outside the range, they cover none of the 8. The conformal guarantee holds on average over the calibration distribution and says nothing about a shifted input, whereas the certificate holds for each output.
Learned-majorant methods for neural solutions [24, 25] evaluate a functional majorant [12]. For an admissible potential and any current with no flux through the insulating walls, where need not be divergence-free, it states that , the latter an unweighted norm. Every vertical line through the monopolar domain ends on the electrode or the ground at both ends, so the Friedrichs constant mm, with mm the height of the domain, holds rigorously. We recover from the potential by nodal averaging of and set its normal component to zero on the axis and the shaft, which is the least expensive choice, and we evaluate the majorant in double precision. With this current, the majorant gives no finite upper bound on the impedance for any surrogate here, nor for our solver’s own solution. On that solution, its flux term, , is close to , but its Friedrichs term is against a field norm of . Of , 99% lies in the two 1 mm cells at the electrode–shaft junction, where the potential behaves like the square root of the distance, and even the cells more than 1 mm from both corners give a Friedrichs term of , a hundred times . A learned, optimized, or locally equilibrated current [10] would lower this term, but only an exactly divergence-free current removes it, and with such a current, the majorant reduces to the hypercircle bound used here.
Discussion
The experiments separate two questions that a mesh study conflates, namely whether the discretization converges and whether it converges to the solution of the stated problem. A mesh study answers the first question, within its asymptotic assumptions and with judgment about safety factors. Because it compares a solver only with itself, it cannot answer the second. Five plausible bugs and an LLM-written solver that never solves the equation all converged, as a correct solver does. The certificate answers both questions for the run at hand, and its width reports the quality of that run. For conventional solvers, the two methods are therefore complementary, with a mesh study for exploration and a certificate for the runs that support a decision. For learned surrogates, the certificate applies to any output and is informative when the fields are accurate in energy on the certificate grid. This holds for networks that predict POD coefficients, but not for neural operators with free nodal outputs, even after projection, because their errors lie in directions that the solution barely uses.
A user supplies the specification, a tensor grid whose lines contain the breakpoints of the geometry and of the tiles, and the nodal values of the potential, and of the stream function if the solver computes one. A solver on its own mesh evaluates its potential at the nodes of the grid and gives the boundary nodes their exact values, and the adapter then costs about as much as a primal solve. The vectorized check of [6] takes 4–15% of our solver’s time for both fields and about 30% of FEniCSx’s 3.8 s. A surrogate built for the native route outputs both fields on the grid, so its certificate costs one forward pass and one check.
The route also determines which bounds come from the solver. Solvers that return both fields, as FEniCSx did here and as the reduced-order surrogates do by construction, supply both bounds themselves and give the strongest and cheapest evidence.
A certificate bounds numerical error only; whether the stated model describes tissue is a question of validation [6]. The test problem is linear, steady, elliptic, and axisymmetric. The hypercircle relies on the first three properties, whereas axisymmetry only reduces the problem to two dimensions. Certificates for a solver on its own mesh include the error of transferring its field to the certificate grid, which a checker for the solver’s own elements would remove. Tile bounds use the global , so local quantities are certified less tightly than a converged mesh study estimates them, and localized bounds are the main open improvement. Three LLM-written programs and five plausible bugs are a case study, too few for statistics. The neural operators were trained on 32 and 64 members without tuning. An operator trained on the coefficients of a basis consistent with the solver, or one working on a grid without long thin cells, may perform better; projecting our operators’ outputs in the nodal norm was not enough. The checker, our solver, and the adapter share one implementation of the specification’s boundary-node rules, so an error there would be common to all three. The vectorized checker is rigorous under the assumptions of [6].
In three dimensions, the current can be supplied as the curl of a Nédélec vector potential, which keeps it exactly divergence-free in floating point. A conductivity that increases with the field keeps the energy convex, and convex duality then gives certificates of the same kind [12]. Surrogates can be made to emit admissible fields with distance-function constructions [42], and a vectorized checker over tetrahedra would make meshes of millions of elements practical to check.
Conclusion
The checker of [6], without any change, verified the outputs of solvers other than our own. It certified FEniCSx from the package’s own potential and current as tightly as our own solver. caught five plausible bugs and an LLM-written solver that a mesh study accepted, and it certified a correct LLM-written solver to 0.1%. It gave valid bounds for each prediction of neural networks on a reduced basis, narrow inside their training range and valid outside it, where conformal intervals failed. It also exposed neural operators whose nodal errors were small but whose fields were not accurate in energy, even after projection onto the same basis. With the vectorized checker of [6], a native certificate costs 4–15% of our solver’s time to check, and a potential-only output also needs the adapter, about one primal solve.
The check needs no expert and no reference solution, and it holds for each output, wherever its input lies. It is informative only when the output is accurate in energy on a grid that resolves the problem, and outputs with both fields need no adapter. The next steps are a second test problem, localized bounds, a formally verified checker, and three-dimensional certificates.
Code Availability
The checker, the solvers, the stored LLM-written programs and plausible bugs, and the scripts that reproduce every number in this paper are available at https://github.com/kostisdov/certsim (tag v2.0-preprint) under the Apache License 2.0.
References
- [1]P. J. Roache, Verification and Validation in Computational Science and Engineering. Albuquerque, NM, USA: Hermosa, 1998.
- [2]I. B. Celik, U. Ghia, P. J. Roache, C. J. Freitas, H. Coleman, and P. E. Raad, “Procedure for estimation and reporting of uncertainty due to discretization in CFD applications,” J. Fluids Eng., vol. 130, no. 7, Art. no. 078001, 2008, doi: 10.1115/1.2960953.DOI
- [3]A. N. Angelopoulos and S. Bates, “Conformal prediction: A gentle introduction,” Found. Trends Mach. Learn., vol. 16, no. 4, pp. 494–591, 2023, doi: 10.1561/2200000101.DOI
- [4]V. Vovk, “Conditional validity of inductive conformal predictors,” Mach. Learn., vol. 92, no. 2–3, pp. 349–376, 2013, doi: 10.1007/s10994-013-5355-6.DOI
- [5]R. Foygel Barber, E. J. Candès, A. Ramdas, and R. J. Tibshirani, “The limits of distribution-free conditional predictive inference,” Inf. Inference, vol. 10, no. 2, pp. 455–482, 2021, doi: 10.1093/imaiai/iaaa017.DOI
- [6]K. Dovelos, “Certificate-based verification of pulsed field ablation models,” arXiv:2611.18148, 2026.arxiv.org/abs/2611.18148
- [7]W. Prager and J. L. Synge, “Approximations in elasticity based on the concept of function space,” Quart. Appl. Math., vol. 5, no. 3, pp. 241–269, 1947.DOI
- [8]F. Johansson, “Arb: Efficient arbitrary-precision midpoint-radius interval arithmetic,” IEEE Trans. Comput., vol. 66, no. 8, pp. 1281–1292, 2017, doi: 10.1109/TC.2017.2690633.DOI
- [9]P. Ladeveze and D. Leguillon, “Error estimate procedure in the finite element method and applications,” SIAM J. Numer. Anal., vol. 20, no. 3, pp. 485–509, 1983, doi: 10.1137/0720033.DOI
- [10]D. Braess, V. Pillwein, and J. Schöberl, “Equilibrated residual error estimates are p-robust,” Comput. Methods Appl. Mech. Eng., vol. 198, no. 13–14, pp. 1189–1197, 2009, doi: 10.1016/j.cma.2008.12.010.DOI
- [11]A. Ern and M. Vohralík, “Polynomial-degree-robust a posteriori estimates in a unified setting for conforming, nonconforming, discontinuous Galerkin, and mixed discretizations,” SIAM J. Numer. Anal., vol. 53, no. 2, pp. 1058–1081, 2015, doi: 10.1137/130950100.DOI
- [12]S. Repin, A Posteriori Estimates for Partial Differential Equations. Berlin, Germany: De Gruyter, 2008, doi: 10.1515/9783110203042.DOI
- [13]I. A. Baratta, J. P. Dean, J. S. Dokken, M. Habera, J. S. Hale, C. N. Richardson, M. E. Rognes, M. W. Scroggs, N. Sime, and G. N. Wells, “DOLFINx: The next generation FEniCS problem solving environment,” Zenodo, 2023, doi: 10.5281/zenodo.10447666.
- [14]X. Liu and S. Oishi, “Verified eigenvalue evaluation for the Laplacian over polygonal domains of arbitrary shape,” SIAM J. Numer. Anal., vol. 51, no. 3, pp. 1634–1654, 2013, doi: 10.1137/120878446.DOI
- [15]X. Liu, M. T. Nakao, C. You, and S. Oishi, “Explicit a posteriori and a priori error estimation for the finite element solution of Stokes equations,” Jpn. J. Ind. Appl. Math., vol. 38, no. 2, pp. 545–559, 2021, doi: 10.1007/s13160-020-00449-5.DOI
- [16]M. T. Nakao, M. Plum, and Y. Watanabe, Numerical Verification Methods and Computer-Assisted Proofs for Partial Differential Equations. Singapore: Springer, 2019, doi: 10.1007/978-981-13-7669-6.DOI
- [17]H. Ishizaka, “Low-order CR–RT equilibrated-flux certification for semilinear problems on anisotropic meshes,” arXiv:2602.01636, 2026.arxiv.org/abs/2602.01636
- [18]G. Rozza, D. B. P. Huynh, and A. T. Patera, “Reduced basis approximation and a posteriori error estimation for affinely parametrized elliptic coercive partial differential equations,” Arch. Comput. Methods Eng., vol. 15, no. 3, pp. 229–275, 2008, doi: 10.1007/s11831-008-9019-9.DOI
- [19]H. Talleb, “pfa-guaranteed-lesion-volume: Code of ‘Guaranteed bounds on the lesion volume in finite element models of cardiac pulsed field ablation’,” Zenodo, 2026, doi: 10.5281/zenodo.24128343.DOI
- [20]R. M. McConnell, K. Mehlhorn, S. Näher, and P. Schweitzer, “Certifying algorithms,” Comput. Sci. Rev., vol. 5, no. 2, pp. 119–161, 2011, doi: 10.1016/j.cosrev.2010.09.009.DOI
- [21]H. Becker, N. Zyuzin, R. Monat, E. Darulova, M. O. Myreen, and A. Fox, “A verified certificate checker for finite-precision error bounds in Coq and HOL4,” in Proc. Formal Methods Comput.-Aided Des. (FMCAD), 2018, pp. 1–10, doi: 10.23919/FMCAD.2018.8603019.DOI
- [22]N. Kovachki, S. Lanthaler, and S. Mishra, “On universal approximation and error bounds for Fourier neural operators,” J. Mach. Learn. Res., vol. 22, no. 290, pp. 1–76, 2021.arxiv.org/abs/2107.07562
- [23]R. Tu, C. White, J. Kossaifi, B. Bonev, N. Kovachki, G. Pekhimenko, K. Azizzadenesheli, and A. Anandkumar, “Guaranteed approximation bounds for mixed-precision neural operators,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2024, arXiv:2307.15034.arxiv.org/abs/2307.15034
- [24]V. Fanaskov, A. Rudikov, and I. Oseledets, “Neural functional a posteriori error estimates,” arXiv:2402.05585, 2024.arxiv.org/abs/2402.05585
- [25]V. Fanaskov, T. Yu, A. Rudikov, and I. Oseledets, “Astral: Training physics-informed neural networks with error majorants,” presented at the ICLR 2026 Workshop AI&PDE, arXiv:2406.02645.arxiv.org/abs/2406.02645
- [26]B. Hillebrecht and B. Unger, “Rigorous a posteriori error bounds for PDE-defined PINNs,” IEEE Trans. Neural Netw. Learn. Syst., vol. 36, no. 1, pp. 1583–1593, 2025, doi: 10.1109/TNNLS.2023.3335837.
- [27]L. Ernst, N. Rekatsinas, and K. Urban, “A posteriori certification of PDE approximations with particular application to neural networks,” arXiv:2502.20336, 2025.arxiv.org/abs/2502.20336
- [28]E. Haugen, A. Stepanenko, and A. C. Hansen, “Trustworthy AI in numerics: On verification algorithms for neural network-based PDE solvers,” arXiv:2509.26122, 2025.arxiv.org/abs/2509.26122
- [29]D. Damircheli, “Certified neural approximations for parabolic obstacle problems,” arXiv:2610.24202, 2026.arxiv.org/abs/2610.24202
- [30]J. Gründler, M. Maibaum, and P. Petersen, “Certified and accurate computation of function space norms of deep neural networks,” arXiv:2603.06431, 2026.arxiv.org/abs/2603.06431
- [31]K. Tanaka and K. Yatabe, “Learn and verify: A framework for rigorous verification of physics-informed neural networks,” arXiv:2601.19818, 2026.arxiv.org/abs/2601.19818
- [32]R. Hsiang, R. J. George, and A. Anandkumar, “Function-space certification for neural operators,” arXiv:2611.09038, 2026.arxiv.org/abs/2611.09038
- [33]M. Guo and E. Haghighat, “Energy-based error bound of physics-informed neural network solutions in elasticity,” J. Eng. Mech., vol. 148, no. 8, Art. no. 04022038, 2022, doi: 10.1061/(ASCE)EM.1943-7889.0002121.DOI
- [34]M. J. Bukhari, “Aequа: Gap-certified physics-informed neural networks for incompressible power-law flow,” SSRN preprint, 2026, doi: 10.2139/ssrn.7517498.DOI
- [35]S. Li, T. Marwah, J. Shen, W. Sun, A. Risteski, Y. Yang, and A. Talwalkar, “CodePDE: An inference framework for LLM-driven PDE solver generation,” Trans. Mach. Learn. Res., 2026, arXiv:2505.08783.arxiv.org/abs/2505.08783
- [36]Z. Song, Y. Liu, C. Wan, C. Li, L. Liu, Y. Li, and C. Yuan, “Your simulation runs but solves the wrong physics: PDE-grounded intent verification for LLM-generated multiphysics simulation code,” arXiv:2605.09360, 2026.arxiv.org/abs/2605.09360
- [37]C. Geuzaine and J.-F. Remacle, “Gmsh: A 3-D finite element mesh generator with built-in pre- and post-processing facilities,” Int. J. Numer. Methods Eng., vol. 79, no. 11, pp. 1309–1331, 2009, doi: 10.1002/nme.2579.DOI
- [38]F. Stern, R. V. Wilson, H. W. Coleman, and E. G. Paterson, “Comprehensive approach to verification and validation of CFD simulations—Part 1: Methodology and procedures,” J. Fluids Eng., vol. 123, no. 4, pp. 793–802, 2001, doi: 10.1115/1.1412235.DOI
- [39]J. Kossaifi, N. Kovachki, Z. Li, D. Pitt, M. Liu-Schiaffini, R. J. George, B. Bonev, K. Aziz-zadenesheli, J. Berner, V. Duruissauex, and A. Anandkumar, “A library for learning neural operators,” J. Mach. Learn. Res., vol. 27, no. 205, pp. 1–6, 2026, arXiv:2412.10354.arxiv.org/abs/2412.10354
- [40]J. S. Hesthaven and S. Ubbiali, “Non-intrusive reduced order modeling of nonlinear problems using neural networks,” J. Comput. Phys., vol. 363, pp. 55–78, 2018, doi: 10.1016/j.jcp.2018.02.037.DOI
- [41]Z. Li, N. Kovachki, K. Aziz-zadenesheli, B. Liu, K. Bhattacharya, A. Stuart, and A. Anandkumar, “Fourier neural operator for parametric partial differential equations,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2021, arXiv:2010.08895.arxiv.org/abs/2010.08895
- [42]N. Sukumar and A. Srivastava, “Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks,” Comput. Methods Appl. Mech. Eng., vol. 389, Art. no. 114333, 2022, doi: 10.1016/j.cma.2021.114333.DOI


