r/ScientificComputing • • 20h ago

UNIQUANT: Replacing float32/float64 with exact integer & rational arithmetic across hydrodynamics, timekeeping, and optimization (verified in Lean 4)

3 Upvotes

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_infinity error bounds, and overflow-free 128/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, and 299 = 13 × 23 phase 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:


r/ScientificComputing • • 7h ago

Which is better for tensor network simulations, Tenpy or Quimb?

Thumbnail reddit.com
2 Upvotes

r/ScientificComputing • • 6h ago

Mi primer trabajo relacionado a la astronomía

Thumbnail
reddit.com
0 Upvotes

r/ScientificComputing • • 3h ago

Ramanujan vs CPython: performance matrix

Thumbnail reddit.com
0 Upvotes

Hi!

Ramanujan-Computing is an MIT-licensed open-source project that aims to harness idle compute power[CPU/GPU] of digital device for scientific computing.

The way its different from BOINC or Folding@Home/SETI@Home is : for a new kind of scientific simulation, the developer dont need to compile a new binary, distribute it, and get it installed on the volunteering devices [as needed in BOINC]. They just need to submit their code onto cluster of devices, and devices can just run the simulation. Technically the devices have an interpreter which can run any simulation. The attached comparision is for the interpreter's perf against CPython.

Additionally, computation can be sharded across devices, and developer can control on how data should move around shards.

This project is very much in nascent stage and has potential to help science move forward, welcome any feedback on the project.

code: https://gitlab.com/ramanujan-computing/Ramanujan

Thanks!