# Rigorously Certified Neural-Network Computation of Nonlinear Water Waves at Near-Machine Precision

Neural networks and interval arithmetic certify water wave solutions to near-machine precision

Michal Shavit, Yongji Wang, Tristan Buckmaster · arXiv · 2026-11-5

- **Problem** Sampled neural residuals don't bound the water wave equation between grid points.
- **Method** A frozen neural wave profile gets a rigorous interval residual bound, checked in Lean.
- **Results** A certified uniform residual bound covers one high-amplitude Wilton ripple candidate.

## Why a small residual isn't enough

A neural solver can drive the PDE residual very low at a finite set of points, yet that number says little about the equation between them. A small sampled residual doesn't provide a rigorous bound on the continuous residual. It also doesn't bound the error relative to an exact solution, which is the quantity a reader usually wants. The pointwise residual is useful during training, but it can't stand as a rigorous statement about the equation.

Water waves make this gap harder to close, because the capillary term divides by a denominator that must stay away from zero. Roundoff, truncation, aliasing and discretization errors all enter through the nonlinear and nonlocal operators in the water-wave equations. Floating-point evaluation on a grid therefore can't deliver a certificate by itself.

The hardest regime is high amplitude, where perturbative descriptions stop applying and solution branches develop intricate structure.

That step yields a certified uniform upper bound on the residual, instead of a small value seen only at finitely many evaluation points. The certified quantity is a rigorous bound on the residual over the whole period, which a pointwise check can't provide. In the paper's pipeline, the interval bound is then checked in Lean, which verifies the deductions from the numerical inputs.

## A PINN search followed by staged refinement

The key idea is to let a small network learn the wave profile, wave speed and, in some runs, surface tension, by penalizing the Babenko residual directly. No training data are used, so the governing equation itself supplies the training signal. Fixing different physical parameters selects the regime, so one formulation covers the Stokes, Crapper and Wilton families.

The residual is minimized as a weighted squared sum, together with auxiliary conditions on amplitude and symmetry.

The surface is written as a function of u, and feeding the network cos u enforces periodicity and evenness in the symmetric runs. Three scalar networks with tanh activations, each with three hidden layers of width 30, output the surface and two auxiliary fields for the surface-tension term. The auxiliary fields T1 and T2 let the surface-tension term be evaluated stably through first derivatives.

The wave speed stays inside a bounded window around a seed value through a tanh parametrization, with c0 as the seed and eta\_c as the search radius.

Training uses the K-FAC optimizer with a typical horizon of 20,000 iterations per continuation step. Collocation points are partly resampled toward crests and troughs, where the profiles get sharp. After a training pass, the point distribution is updated from the residual, so later passes focus where the approximation is least accurate.

A first-stage candidate is then refined by adding neural corrections to frozen fields. Each correction is motivated by a linearization that aims to cancel the remaining residual to first order. The loss divides each residual by a local derivative-based scale, so steep regions don't dominate the optimization. After the final pass the fields are evaluated on shifted grids, projected onto a Fourier series and polished by Newton iteration.

## Known families and new candidates

The same PINN formulation recovers three high-amplitude families by changing only the fixed physical parameters. Setting β = 0 gives the pure-gravity Stokes branch, where the limiting Stokes wave has a 2π/3 crest angle. Setting g = 0 gives the pure-capillary Crapper family, a curve in the (c, a) plane ending in a wave that encloses a bubble.

Fig. 2 shows the Stokes, Crapper and Wilton branches with representative profiles for each family.

The Wilton case is the harder test, because the two resonant harmonics cos(u) and cos(2u) are coupled by the full nonlinear equation. Their amplitudes can't be varied independently, so continuation must keep the nonlinear constraints while the profile and wave speed adjust. The authors seed continuation from a high-amplitude (1,2) Wilton ripple and let the surface-tension parameter vary together with the profile and speed.

Their Fourier composition and β values depart substantially from the corresponding Wilton branch. Fig. 3 shows a β continuation that sweeps values from 0.25 to 0.50 near the seed, with amplitude plotted against β.

Amplitude-decreasing and amplitude-increasing continuations from the same seed, at β = 0.498 2, are shown in Fig. 4. The continued family could not be followed toward small amplitude within the range accessible to the numerical continuation. So the branch stays intrinsically finite amplitude in that range, and the authors don't claim a conventional bifurcation from a linear mode.

Whether the family is disconnected from the small-amplitude spectrum is left for further analysis. The main purpose here is to show that constrained neural continuation can find uncharacterized high-amplitude states. Those states are then passed on to rigorous numerical certification, which is the focus of the next part of the work.

## Turning a frozen profile into a rigorous bound

Freezing the polished profile removes the network and its training history from the argument. The certified object is an even cosine series of degree 150, with its stored coefficients read as exact dyadic rationals. Julia with Arb balls encloses every operation in outward-rounded intervals, so the rounding never leaks out of the enclosure.

The certified statement covers only this explicit polynomial and these exact parameter values, which are fixed before validation.

The Hilbert transform runs on two paths, and the choice depends on how the input is stored. Path A handles finite trigonometric terms mode by mode, so it needs no sampling or aliasing correction. Path B takes sampled values on a uniform grid, applies certified convolution, and adds a Fourier-tail correction. Path B is required for the transform of the derivative of G, because the square root and reciprocal give G an infinite Fourier series.

The nonlinear capillary terms use Taylor records at each grid node, and a grid lower scan proves D(u) stays above zero over the whole period before D inverse is evaluated. An analytic aliasing correction is added at each grid node, and the Taylor remainder then controls the gaps between nodes.

## What Lean checks and what it trusts

Lean takes the certified denominator bound and the one-period residual bound as explicit inputs from Julia with Arblib. It then verifies the analytic deductions and the periodic extension to the full real line. It also checks the exact rational comparisons that yield the reported constants. The uniform residual theorem therefore holds conditionally on those two numerical assumptions.

The Lean file PaperCertificateAxioms.lean declares the global positive denominator lower bound and the residual bound on one period as its two assumptions.

Lean doesn't rerun the Arb computation, so the validated numerical bounds remain trusted inputs to the formal layer. The paper calls this an explicit numerical trust boundary. The Julia and Arb interval calculation supplies the numerical inequalities, while Lean checks the mathematical deductions from them. Large language models helped build both the interval code and the Lean layer.

The authors argue that the validity of the result doesn't depend on the language model once the bounds are enclosed and the deductions are checked.

The Lean library is organised into definitions and proofs, analysis, data definitions and audit modules. PaperCertificate.lean holds the exact rational profile coefficients, parameters and certificate endpoints. PaperTheorems.lean compares the publication residual and denominator bounds with the reported decimal constants. PaperAudit.lean checks the publication declarations and axiom dependencies at the end of the chain.

## Limitations of the certificate and the run

The certificate covers one explicit cosine series of degree 150, not an exact water wave nearby. The paper states that an existence result would need a rigorous inverse bound for the linearized Babenko operator and control of the nonlinear remainder. Those ingredients aren't part of the present certificate, so the residual bound alone doesn't prove existence.

The authors call the residual certificate a first ingredient toward a computer-assisted existence proof, not the proof itself.

Lean doesn't rerun the Arb computation, so the validated numerical bounds stay trusted inputs to the formal layer. The formal layer checks the deductions from those bounds, but the bounds themselves rest on the interval calculation.

The branch stayed at finite amplitude in that range, which suggests it may not bifurcate from a linear water-wave mode. The authors say that establishing whether the family is disconnected from the small-amplitude spectrum needs further analysis. A full study of its global bifurcation structure, stability and connections is beyond the scope of this work.

The production interval run took an estimated 2 hours 50 minutes after warmup on eight concurrent workers. The eight workers ran at the same time, so their wall times weren't added together.

## Paper info

- **Authors**: Michal Shavit, Yongji Wang, Tristan Buckmaster
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-5
- **Added**: 2026-11-6
- **Updated**: 2026-11-5
- **Version**: v1
- **arXiv**: 2611.07395
- **Category**: math.AP · cs.LG · physics.flu-dyn
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.07395v1) · [PDF ↗](https://arxiv.org/pdf/2611.07395v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

We present a computational framework that combines machine-learning-based discovery with rigorous computer-assisted numerical certification and formal verification for strongly nonlinear partial differential equations. We demonstrate the approach for periodic gravity-capillary traveling water waves. Physics-informed neural networks are used as a search mechanism, with the wave profile, wave speed and, in continuation experiments, surface tension learned directly from the governing equations without training data. Through a staged training and refinement procedure, the neural networks achieve near-machine-precision residuals of the governing equations, even in strongly nonlinear regimes. A single formulation recovers high-amplitude Stokes waves, Crapper waves and Wilton ripples. Continuation from a high-amplitude Wilton ripple in surface tension reveals new high-amplitude candidate solutions. We freeze one candidate as an explicit finite representation and rigorously certify a uniform bound on its governing-equation residual using interval arithmetic, accounting for floating-point roundoff, Fourier truncation, aliasing and grid-to-continuum errors. This independently validates the neural-network accuracy. We formalize the certification argument in Lean, which machine-checks the deductions from certified numerical bounds to the residual theorem. Both the interval certification and formalization were developed with substantial assistance from a large language model, while the validity of the result remains independent of the language model: the numerical bounds are rigorously enclosed by interval arithmetic and the subsequent mathematical deductions are checked by the Lean kernel. Together, these steps provide a pipeline from neural discovery to rigorous numerical certification and machine-checked verification with auditable mathematical guarantees.

## Quote from the paper

Michal Shavit, Yongji Wang, Tristan Buckmaster (2026). Rigorously Certified Neural-Network Computation of Nonlinear Water Waves at Near-Machine Precision. arXiv:2611.07395v1. https://arxiv.org/abs/2611.07395v1

**BibTeX**

```
@misc{shavit2026rigorously,
  title = {{Rigorously Certified Neural-Network Computation of Nonlinear Water Waves at Near-Machine Precision}},
  author = {Michal Shavit and Yongji Wang and Tristan Buckmaster},
  year = {2026},
  eprint = {2611.07395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.07395v1}
}
```

## Other paper commentary

- [Tight Asymptotic Bounds on the Maximum Number of Linear Regions of Piecewise-Linear Kolmogorov--Arnold networks](https://refivu.com/en/papers/17526235-331a-4cc3-8aba-33df9eb56bc6-tight-asymptotic-bounds-on-the-maximum-number-of.md)
- [Two-Stream Convolutional Networks for Action Recognition in Videos](https://refivu.com/en/papers/d621dee0-0b2a-45a8-b152-6260b98f0db4-two-stream-convolutional-networks-for-action-recognition-in.md)
- [Glow: Generative Flow with Invertible 1x1 Convolutions](https://refivu.com/en/papers/fb9c5b80-a221-4385-8910-2ae4413b604b-glow-generative-flow-with-invertible-1x1-convolutions.md)
- [Density estimation using Real NVP](https://refivu.com/en/papers/6e98cc2c-51ae-4105-a052-60a312be9b3d-density-estimation-using-real-nvp.md)
- [Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks](https://refivu.com/en/papers/f9c68dd2-7de8-40fa-9eb6-ea62d8856b71-model-agnostic-meta-learning-for-fast-adaptation-of.md)
- [PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning](https://refivu.com/en/papers/c0da3abd-5c1e-4383-ae59-22d04fe3eb7d-predrnn-a-recurrent-neural-network-for-spatiotemporal.md)
- [StreamLTT: Risk Certification for Policy Selection under Stream Dependence](https://refivu.com/en/papers/0de37a88-82da-4aaf-be15-ff25f342e2ee-streamltt-risk-certification-for-policy-selection-under.md)
- [Synthesizing symbolic models of human and machine reasoning at scale](https://refivu.com/en/papers/7b1b6913-eebf-4257-98a8-11e51ae19376-synthesizing-symbolic-models-of-human-and-machine-reasoning.md)
- [τ-bench-LILT: Evaluating Conversational Agents on Realistic Multilingual Tool-Use Tasks](https://refivu.com/en/papers/18631827-6e8d-44e8-9d01-74fdd2e225df-bench-lilt-evaluating-conversational-agents-on-realistic.md)
- [Recursive Sparse Attention: Million-Token Length Extrapolation at Logarithmic Cost](https://refivu.com/en/papers/52b7aea9-2772-4644-a4cb-a6d6ac47343e-recursive-sparse-attention-million-token-length.md)
- [Where Should a KV-Cache Repair Budget Go? Distractor Structure and Contextual Compatibility in Non-Prefix Reuse](https://refivu.com/en/papers/a342759d-2992-41ad-b1f1-fcaa308f4703-where-should-a-kv-cache-repair-budget-go.md)
- [GIST: Gibbs-Targeted Hierarchical Data Selection for Offline RLVR](https://refivu.com/en/papers/bfb566ca-99e1-429a-bcd7-aa39a57f0bab-gist-gibbs-targeted-hierarchical-data-selection-for-offline.md)

## Terms in this paper

- [Physics-informed neural networks](https://refivu.com/en/terms/b02fd38bd572-physics-informed-neural-networks)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e9a7e7e8-33ad-44f5-b914-b1e3a6f1493f-rigorously-certified-neural-network-computation-of-nonlinear)
