11 min read
On this page

ShunyaBar Labs Research: Unified Mathematical Systems Report

Comprehensive Workspace Assessment — June 2026

Audience marker: This is a technical document for engineers and researchers. For the business-facing version, see the product strategy and homepage. For deep mathematical foundations, see the Axiom Architecture essay.

For the shorter production narrative, see the Navokoj launch post.


Plain-English Summary#

In one paragraph: We have built eight production solvers and frameworks — NitroSAT, BAHA, Navokoj, Multiplicative PINN, Geometry of Conditional Logic, Casimir SAT, Factor Agent, and the Spectral-Multiplicative Framework — that share one underlying mathematical theory. All of them map discrete logical constraints onto continuous energy landscapes, weight each constraint with a unique prime, and use multiplicative dynamics to preserve gradient flow. The result is a toolchain that solves hard combinatorial problems 100×–100,000× faster than classical methods on structured workloads.

What this document is: A technical deep-dive into each project, the shared mathematical foundation, the systems engineering choices, and an honest assessment of commercial viability.

What this document is not: Marketing copy. Some results are research-stage; some projects are not yet productized.


Executive Summary#

ShunyaBar Labs has developed a highly specialized, deeply unified research ecosystem that bridges the gap between discrete symbolic logic (e.g., constraint satisfaction, SAT, scheduling) and continuous mathematical physics (differential geometry, statistical mechanics, prime number theory, and quantum-inspired dynamics).

The core thesis of the research is that discrete computational problems can be modeled as continuous energy landscapes, where constraint satisfaction is represented by global energy minima. Rather than treating logic as a series of discontinuous branch gates (which break gradient-based optimization), this research embeds logical states into smooth, multi-dimensional manifolds using prime-weighted periodic functions and the Chinese Remainder Theorem (CRT).

Furthermore, ShunyaBar Labs introduces a local repair calculus using p-adic ultrametric geometry and actor-based runtimes. Instead of recomputing solutions from scratch when a system is perturbed, the framework calculates minimal local displacements that preserve locked commitments exactly.

This report documents the architectural structure of the projects, explains the underlying mathematics, reviews empirical benchmarks, and assesses commercial viability.


1. Project-by-Project Deep Dive#

The workspace is organized into eight specialized sub-repositories and consolidated scripts, each exploring a distinct facet of the physics-math-systems bridge.

graph TD
    classDef project fill:#fffef8,stroke:#2a3334,stroke-width:1px;
    
    A[ShunyaBar Labs Ecosystem] --> B[Continuous Relaxation Solvers]
    A --> C[Local Repair & Agents]
    A --> D[Physics-Informed Optimization]
    
    B --> B1[NitroSAT]:::project
    B --> B2[Navokoj]:::project
    B --> B3[BAHA]:::project
    
    C --> C1[Geometry of Conditional Logic]:::project
    C --> C2[Factor-Agent]:::project
    
    D --> D1[Multiplicative PINN]:::project
    D --> D2[Casimir SAT]:::project
    D --> D3[Spectral-Multiplicative Framework]:::project

The diagram above is illustrative. Clickable project pages: NitroSAT · Navokoj · BAHA · Geometry of Conditional Logic · Factor Agent · Multiplicative PINN · Casimir SAT · Spectral-Multiplicative Framework · Authorization Lattice · Thermodynamic Number Line.

1.1 NitroSAT#

  • Role: The high-performance production engine.
  • Mechanism: A C99 and LuaJIT implementation of a continuous-relaxation MaxSAT solver. It models Boolean constraints as continuous manifolds, solving them via Langevin gradient flow, topological repair, and adelic saturation. It scales to massive variables (N=100k+N=100\text{k}+) and provides O(M)O(M) time complexity on structured adversarial families.
  • Key Metrics: Solves critical 3-SAT instances and large-scale industrial SAT benchmarks; achieves 10×10\times speedup over the Kissat solver on select adversarial constraint families.

1.2 BAHA (Branch-Aware Holonomy Annealing)#

  • Role: The escape mechanism for glassy energy landscapes.
  • Mechanism: A simulated annealing variant designed to solve highly frustrated optimization problems (e.g., spin glasses). It monitors the partition function Z(β)Z(\beta)‘s log-derivative to detect thermodynamic phase transitions (landscape fractures). When a fracture is detected, it computes complex branch coordinates (holonomies) to jump directly to adjacent energy basins, bypassing local minima barriers.
  • Key Metrics: Delivers a 4169%4169\% improvement over standard Simulated Annealing (SA) on a 64-spin glass, and 61.2%61.2\% better performance on highly frustrated lattices.

1.3 Navokoj#

  • Role: The reference solver implementation.
  • Mechanism: The open-source solver implementing the “Arithmetic Manifold” continuous relaxation theory. It provides both binary SAT solving and kk-ary state Q-SAT (generalized constraint satisfaction, e.g., graph coloring, Sudoku, resource allocation) using gradient descent and adiabatic cooling.
  • Key Metrics: Achieves 100%100\% success on graph coloring (N=50N=50) and solves AI Escargot Sudoku (729 variables, 8850 clauses) in milliseconds.

1.4 Multiplicative PINN Framework#

  • Role: Physics-Informed Neural Network (PINN) optimization.
  • Mechanism: Traditionally, PINNs enforce physics constraints by adding them to the data loss: L=Ldata+λLphysics\mathcal{L} = \mathcal{L}_{\text{data}} + \lambda \mathcal{L}_{\text{physics}} This causes gradient conflicts and stiffness. Multiplicative PINN shifts this to: L=Ldata×G(Lphysics)×B(Lphysics)\mathcal{L} = \mathcal{L}_{\text{data}} \times G(\mathcal{L}_{\text{physics}}) \times B(\mathcal{L}_{\text{physics}}) where GG is an Euler Product Gate (attenuates loss when constraints are satisfied) and BB is an Exponential Barrier (amplifies gradients on violations).
  • Key Metrics: Achieves 99.64%99.64\% residual reduction on 2D Navier-Stokes equations with 100,000×100,000\times speedup over traditional CFD. Delivered a 1,052,442×1,052,442\times loss reduction on 1D Poisson equations compared to additive loss.

1.5 Geometry of Conditional Logic (Lock-Preserving Incremental Solver)#

  • Role: The transactional local repair runtime.
  • Mechanism: Formulates discrete systems where state variable assignments are residues modulo coprime primes. When a variable must be repaired due to perturbation, a commitment shield MSM_S is computed as the product of primes of all “locked” variables. The state is updated via: z=z+kMS(modpi)z' = z + k M_S \pmod{\prod p_i} which guarantees that locked variables remain perfectly unchanged (since MS0(modpj)M_S \equiv 0 \pmod{p_j} for all locked variables vjv_j).
  • Key Metrics: Repair calculations are 847×847\times to 12,495×12,495\times faster than recomputing a solution from scratch, leaving 95%95\% of unaffected variables untouched.

1.6 Casimir SAT Solver#

  • Role: Quantum-inspired solver dynamics.
  • Mechanism: Maps SAT instances into a physical vacuum chamber containing virtual plate boundaries. It models variable coagulation and attraction using simulated quantum vacuum fluctuations and Casimir forces, pulling the system state toward satisfying assignments.
  • Key Metrics: Achieves a 90%90\% success rate on easy SAT instances below the critical density threshold αc\alpha_c using Langevin crystallization.

1.7 Factor-Agent#

  • Role: Fault-tolerant distributed agent runtime.
  • Mechanism: Inspired by Erlang/OTP, it models agents as isolated processes with explicit, lattice-based capability algebra and local supervision trees. Rather than restarting an entire agent workflow upon failure, it applies the local repair calculus (adjusting only the desynchronized sub-module while preserving invariant parent states).
  • Key Metrics: Governs state transitions mathematically, preventing retry storms, infinite delegation loops, and capability leaks.
  • Architecture: The detailed systems design is described in Agentic AI as a Distributed System, including OTP process trees, Horde recovery, ScyllaDB temporal state, lag-aware probes, and FactorAgent governance.

1.8 Spectral-Multiplicative Framework#

  • Role: Solvability prediction and neural weight adaptation.
  • Mechanism: Written in Crystal. Uses spectral heat kernels (traces of Laplacian matrices) and Casimir force diagnostics to predict SAT instance solvability before running heavy solvers. It also implements neural weight calibration to adapt the multi-constraint graph.
  • Key Metrics: Predicts SAT solvability with 92.5%92.5\% overall accuracy and detects unsolvable instances with 100%100\% accuracy. Neural adaptation yields an 813%813\% energy improvement.

2. Core Mathematical & Theoretical Unification#

At first glance, these repositories appear to address diverse fields (PDEs, SAT solvers, agent runtimes). However, they are mathematically unified by three core concepts:

                  [ Discrete Logic (Heaviside H) ]

                   Discontinuity breaks gradients

                     [ Cosine Wave Manifold ]  ◄── Riemann Surfaces z^(1/p)

                       Superposed Prime Waves

                       [ Garner's Algorithm ]

                   Differentiable master coordinate X

                      [ Local Repair Calculus ]  ◄── p-adic Ultrametrics

                    z' = z + k*M (Commitment Shield)

2.1 The Differentiable Logic Barrier: Modulo Cosine Waves#

In standard programming, an if/else statement is represented by the discontinuous Heaviside step function H(x)H(x), whose derivative is the Dirac delta function δ(x)\delta(x) (slope is 00 everywhere except at the transition point). This kills gradients in neural network optimization.

To bypass this, ShunyaBar relaxes logic to a smooth cosine manifold. For an output variable zz and target state ai{0,1}a_i \in \{0, 1\} associated with prime pip_i, the loss is:

Li(z)=1cos(2πpi(zai))\mathcal{L}_i(z) = 1 - \cos\left( \frac{2\pi}{p_i} (z - a_i) \right)

Superposing these waves across all constraints creates a smooth, continuous energy surface. The gradients flow without vanishing, guiding the network to the global minimum.

2.2 Chinese Remainder Theorem (CRT) & Garner’s Algorithm#

When NN independent logical conditions must be met, rather than tracking NN variables, they are assigned pairwise coprime primes {p1,p2,,pN}\{p_1, p_2, \dots, p_N\}. By the Chinese Remainder Theorem, there exists a unique master coordinate XX modulo P=piP = \prod p_i representing the exact state configuration.

Instead of brute-force searching for XX, ShunyaBar implements Garner’s Algorithm (1958) in a differentiable format:

X=v1+v2p1+v3p1p2++vN(p1pN1)X = v_1 + v_2 p_1 + v_3 p_1 p_2 + \dots + v_N (p_1 \dots p_{N-1})

Since Garner’s algorithm consists only of addition, multiplication, and precomputed modular inverses, it is fully differentiable. This allows neural networks to “slide” down the gradient of prime-wave losses directly to the exact integer XX that encodes the satisfying logical assignment.

2.3 p-adic Geometry of Local Repair#

In the local repair framework, the distance between two states zz and zz' is measured not by Euclidean metrics, but by a p-adic ultrametric. Moduli are ordered by commitment depth, and the repair valuation is defined as:

vR(z,z)=max{n:zz(modp1p2pn)}v_R(z, z') = \max \{ n : z' \equiv z \pmod{p_1 p_2 \dots p_n} \}

The corresponding repair metric is:

dR(z,z)=αvR(z,z)d_R(z, z') = \alpha^{-v_R(z, z')}

Because this satisfies the strong ultrametric inequality:

dR(z,z)max(dR(z,z),dR(z,z))d_R(z, z'') \le \max(d_R(z, z'), d_R(z', z''))

the space of consistency states forms a nested hierarchy. This mathematically proves that:

  1. Repair transitions z' = z + k*M keep the system within the same local p-adic ball (preserving locked commitments).
  2. Trajectories are tree-structured, avoiding gradual drift and isolating perturbations.

2.4 Multiplicative vs. Additive Constraints#

The PINN framework extends this optimization landscape idea. In traditional optimization, combining multiple constraints additively results in gradient conflicts (where the gradient vector of Constraint A opposes Constraint B, leading to oscillatory behavior or local minima traps).

By multiplying the constraints, satisfying one constraint attenuates its gradient contribution to zero (via the Euler Product Gate), allowing the solver to focus entirely on unsatisfied constraints. If a constraint is violated, the Exponential Barrier exponentially scales up the gradient, pushing the system forcefully back into the feasible region. This creates a “superconducting” landscape where gradients flow along the intersection of satisfied manifolds.


3. Systems Engineering Architectures#

ShunyaBar Labs translates these mathematical concepts into production-grade runtime environments:

TechnologyImplementation AreaDesign Rationale
C99NitroSAT coreMaximizes raw throughput and cache locality for high-density matrix math and Langevin noise injection.
LuaJIT / FFIshunyabar.luaBridges the C-core with rapid prototyping; runs simulations with minimal overhead.
Crystalspectral-multiplicativeProvides type-safe compiled performance for graph operations, sparse matrices, and validation specs.
Erlang / ElixirFactor-Agent / Local RepairMaps constraint groups to actor processes. Overlap edges are handled via message-passing. Rollback histories are kept local to process supervisors.
Python / PyTorchDifferentiable CRT, PINNsLeverages autograd engines to compute gradients directly through the prime wave loss landscapes.

4. Empirical Evaluation Summary#

The performance of the ShunyaBar solvers and repair calculators has been verified against classical algorithms:

Problem DomainBenchmark TargetShunyaBar PerformanceBaseline Comparison
Ramsey TheoryR(5,5,5) (N=52)Solved (E=0E=0) in 5.6sExtremely difficult for standard SAT solvers
Frustrated LatticeSpin Glass (64 spins)4169%4169\% lower energyOutperforms standard Simulated Annealing
Incremental RepairCPU Task Scheduling847×847\times to 12,495×12,495\times speedupvs. full recomputation / CP-SAT restart
Fluid Simulation2D Navier-Stokes99.64%99.64\% residual reduction100,000×100,000\times faster than traditional CFD
Hard SudokuAI Escargot (729 vars)Solved in <10msInstantaneous continuous convergence
Industrial SAT4199 Industrial instances92.57%92.57\% perfect satisfactionCompetitive with state-of-the-art heuristic MaxSAT

[!IMPORTANT] Math Audit & CP-SAT Boundaries: While the framework excels at local repair and structured constraint mapping, it does not bypass NP-hardness. On large, unstructured global optimization problems with complex real-valued parameters, traditional exact solvers like Google’s OR-Tools CP-SAT outperform the CRT-based approach. The framework is a specialized local repair primitive, not a replacement for general global solvers.


5. Commercial Outlook & Productization Roadmap#

The commercial value of ShunyaBar Labs is not in a generic, open-ended SAT solver. Rather, it is in lock-preserving local repair for high-constraint, high-disruption operations.

5.1 High-Value Commercial Wedges#

  1. Staff Rostering (Hospitals, Security, Call Centers):
    • The Problem: Staff call out sick, triggering schedule disruptions. Re-optimizing from scratch reshuffles shifts for everyone, breaking agreements.
    • The ShunyaBar Value: The existing schedule is “locked.” The sick-call triggers a local CRT repair jump, shifting only the minimum number of eligible workers to cover the gap while keeping all other shifts unchanged.
  2. Last-Mile Dispatch & Logistics Routing:
    • The Problem: Vehicles break down or traffic delays occur. Fully re-optimizing route assignments changes promised delivery windows for unrelated customers.
    • The ShunyaBar Value: Preserves committed delivery slots, adjusting only the routes of neighboring vehicles.
  3. GPU / Compute Cluster Allocation:
    • The Problem: High-priority training jobs arrive, requiring immediate resources on a shared cluster without killing running workloads.
    • The ShunyaBar Value: Computes the minimal migration path for running tasks, preserving memory-hot nodes while accommodating the new job.

To demonstrate direct business value, ShunyaBar should build:

  • prime_nurse_rostering.py: A demo simulating a hospital shift roster under sudden nurse absences. It showcases:
    1. The initial constraint-satisfying roster.
    2. A “sick-call” event.
    3. The local repair calculus outputting a new schedule in <5ms, preserving 95%+95\%+ of shift assignments.
    4. A comparison showing that standard solvers either take seconds to recompute or reshuffle the entire hospital staff.

6. Response to Critiques#

Several limitations must be acknowledged to maintain scientific rigor:

  • Riemann Surface Language: The “Riemann surface” and “zeta-function superconductivity” framing is conceptually helpful but is more metaphorical than formally proven. “Periodic constraint geometry” is the more mathematically precise term.
  • Modulus Explosion: The product of primes P=piP = \prod p_i grows exponentially. For hundreds of variables, the master coordinate XX exceeds 64-bit bounds. The system resolves this by moving from a monolithic integer to a hypergraph of overlapping local constraint groups, each running its own local CRT coordinate.
  • Convergence Proofs: While gradient flow behaves consistently across N-Queens, Sudoku, and Navier-Stokes, global convergence proofs for prime wave losses on arbitrary non-convex landscapes do not yet exist.

Conclusion#

ShunyaBar Labs has established a mathematically elegant and empirically performant toolkit. By mapping logic to continuous wave phase-angles, using Garner’s algorithm for differentiable navigation, and enforcing local consistency via p-adic ultrametric balls, the framework offers a novel paradigm for real-time, resilient computing in production environments.


See Also#

Start typing to search all 77 articles and guides.