Principia Studio: Multithreaded Safe-Rust Computational Mathematics Explorer Across Six Domains and Nineteen Algorithmic Modules

Author: Bryan P. White (ORCID: 0000-0003-4191-3511) • Affiliation: CRV Science Labs • Preprint ID: APP-PREPRINT-25 (v1.1.0 Software Preprint) • Categories: math.NA • cs.MS • cs.LO
Canonical DOI: 10.5281/zenodo.24460709 • Apps Hub: https://crvscience.com/apps • Repository: https://github.com/bpwhite/crvscience-principia-studio
Abstract — Principia Studio (v1.1.0) is a standalone multithreaded safe-Rust computational mathematics workstation released under GPL-3.0-or-later that unifies nineteen parallelized algorithmic modules across six mathematical domains: Computational Number Theory (N1–N4), Formal Verification and Automated Theorem Proving (F1–F3), Symbolic Computation and Computer Algebra (S1–S3), Numerical Analysis and Partial Differential Equations (D1–D3), Combinatorics, Graph Theory, and Optimization (C1–C3), and Computational Geometry and Topology (G1–G3). Each computational engine dispatches work across configurable Rayon worker pools (1..128 threads) and exports identical mathematical structures to both a menu-driven 2D/3D eframe/egui desktop workstation (with interactive Domain Launcher Hub, Ctrl+K Command Palette, Zen mode, and thread-scaling benchmark modal) and a headless clap command-line interface capable of generating standalone SVG, Wavefront OBJ, JSON, and SHA-256 checksummed SQLite WAL workset envelopes. Across 14/14 passing Cargo release tests and live headless CLI verification, Principia Studio confirms exact equivalence among simple, 32 KiB segmented, and Atkin sieves (9,592 primes <= 10^5; 78,498 <= 10^6; 3,613 primes near 10^12 in 6.17 ms), deterministic Miller-Rabin and Baillie-PSW pseudoprime rejection on Carmichael numbers, Ramsey R(3,3) proof (K_5 SAT / K_6 UNSAT), Buchberger S-polynomial zero-reduction under Lex and GRevLex orders, 100 exact digits of pi via binary-splitting Chudnovsky paired with Karatsuba-NTT BigInt parity and 4,096-DOF sparse conjugate gradient convergence (5.46e-10 residual), exact OEIS combinatorial counts (up to 369 free octominoes), Bowyer-Watson empty-circumcircle Delaunay invariants, 3D convex hull Euler characteristic chi = 2, topological Betti barcodes, and Jones polynomial knot chirality, while achieving 3.43x speedup from 1 thread (2,434.17 ms) to 4 threads (710.33 ms) on conjecture scans.

1. Introduction

Computational mathematics education and exploratory research frequently fragment across single-purpose scripts: prime sieves, propositional SAT solvers, computer algebra notebooks, finite-element codes, linear programming tableaus, and topological data analysis libraries rarely share deterministic threading, portable persistence, or unified geometric inspection[1–6]. Principia Studio (principia-studio v1.1.0, GPL-3.0-or-later) consolidates nineteen self-contained mathematical modules across six foundational disciplines inside a zero-unsafe Rust workspace (#![forbid(unsafe_code)]) within the CRV Science Open-Source Apps ecosystem[7–30].

Rather than wrapping external C/Fortran math libraries, every kernel—spanning 32 KiB segmented sieves, Quadratic Sieve GF(2) nullspace elimination, Gentzen sequent calculus search, portfolio CDCL SAT, symbolic Liouvillian integration, multivariate Buchberger Gröbner bases, binary-splitting Chudnovsky π, Number-Theoretic Transform BigInt arithmetic, CSR conjugate gradient, one-sided Jacobi SVD, exact TSP branch-and-bound, Primal Simplex, Bowyer-Watson Delaunay triangulation, 3D convex hull construction, Z2 Vietoris-Rips persistence, and parallel Kauffman bracket state sums—executes natively over Rayon worker pools and renders directly to 2D/3D canvases, Wavefront .obj meshes, standalone vector SVG, and SQLite WAL worksets.

2. Architecture: Six Mathematical Domains, Parallel Dispatch & Persistence

Eleven modular Rust files separate the execute_module Rayon pool dispatcher (src/lib.rs), the six domain computation engines, procedural 2D/3D vector/mesh exporting (src/render3d.rs), SQLite WAL persistence with SHA-256 verification (src/storage.rs), the menu-driven desktop workstation (src/gui.rs), procedural Windows/egui icon generation (src/icon.rs), and headless CLI runner (src/cli.rs) as summarized in Table 1.

Table 1. Core Safe-Rust Modules Inside crvscience-principia-studio v1.1.0
Source FileMathematical Scope & Subsystem Role
src/number_theory.rsN1–N4: Segmented Eratosthenes & Atkin sieves, Miller-Rabin, Baillie-PSW, AKS witnesses, Brent rho, Quadratic Sieve, BSGS DLP, Lucas-Lehmer & Collatz/Goldbach scans.
src/formal_verification.rsF1–F3: Intuitionistic/classical Gentzen LK sequent prover, multithreaded portfolio CDCL SAT/SMT (Ramsey & Pythagorean triples), Ramanujan PCF hunter.
src/symbolic_algebra.rsS1–S3: AST symbolic differentiation & Liouvillian/Hermite integration, Q[x,y,z] Buchberger Gröbner bases (Lex/GrLex/GRevLex), bounded equality saturation.
src/numerical_pde.rsD1–D3: 2D vorticity-streamfunction FDM, P1 FEM Poisson, RK45 Lorenz ensembles, Karatsuba/NTT BigInt & Chudnovsky π, CSR Conjugate Gradient, Jacobi SVD.
src/combinatorics_opt.rsC1–C3: Exact Branch-and-Bound vs. Parallel Island 2-Opt TSP, FFD bin packing, Primal Simplex, log-barrier central path, MILP, OEIS polyomino/Latin/graph enumeration.
src/geometry_topology.rsG1–G3: Bowyer-Watson 2D Delaunay/Voronoi, 3D Convex Hull (Euler χ = 2), Vietoris-Rips Z2 persistent homology, parallel Kauffman bracket Jones polynomial.
src/render3d.rs & src/storage.rsPerspective 3D camera, flat-shaded SVG/Wavefront .obj exporters, and bundled rusqlite WAL 4-slot vault with SHA-256 .pworkset.json verification.
src/gui.rs, src/cli.rs, src/icon.rs, src/lib.rsDesktop menu bar, 6-Domain Hub, Ctrl+K palette, B scaling modal, clap headless CLI (list/run/bench), 64×64 RGBA emblem, and Rayon pool builder.
Figure 1. Interactive Workstation UI Preview (1600 × 1000 Viewport): 6-Domain Navigation, 2D/3D Canvas & Parallel Inspector
Principia Studio 6-Domain Computational Mathematics Workstation Preview

3. Mathematical Formulations Across Six Domains & Nineteen Modules

In Domain 1 (Number Theory), module N1 sieves base primes up to sqrt(high) to stream 32 KiB L1-cache segments across intervals up to 1012 while matching Sieve of Atkin modulo-60 residue toggling exactly[1]. Modules N2–N4 pair deterministic 12-base Miller-Rabin, Baillie-PSW strong Lucas-Selfridge checks, and polynomial ring witnesses (x + a)n ≡ xn + a (mod xr − 1, n) with parallel Brent-Pollard rho, Quadratic Sieve GF(2) elimination, BSGS discrete logarithms, and Korselt Carmichael filtering.

In Domains 2 and 3 (Formal Verification & Symbolic Algebra), F1–F3 unify LK sequent proof search with a conflict-driven clause-learning portfolio (racing diversified phase/activity workers to resolve Ramsey R(3,3) = 6 and Pythagorean 2-colorings) and continued-fraction constant hunting. Modules S1–S3 implement exact rational AST calculus, Liouvillian antiderivatives verified numerically against central finite differences, bounded equivalence saturation, and Buchberger S-polynomial completion[3] over Q[x, y, z].

In Domains 4, 5, and 6 (Numerical PDEs, Optimization & Topology), D1–D3 combine explicit Navier-Stokes vorticity-streamfunction time-stepping and chaotic Lorenz RK4 integration with base-104 BigInt convolution (Karatsuba parity with 998244353-modulus NTT), parallel binary-splitting Chudnovsky π[2], sparse CSR conjugate gradient, and one-sided Jacobi SVD. Modules C1–C3 benchmark exact TSP branch-and-bound against multi-island annealing, simplex tableaus, log-barrier central paths, and symmetry-broken OEIS enumerations, while G1–G3 verify Delaunay empty circumcircles[4], 3D convex hulls, Vietoris-Rips Betti barcodes[5], and mirror-symmetric Jones polynomials VL(t) = VR(t−1)[6].

4. Empirical Headless Verification & Parallel Scaling Telemetry

Running cargo test --release executes 14 test suites with zero compiler warnings and zero unsafe code: 1 unit test (src/icon.rs), 6 core module/persistence integration tests (tests/integration_suite.rs), and 7 dedicated headless invariant suites (tests/headless_algorithm_validation.rs) emitting validation/principia_studio_validation_summary.json across all 19 modules at 1 and 4 Rayon workers (Table 2; Figure 2).

Table 2. Empirical Validation Metrics Verified Against Release Binary 24_Principia-Studio.exe v1.1.0
Verification CheckModule / ScopeObserved Headless OutputStatus
Cargo Test Suitescargo test --release14 passed, 0 failed (1 unit + 7 headless + 6 integration; 0 warnings)PASS
Prime Sieve & 1012 Windown1 (4 threads CLI)pi(105) = 9,592 exact match; 3,613 primes in [1012−105, 1012] in 6.17 msPASS
CDCL SAT & Sequent Proverf1, f2 (1 & 4 workers)Tautologies QED; K5 100% clauses SAT; K6 UNSAT (31 conflicts)PASS
Symbolic & Gröbner Invariants1, s2, s3d/dx(int f) roundtrip < 10−6; all S-polynomials reduce to 0 (Lex/GRevLex)PASS
Chudnovsky π, CG & SVDd2, d3100 exact fractional digits of π; 4,096-DOF CG 5.46e-10; SVD residual 3.24e-16PASS
LP Simplex & OEIS Countsc2, c3Simplex LP* = 27.950; free 6/8-ominoes = 35 / 369; G(5)=34, G(6)=156PASS
Delaunay, TDA & Knotsg1, g2, g3Empty-circumcircle 0 violations; 3D hull χ=2; S1 β1=1; mirror trefoil V(t) exactPASS
CLI Scaling & Exportersn4 bench + g3 OBJ/SVGn4 2,434.17 ms (1t) → 710.33 ms (4t, 3.43×); 3,200-tri trefoil 446.8 KB OBJPASS
Figure 2. Verified Mathematical Benchmarks Across Six Domains & Safe-Rust Execution Architecture
Principia Studio v1.1.0 — Six-Domain Multithreaded Computational Mathematics Architecture Safe-Rust empirical verification across 19 modules, 14/14 passing integration tests, and Rayon parallel scaling (1..4 workers) Panel A | Verified Algorithmic Benchmarks (Release Build) N1 Prime Sieve 3,613 primes ~10^12 (6.17 ms) F2 CDCL Ramsey K_5 SAT / K_6 UNSAT (31 confl.) S2 Groebner Lex & GRevLex S-poly = 0 D2 Chudnovsky pi 100 exact digits | NTT==Karats. D3 Krylov & SVD CG 5.46e-10 | SVD 3.24e-16 C1..C3 Opt/OEIS LP* 27.95 | 8-omino=369 G1..G3 Topology chi=2 | V_L(t)=V_R(t^-1) N4 Conjecture Thread Scaling (1..4 Workers): 1 Thread Baseline 2,434.17 ms (1.00x) 4 Rayon Workers 710.33 ms (3.43x speedup) Panel B | Safe-Rust Architecture & Dual Interfaces 1. Six Mathematical Engines (N1..G3, 19 Parallel Modules) 2. Dedicated Rayon ThreadPool Dispatcher (1..128 Workers) 3. SQLite WAL 4-Slot Vault & SHA-256 .pworkset.json 4. Desktop egui 2D/3D Workstation & SVG/OBJ/JSON Exporters Zero-Unsafe Library Core & Verified Headless CLI 11 Rust Modules • GPL-3.0-or-later • 14/14 Cargo Release Tests PASS

5. Software Availability & Network Integration

Principia Studio (v1.1.0) is distributed as full safe-Rust source and a compiled Windows PE executable (with embedded icon and version metadata) under GPL-3.0-or-later via https://crvscience.com/apps[7–30]. Its arbitrary-precision arithmetic, sparse linear algebra, optimization, and persistent homology kernels complement Calc-Lab, QuantaCrypt-Studio, ConnectomeAtlas, and PopBio-Studio across the CRV Science open-source software library.

References

  1. [1] Agrawal, M., Kayal, N., & Saxena, N. (2004). PRIMES is in P. Annals of Mathematics, 160(2), 781–793. https://doi.org/10.4007/annals.2004.160.781
  2. [2] Chudnovsky, D. V., & Chudnovsky, G. V. (1988). Approximations and complex multiplication according to Ramanujan. In Ramanujan Revisited (pp. 375–472). Academic Press. https://doi.org/10.1016/B978-0-12-058560-1.50026-2
  3. [3] Buchberger, B. (2006). Bruno Buchberger's PhD thesis 1965: An algorithm for finding the basis elements of the residue class ring of a zero dimensional polynomial ideal. Journal of Symbolic Computation, 41(3–4), 475–511. https://doi.org/10.1016/j.jsc.2005.09.007
  4. [4] Bowyer, A. (1981). Computing Dirichlet tessellations. The Computer Journal, 24(2), 162–166. https://doi.org/10.1093/comjnl/24.2.162
  5. [5] Edelsbrunner, H., Letscher, D., & Zomorodian, A. (2002). Topological persistence and simplification. Discrete & Computational Geometry, 28(4), 511–533. https://doi.org/10.1007/s00454-002-2885-2
  6. [6] Jones, V. F. R. (1985). A polynomial invariant for knots via von Neumann algebras. Bulletin of the American Mathematical Society, 12(1), 103–111. https://doi.org/10.1090/S0273-0979-1985-15304-2
  7. [7] White, B. P. (2026). The CRV Science App Network: Twenty-Three Open-Source Rust Programs for Science, Data, and Simulation. CRV Science App Preprint APP-PREPRINT-01 [cs.SE, cs.CE, q-bio.QM], v1.0.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222398
  8. [8] White, B. P. (2026). AeroFlyway: Tracking Bird Migration with Weather Radar, Skyglow Maps, and Nighttime Flight Calls. CRV Science App Preprint APP-PREPRINT-13 [q-bio.PE, physics.ao-ph, cs.GR], v0.6.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222366
  9. [9] White, B. P. (2026). BeoFold: Simulating How Proteins Fold Using Distributed Computing and State Networks. CRV Science App Preprint APP-PREPRINT-02 [q-bio.BM, physics.chem-ph, cs.DC], v1.4.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222370
  10. [10] White, B. P. (2026). Calc-Lab: Interactive Calculus, Linear Algebra, and Differential Equation Solver Workbench. CRV Science App Preprint APP-PREPRINT-03 [math.NA, cs.MS, cs.CY], v0.5.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222372
  11. [11] White, B. P. (2026). Causal-Atlas: Tracing How Genes and Drugs Turn Biological Pathways On and Off. CRV Science App Preprint APP-PREPRINT-04 [q-bio.MN, q-bio.GN, stat.ML], v0.2.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222376
  12. [12] White, B. P. (2026). Cit-Atlas: Mapping Citation Networks and Research Impact Across Scientific Papers. CRV Science App Preprint APP-PREPRINT-05 [cs.DL, cs.SI, physics.soc-ph], v1.8.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222380
  13. [13] White, B. P. (2026). EpiLedger: Privacy-Safe Disease Tracking, Clinical Text Screening, and Outbreak Monitoring. CRV Science App Preprint APP-PREPRINT-06 [cs.CR, q-bio.PE, stat.AP], v2.0.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222382
  14. [14] White, B. P. (2026). ITME: Modeling Evolutionary Regimes, Contingency, and Substrate Complexity Across Molecular, Hominid, and AI Worlds. CRV Science App Preprint APP-PREPRINT-07 [q-bio.PE, nlin.AO, physics.bio-ph], v2.3.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222386
  15. [15] White, B. P. (2026). OSABT: A 20-Module Biology and Biostatistics Workbench for Molecular Labs, Genetics, Kinetics, and Ecology. CRV Science App Preprint APP-PREPRINT-08 [q-bio.QM, stat.AP, cs.SE], v2.0.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222388
  16. [16] White, B. P. (2026). SAR-Atlas: Drug Design, Body Distribution Modeling, and Candidate Screening in Rust. CRV Science App Preprint APP-PREPRINT-09 [physics.chem-ph, q-bio.BM, cs.LG], v3.8.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222390
  17. [17] White, B. P. (2026). TerraTwin: Fast Climate Projections for Global Warming, Sea-Level Rise, and Arctic Change. CRV Science App Preprint APP-PREPRINT-10 [physics.ao-ph, cs.CE, stat.AP], v2.5.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222392
  18. [18] White, B. P. (2026). Urban-Grid: Modeling City Traffic, Emergency Response Coverage, and Earthquake Evacuation. CRV Science App Preprint APP-PREPRINT-11 [physics.soc-ph, cs.MA, cs.CE], v5.2.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222394
  19. [19] White, B. P. (2026). WildFront BattleGrounds: Turn-Based Hex Strategy Game with Voxel Graphics and Procedural Map Generation. CRV Science App Preprint APP-PREPRINT-12 [cs.GT, cs.GR, math.CO], v3.4.1. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24222396
  20. [20] White, B. P. (2026). HelioProbe: Simulating Spacecraft Orbits, Deep-Space Telescopes, and Comet Tails in 3D. CRV Science App Preprint APP-PREPRINT-14 [astro-ph.EP, astro-ph.IM, cs.GR], v2.3.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24244083
  21. [21] White, B. P. (2026). PopBio-Studio: Interactive Population Biology, Adaptive Landscapes, and Genetic Skyline Simulator. CRV Science App Preprint APP-PREPRINT-15 [q-bio.PE, q-bio.QM, stat.AP], v1.2.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24244085
  22. [22] White, B. P. (2026). QuantaCrypt-Studio: Simulating Quantum Circuits, Quantum Key Distribution, and Post-Quantum Cryptography. CRV Science App Preprint APP-PREPRINT-16 [quant-ph, cs.CR, cs.MS], v2.2.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24244089
  23. [23] White, B. P. (2026). SonoWing: Analyzing Bat Echolocation and Bird Calls with Spectrograms and Harmonic Tracking. CRV Science App Preprint APP-PREPRINT-17 [q-bio.NC, q-bio.PE, cs.SD], v1.1.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24244091
  24. [24] White, B. P. (2026). SwarmForge: 3D Isometric Automated Factory and Swarm Robotics Simulation Game. CRV Science App Preprint APP-PREPRINT-18 [cs.MA, cs.RO, cs.GT], v1.3.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24244093
  25. [25] White, B. P. (2026). NeuroSpace Lab: 3D Neural Network Topology, Structural Plasticity, and Six-Layered Cerebral Cortex Simulation in Rust. CRV Science App Preprint APP-PREPRINT-19 [q-bio.NC, cs.NE, cs.GR], v1.6.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24263468
  26. [26] White, B. P. (2026). TrophicHearth: Nine-Biome 3D Living Trophic Diorama, Fire-Pit Hearth, and Bioacoustic Ecosystem Simulator in Rust. CRV Science App Preprint APP-PREPRINT-20 [q-bio.PE, cs.GR, cs.MA], v0.9.3. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24359107
  27. [27] White, B. P. (2026). ConnectomeAtlas: Standalone 3D Multi-Scale Brain Connectome, Persistent Homology, and Lesion Workstation in Rust. CRV Science App Preprint APP-PREPRINT-21 [q-bio.NC, cs.SI, cs.GR], v0.8.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24359109
  28. [28] White, B. P. (2026). PelagicGlobe: 3D Ocean Currents Globe, Conformal Spilhaus World Ocean Projection, and NOAA ENSO Workstation in Rust. CRV Science App Preprint APP-PREPRINT-22 [physics.ao-ph, cs.GR, cs.CE], v1.1.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24442089
  29. [29] White, B. P. (2026). CanopyForge: 3D Isometric Pacific Northwest Old-Growth Watershed Recovery and Ecological Stewardship Simulator in Rust. CRV Science App Preprint APP-PREPRINT-23 [q-bio.PE, cs.GR, cs.MA], v1.0.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24442091
  30. [30] White, B. P. (2026). GenBankVault: Safe-Rust NCBI Five-Gate Genomic Downloader, Multi-FASTA Set Organizer, and Offline SQLite Synchronization Workstation. CRV Science App Preprint APP-PREPRINT-24 [q-bio.GN, cs.DB, cs.GR], v1.1.0. Hosted via CRV Science Apps Hub (https://crvscience.com/apps). https://doi.org/10.5281/zenodo.24451850