← All papers
First page of Precision Atlas for Scientific Kernels and Its Application to Adaptive Mesh Refinement

Precision Atlas for Scientific Kernels and Its Application to Adaptive Mesh Refinement

Vansh Sharma, Venkat Raman

cs.MS Nov 30, 2026 · v1 cs.AR math.AP physics.comp-ph physics.flu-dyn
Lean 4 proofs, built on the FloatLib floating-point library, verify selected arithmetic results such as successor feasibility, output bounds and Euler-update nonexpansivity.
In scientific calculations, precision of the stored quantities affects accuracy and, in adaptive methods, the spatial resolution selected by the numerical method. The objective here is to determine the precision required by individual operations and to apply these requirements to AMR. For this purpose, selected Lean-verified arithmetic results, analytical precision bounds and 6,480 evaluations of 60 scientific kernels are organized in a Precision Atlas. Controlled time integration problems are first used to distinguish the requirements for time advancement, state accumulation and output. The analysis is then extended to AMR, where a rounded sensor determines which cells are refined. The probabilities of tagging a cell and selecting a refinement block under stochastic rounding are derived. It is shown that rounding can tag a uniform field, producing a phantom gradient, when the floating-point spacing exceeds the refinement threshold. For a fixed gradient threshold, excluding these tags requires one additional significand bit for each halving of the mesh spacing. Shock–vortex (SV) and Rayleigh–Taylor (RT) calculations confirm that the extra refinement appears where this condition is violated. In finer SV case, stochastic BF16 tagging requires 2.69 times the cell updates of FP64 tagging. The Atlas bounds are used to construct a tagging criterion that excludes these extra tags. This criterion retains 20.03%, 61.67% and 99.99% of the reference tags under stochastic BF16, FP16 and FP32 sensor rounding. When the conserved state is also stored in FP16, the bound must include pressure reconstruction from conserved variables, and 94.73% of the decisions remain unresolved under stochastic rounding. The Atlas indicates when the stored quantities cannot establish the requested refinement decision and is a step toward a-priori precision selection for scientific calculations.

In scientific calculations, the precision of stored quantities limits accuracy. In adaptive mesh refinement (AMR) it also affects which cells are selected for refinement. The work aims to determine the precision individual operations require and to apply these requirements to AMR tagging.

A Precision Atlas combines Lean 4-verified arithmetic results (using the FloatLib library), analytical precision bounds, and 6,480 evaluations of 60 scientific kernels. Controlled time-integration problems separate the requirements for time advancement, state accumulation and output. For AMR, the probabilities of tagging cells and selecting refinement blocks under stochastic rounding are derived. The Atlas bounds are then used to build a tagging criterion that excludes rounding-induced tags.

Figure 4: Conditional mesh-selection probabilities on a fixed nonuniform pressure field. (a) BF16 ideal-SR false-tag probability, set to zero on cells already tagged by the unrounded reference. (b) Probability of refining each 4\times 4 parent block, accounting for all shared word values in its selection rule. Dashed lines locate the initial shock. (c,d) Expected extra tags and refined blocks, nor

Rounding can tag a uniform field, producing a phantom gradient, when the floating-point spacing exceeds the refinement threshold. Avoiding this requires one extra significand bit per halving of the mesh spacing. On the finer shock-vortex grid, stochastic BF16 tagging costs 2.69 times the cell updates of FP64 tagging. The guided criterion retains 20.03%, 61.67% and 99.99% of reference tags under stochastic BF16, FP16 and FP32 sensor rounding.

Figure 8: Vorticity and active blocks in SV on the 256\times 128 base grid: FP64 reference, direct BF16 SR and Atlas-guided BF16 SR (seed zero). Initial panels show the mesh after the first remap; final panels show the active mesh before remapping. Percentages denote refined area.
Figure 9: Density, active blocks and the C=0.5 interface at t=3.75 on the 64\times 256 and 128\times 512 RT grids. Direct and Atlas-guided BF16 SR use seed zero. Percentages denote refined area. At the intermediate resolution, the guided rule removes the overhangs; at the fine resolution, roll-up remains visible.