The Monist Engine – First Synthesis
The Hardware Layer. The Monist Engine is a bare-metal, GPU-accelerated logic environment. By abandoning traditional hierarchical type-checking and contextual grammars, it compiles structural typestates directly into lock-free WebGPU Interaction Nets.
View GitHub Repository
1. Syntax is Dead: The Geometry Layer
Transitioning to geometric validation demands the eradication of abstract syntax trees (ASTs). Standard parsers rely on Context-Free Grammars (CFGs) and Pushdown Automata, which inherently fail to track W.V.O. Quine’s relative integer type-shifts across nested mathematical sets.
The Oracle Layer (monist-core) acts as our CPU-bound geometry solver. It transforms raw mathematical expressions into pure topological matrices:
Kosaraju’s SCC: Before bounding logic, the system executes Kosaraju’s Strongly Connected Components algorithm. This flattens 0-weight semantic equality rings into representative concept vertices, physically collapsing redundant structural cycles in system RAM.
Bellman-Ford Bounds: The logic is treated as a spatial constraint problem. The solver assigns directed edges based on logical relations. The Bellman-Ford algorithm verifies these constraints, mathematically proving that variables can populate the matrix without generating a negative-weight cycle.
2. Variable Annihilation: The Compiler Layer
Traditional software engineering binds logic to named variables, forcing processors to waste memory bandwidth navigating lookup tables, tracking scopes, and running tracing garbage collectors. The monist-comb compiler completely annihilates the lexical environment.
Monist eliminates this overhead entirely by compiling logic into point-free interaction networks where nodes occupy a compressed 64-bit memory word inside a contiguous VRAM arena. By replacing named variables with De Bruijn indexing and pure, untyped combinatory logic (\(S, K, I\)), the compiler reduces math into structural coordinates.
3. Lock-Free Atomics & Bare-Metal Physics
Parallel GPU threads execute graph transformations using atomic Compare-And-Swap (CAS) spin-loops directly accessing VRAM addresses without central synchronization. Memory reclamation occurs autonomously the exact millisecond a sub-net becomes unreachable via localized Void and Erase collisions, achieving continuous execution at thermodynamic limits without global garbage collection interrupts.
Classical engines crash via stack-overflow when fed paradoxical loops like Russell’s Paradox. Monist subverts this through spatial interception. If Bellman-Ford flags a negative-weight cycle (calculating the Minimum Cycle Mean), it intercepts the mathematical impossibility prior to hardware scaling, freezing paradoxical regression into safely observable geometric boundaries.
4. Topological Recursion Cost as a Deterministic Observable
When the GPU executes a logic network, it outputs a precise, reproducible integer: the exact count of graph-rewrite collisions required to normalize a feedback topology into a stable fixpoint.
Structural Measurement: This metric functions as a discrete topological analogue of free energy expenditure. It provides an exact, distribution-free, and computable count of erasures versus rearrangements, surpassing the limitations of continuous differential equations, noisy stochastic Gillespie simulations, or uncomputable Kolmogorov metrics.
5. The Holographic Exclusion Sieve
For enterprise applications processing massive streaming datasets, the Holographic Co-processor acts as a high-velocity data sieve. Rather than executing slow \(O(N)\) sequential list sweeps, the engine leverages the absolute complement allowed by its unique set-theoretic foundation to deploy “exclusion-first” logic.
By superposing complex data streams into hyperdimensional vector spaces, custom WGSL compute shaders perform pointwise subtraction to achieve Successive Interference Cancellation. Background noise and uncalibrated telemetry cancel out physically via destructive interference in \(O(1)\) time, isolating structural anomalies and snapping them back to discrete variables for immediate geometric evaluation.
The Core Crates
crates/monist-parser: Parses raw text and ASCII constraints.
crates/monist-core: The Oracle Layer, executing Kosaraju SCC & Bellman-Ford constraints.
crates/monist-comb: The Interaction Net Backend, hosting the WebGPU (wgpu) WGSL compute shaders.
crates/monist-seq: Sequent calculus evaluation bridging structural rules.
crates/monist-psg: Phase Space Geometry and spatial boundary check limits.
crates/monist-verify: The validation gateway connecting to the formal proofs.