r/ScientificComputing • u/Obvious-Ask-9099 • 1d ago
UNIQUANT: Replacing float32/float64 with exact integer & rational arithmetic across hydrodynamics, timekeeping, and optimization (verified in Lean 4)
Hi everyone,
I just published the first public release (v1.0.0) of UNIQUANT-Formal alongside my primary research repository Uniquant23.
Standard scientific simulations, astronomical calendars, and optimization solvers rely almost universally on float32 and float64. Over long time horizons or millions of computational steps, tiny rounding errors, subtractive cancellation, and hardware discrepancies silently accumulate—causing drift, mass-conservation violations, and divergence between CPUs and GPUs.
Instead of patching floating-point drift after the fact, the UNIQUANT framework eliminates it at the mathematical root by rebuilding time scales, reference frames, fluid solvers, optimization routines, and statistical diagnostics purely on exact integer and rational arithmetic. To ensure complete soundness, the core theorems and algorithms are machine-verified in Lean 4 (40 modular files, 0 sorry).
Key highlights across the framework:
- Integer-First Hydrodynamics & GPU Contracts: Backlog-free integer volume ledgers, cancellation-free trapezoidal channel geometry, tridiagonal M-matrix integer solvers with certified
L_infinityerror bounds, and overflow-free128/256-bit multi-limb arithmetic for bit-exact CPU/CUDA execution. - Discrete Time & Astronomy: Exact rational time quantum (
q = 75/1012 s),529-year (23^2) anchor cycles, bounded lunar parabolas, and299 = 13 × 23phase lattices. - Observer Geometry & Climate Networks: Apparent zero-point accelerations, three-anchor orthonormal triads with full
SO(3)rotational invariance, and spatial correlation bias (N_eff < N). - Convex Optimization & Diagnostics: Strictly convex Ridge-QP Hessians, root-free squared RMS guards, lossless main/remainder gradient accumulation, and integer block-CUSUM change-point detectors.
- Stylometry, Calendars & Decipherment: Burrows' Delta corpus-mean cancellation, the
365-day Egyptian calendar identity,6-test minimal hitting sets, and Shannon unicity distance bounds.
Links & DOIs:
- Primary Research & Code: https://github.com/joesen88/Uniquant23 (Research DOI:
10.5281/zenodo.24570873) - Lean 4 Proofs (
v1.0.0): https://github.com/joesen88/UNIQUANT-Formal (Software DOI:10.5281/zenodo.24629562)
1
u/lgn3000 14h ago
Hmm, while it sounds good, it seems like the description is too general for what the code seems to do