Skip to content
pCwOrMPublic

About

Zero-memory System-1 decision engine & TypeSafe Jev runtime powered by Procedural Boundary Dynamics (The Zero-VRAM Gauntlet).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

385 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WERR

Constant-Storage (24-Byte) Fractal Reflex Decision Engine · Waves & Errors

arXiv Flagship: 2611.32393 alphaXiv: 2609.25498 Elsevier SSRN Hugging Face: WERR Lab License: BSL 1.1 Gemma 4 SWE Agent: Apache 2.0 Kaggle Paper DOI Formal Verification: Lean 4 GAP Phase 3 (v0.3.0) Python: 3.10+ Concept DOI Foundational DOI NSF ICARM Schönhage Record Featured: Awesome Physics & Lean 4

A deterministic, procedural System-1 reflex engine that derives typed decisions directly from complex quadratic boundary dynamics—requiring a constant 24-byte coordinate seed (0 B hidden weight tensors, 0 B VRAM) and sub-microsecond compute latency.

Quickstart • Architecture • Decision Primitives • Benchmarks • Formal Proofs • Ecosystem • Research Chronology • Türkçe Dokümantasyon

WERR Zero-Memory Reflex Engine Demo

⚡ 30-Second Quick Start

git clone https://github.com/pCwOrM/werr.git && cd werr
python examples/typed_reflex_quickstart.py

Observed Output:

allowed: False (p=0.0001, conf=0.9998)
route  : rate_limiter (conf=0.9913)
risk   : 3.00 / 3.0
seed   : theta=(-0.7399, 0.1334, 129.5) = 24 bytes

🧠 Codebase Knowledge Graph & Call-Flow

Explore the full AST dependency graph and call-flow architecture on a dedicated page (kept off the main README for fast scrolling):
docs/ARCHITECTURE_GRAPH.md · Interactive Graph: docs/architecture/graph.html · Call-Flow Explorer: docs/architecture/callflow.html


🏛️ The Paradigm

Contemporary artificial intelligence architectures rely predominantly on massive, dense parameter tensors. While effective for generative deliberation (System-2), deploying multi-gigabyte models for ultra-high-frequency reflex arbitration, edge gating, or on-chain logic incurs unsustainable computational latency, memory footprints, and non-deterministic hallucination risks.

WERR (Waves & Errors) introduces an orthogonal paradigm: Procedural Reflex Inference. Instead of storing billions of learned weights in memory, WERR treats decision boundaries as geometric invariants across the complex plane. Given an arbitrary natural language prompt, program state, or telemetry frame:

  1. Deterministic Projection: The context is projected onto bounded coordinates in the complex plane $\mathbb{C}$.
  2. Iterative Orbital Dynamics: The coordinate is evaluated through procedural polynomial escape trajectories ($z_{n+1} = z_n^2 + c$).
  3. Harmonic Reflex Extraction: Three immutable typed decision primitives are derived in $\le 0.3,\mu\text{s}$ on commodity CPUs or 32-byte storage slots on the Ethereum Virtual Machine (EVM).
Input Telemetry / Context
           │
           ▼
┌──────────────────────────────────────┐
│  Procedural Coordinate Projection    │  ◄── 24-byte coordinate seed
└──────────────────────────────────────┘
           │  c = x + iy ∈ ℂ
           ▼
┌──────────────────────────────────────┐
│   Orbital Complex Dynamics Engine    │  ◄── z_{n+1} = z_n^2 + c
└──────────────────────────────────────┘
           │  Escape radius & Lyapunov Lyapunov exponent
           ▼
┌─────────────────────────────────────────────────────────────┐
│                   Three Typed Primitives                    │
│   • noul   (Boolean binary gate: ALLOW / DENY)              │
│   • choice (Categorical quadrant: 0, 1, 2, 3)               │
│   • score  (Continuous severity metric: [0.0, 1.0])         │
└─────────────────────────────────────────────────────────────┘

⚡ Quickstart in 30 Seconds

WERR is published as a zero-dependency Python package and an open-source Rust/C core.

Installation

pip install werrio

Or install the latest release directly from GitHub:

pip install git+https://github.com/pCwOrM/werr.git

Basic Usage

import werr

# Initialize the engine (loads immutable coordinate seeds in memory)
engine = werr.WerrEngine()

# 1. Binary Reflex Gate (noul): returns True or False
is_safe = engine.noul(
    question="Is this transaction payload safe to sign?",
    context="Transfer 0.05 ETH to verified contract 0x7a25... on Base L2"
)

# 2. Discrete Route Selector (choice): returns categorical integer index [0, 1, 2, 3]
route = engine.choice(
    question="Select the optimal execution lane:",
    options=["FastLane Atlas", "Private Sequencer", "Public Mempool", "Off-chain Solver"]
)

# 3. Continuous Severity Metric (score): returns float in range [0.0, 1.0]
risk_score = engine.score(
    question="Evaluate liquidation cascade vulnerability under 15% collateral drop",
    context="MetaMorpho Steakhouse USDC Vault · Borrow: $4.73B · Health Factor: 1.04"
)

print(f"Safety Gate: {is_safe} | Selected Route: {route} | Risk: {risk_score:.4f}")

📐 The Three Typed Primitives

WERR avoids ambiguous natural-language string outputs in automated runtime pipelines. Every evaluation resolves to one of three strictly typed invariants:

Primitive Mathematical Nature Output Type Primary Industry Use-Case
noul Topological boundary separation bool High-throughput safety firewalls, agent action permits, guardrails.
choice Orthogonal quadrant partition int $\in {0, 1, 2, 3}$ Multi-lane transaction routing, policy triage, heuristic branch selection.
score Normalized Lyapunov escape velocity float $\in [0.0, 1.0]$ Dynamic DeFi fee computation, collateral shock scoring, anomaly ranking.

🔬 Mathematical & Formal Architecture

WERR operates across an orthogonal 8-state ($2^3$) parameter matrix (v0.5.1), balancing domain routing, lexical ontology, and harmonic tuning:

  • Zero-VRAM State Machine: Operates without neural network weights. Execution memory footprint is $\le 128,\text{KB}$ across runtime stacks.
  • Bounded Convergence: Escape bounds are rigorously proved; the engine cannot hang, loop indefinitely, or consume unbounded stack frames.
  • Deterministic Replicability: The identical seed and input context yield bit-exact outputs across x86-64 bare metal, ARM64 Apple Silicon, RISC-V edge microcontrollers, and EVM smart contracts.

🏆 Empirical Evaluation & Benchmarks

The procedural reflex paradigm has been validated across standardized benchmarks and real-time execution environments:

Benchmark / Environment Task & Domain Baseline / Competitor WERR Result Performance Multiplier
WindTunnel WebMCP 49 Complex Web Automation Scenarios LLM-based autonomous agents 49 / 49 Solved (100%) 0 tokens consumed, $\le 1,\text{ms}$ step latency
Snake AI Real-Time Continuous 60 FPS trajectory reflex Laya-MLX (Dense PyTorch neural net) Surpasses MLX at 600 steps $40\times$ faster decision loop, zero GPU load
Jevenator 2 Vision Real-time object tracking & triage Maisa djev neural classifier Competitive parity $99.98%$ reduction in memory footprint
Base Morpho SVR Multi-call liquidation telemetry Standard mempool searchers 94.38% value recapture $\le 0.3,\text{ms}$ solver margin compression

📊 Historical Benchmark Archive: Complete ablation studies, JevBench grand matrix versions (v1.1 to v1.4.1), and 40-core Xeon gauntlet logs are recorded in RESEARCH_CHRONOLOGY.md.


🛡️ Formal Verification (Lean 4)

The core topological invariants, boundary escape inequalities, and discrete partition theorems of WERR are formally verified in the Lean 4 interactive theorem prover with 0 sorry statements.

  • Repository: pCwOrM/gap-lean4-port
  • Preprint / Monograph: Zenodo DOI: 10.5281/zenodo.22974544
  • Scope: Machine-checked formal verification of Schreier-Sims sifting, cyclic quotient stability, and boundary containment under bounded perturbation.

🌐 The WERR Ecosystem

WERR serves as the foundational mathematical engine across a tri-fold architectural stack:

                          ┌─────────────────────────────┐
                          │            WERR             │
                          │   Core Mathematical Engine  │
                          │  Zero-Memory System-1 Reflex │
                          └──────────────┬──────────────┘
                                         │
                 ┌───────────────────────┴───────────────────────┐
                 ▼                                               ▼
  ┌─────────────────────────────┐                 ┌─────────────────────────────┐
  │          Werracle           │                 │           answerr           │
  │   On-Chain Decision Oracle  │                 │  Dual-Cognition Workspace   │
  │  DeFi Risk Radar & DaaS     │                 │ Natural Language Gating API │
  │   https://radar.werracle.com│                 │     https://answerr.me      │
  └─────────────────────────────┘                 └─────────────────────────────┘
  • werr: Core algorithm, coordinate seeds, and native Python/Rust runtime libraries.
  • werracle: Smart contract implementations, Q16.16 fixed-point Solidity escape math, Uniswap v4 hook templates, and Werracle Risk Radar.
  • answerr: Dual-cognition workspace bridging System-2 deliberate natural language policy compilation with WERR System-1 deterministic execution.

📄 Academic Citation & Archival References

If you cite or replicate this research in scientific publications, please use the following citation metadata:

@software{dagli2026werr,
  author       = {Dagli, Volkan and Dagli, Zerrin and Dagli, Daghan},
  title        = {{werr: Zero-Memory Fractal System-One Decision Engine (Waves & Errors)}},
  month        = oct,
  year         = 2026,
  publisher    = {Zenodo},
  version      = {v0.5.1},
  doi          = {10.5281/zenodo.22774934},
  url          = {https://github.com/pCwOrM/werr}
}


🏛️ Associated Formal Verification, World Records & Scientific Corpus

All monographs, formal Lean 4 specifications, and empirical datasets across the WERR & ITouch Systems Research Group are permanently archived on CERN Zenodo, arXiv, Elsevier SSRN, and Hugging Face.
(Primary links use CERN Zenodo Concept DOIs / Çatı DOI, which automatically resolve to the latest published version while preserving exact version-pinned reproducibility.)

# Pillar / Monograph Core Contribution & Focus 👑 Concept DOI (Always Latest) 📌 Latest Version DOI arXiv / SSRN / Hugging Face & Verification Status Primary Repository
01 Paper 1: FNS Constant-Storage Procedural Weight Derivation via Complex Quadratic Boundary Dynamics (v4.0) 10.5281/zenodo.22774934 10.5281/zenodo.24495977 arXiv:2611.32393 [cs.LG] • SSRN: 7659198 • 4 Apertures, 10-Fold CV (10.7x–129x Flash) pCwOrM/fractal-neural-synthesis
02 Paper 2: OED Orbital Error Dynamics, Ephemeral Parameter Resonance & CD4+ Gating (v2) 10.5281/zenodo.22896855 10.5281/zenodo.22900465 arXiv:2609.30115 • 🤗 HF Paper (Verified) • TR 2026/016285 pCwOrM/fractal-neural-synthesis
03 Paper 3: WERR Map Universal Natural Language Decision Map & Real-Time Edge Triage (v2) 10.5281/zenodo.22867425 10.5281/zenodo.22939253 arXiv:2609.25498 • 🤗 HF Paper • 🤗 HF Dataset pCwOrM/werr • pCwOrM/answerr
04 Paper 4: Werracle Sub-Cent Intra-Block AI Reflex Oracles & Flash-Loan Circuit Breakers (v1) 10.5281/zenodo.22942598 10.5281/zenodo.22942599 arXiv:2609.30719 • SSRN: 7626279 • 🤗 HF Paper pCwOrM/werracle • pCwOrM/werrealm
05 Paper 5: Formal Lean 4 Zero-Storage Procedural Synthesis: Lean 4 Verification & 40-Core Validation (v2) 10.5281/zenodo.22974543 10.5281/zenodo.22983889 arXiv:2609.33066 • 🤗 HF Paper • Lean 4 (10 Theorems, 0 sorry) pCwOrM/werr • pCwOrM/werracle
06 Paper 6: GAP-Lean4 Machine-Checked Computational Group Theory: Schreier-Sims & BSGS Sifting (v1) 10.5281/zenodo.23045503 10.5281/zenodo.23045504 arXiv:2609.38492 • 🤗 HF Paper • Lean 4 (35 Theorems, 0 sorry) pCwOrM/gap-lean4-port
07 Paper 7: Black Hole v5 Unitary Black Hole Page Curve via Dynamical Horizon Orbifolds & GKP Stabilizers (v5) 10.5281/zenodo.22961999 10.5281/zenodo.23072120 S(t=1) = 0.00 · Tr(ρ²) = 1.00 · R² = 0.9822 · 573× Stress Quench • Lean 4 (10 Theorems) pCwOrM/fractal-neural-synthesis • pCwOrM/werr
08 Paper 8: WerrSoma Bio-Synthetic Neuromorphic Interfacing with 158K-Neuron Drosophila Connectome (v2) 10.5281/zenodo.22996625 10.5281/zenodo.23072929 arXiv:submit/8161759 • Live 3D Portal (werrsoma.answerr.me) • TR 2026/016633 Lexovian/WerrSoma
09 Paper 9: WerreduR Procedural Pedagogy: Resolving the Saturn School Disequilibrium Paradox (v4) 10.5281/zenodo.22999420 10.5281/zenodo.23128224 SSRN: 7641538 (Distributed) • Lean 4 (7 Theorems, 0 sorry) • Live Portal jesmaat/WerreduR • pCwOrM/WerreduR
10 Paper 10: Schönhage Bipartite Carrier Compression in Schönhage Trilinear Multiplication Tensors (v1) 10.5281/zenodo.23268579 10.5281/zenodo.23268580 arXiv:2610.14263 • 🤗 HF Paper • CrocSwap #226 (50d76881) pCwOrM/integer-mult-bounds
11 Paper 11: Güneş Dili Deterministic Morpho-Semantic Tokenization & Algebraic Morphotactics in Lean 4 (v1) 10.5281/zenodo.23273005 10.5281/zenodo.23273006 arXiv:submit/8248674 • Lean 4 (4 Theorems, 0 sorry) • Live Studio pCwOrM/gunes-dili
12 Paper 12: Niemeier A₈³ Machine-Certified 24D Niemeier Lattice A₈³, K3 Hodge Duality & Umbral Moonshine (v1) 10.5281/zenodo.23324066 10.5281/zenodo.23324067 Lean 4 (0 sorry, 0 axioms) • χ(X) = 24 · order(G_glue) = 27 · ℓ = 9 pCwOrM/niemeier-a8-umbral-moonshine
13 Paper 13: GDT v3.0 Machine-Certified Lean 4 Formalization of the General Divisor Theorem (v2) 10.5281/zenodo.23316068 10.5281/zenodo.23425590 Lean 4 (81 Theorems, 0 sorry) • v1 DOI: 10.5281/zenodo.23316070 pCwOrM/general-divisor-theorem
14 Paper 14: Elliptic Sieve Multi-Layer Algebraic Sieve & Vélu Isogeny Engine: 230 Curves on NSF ICARM (v1) 10.5281/zenodo.23436282 10.5281/zenodo.23436283 NSF ICARM Leaderboard (user/114): 30x #1 Gold Records, 80 Top-3, 100% log N pCwOrM/werr-elliptic-sieve
15 Paper 15: Empirical OEV Empirical OEV & Liquidation Dynamics: Chainlink SVR on Base & Ethereum L1 (v2) 10.5281/zenodo.23623588 10.5281/zenodo.23642090 🤗 HF Dataset (1.16k+ views, 126 likes) • 94.4% Aggregate / 98.3% Median SVR Recapture pCwOrM/werracle • pCwOrM/werrealm
16 Paper 16: Holomorphic Collatz Spectral Stability, Fatou Basin Contraction & Multipliers in Holomorphic Collatz Dynamics (v1) 10.5281/zenodo.24060393 10.5281/zenodo.24060394 arXiv:2611.11641 • Lean 4 (20 Theorems, 0 sorry, CollatzAttractor.lean) • μ_f({1,2}) = 3/4 < 1 pCwOrM/general-divisor-theorem • pCwOrM/fractal-neural-synthesis
17 Paper 17: GAP-Lean4 Phase 3 Permutation Group Orders (GAP-0190) & Orbit-Stabilizer BFS (GAP-0247) in Lean 4 (v0.3.0) 10.5281/zenodo.24448458 10.5281/zenodo.24448459 Lean 4 (30 Audited, 0 sorry, Rung 3) • Rung 4a (100/100 GAP 4.12.1 Witnesses) Lexovian/gap-lean4-port
HW Edge Robotics Core Zero-Memory Embedded C/C++11 System-1 Reflex Kernel (WerrCoreEdge.h v0.5.1) 10.5281/zenodo.22867425 10.5281/zenodo.22939253 ATmega328P / ESP32 / STM32 (0 Bytes Heap, <128B Stack, TR 2026/016633) pCwOrM/WERRobotics

🏆 Global Records, Formal Proofs, Curated Awesome Merges & On-Chain Infrastructure

1. Certified Mathematical Records & Formal Verification (0 sorry)

  • 🥇 NSF ICARM Elliptic Curve Rank Leaderboard (elliptic-rank.icarm.cloud/user/114): 230 certified high-rank elliptic curves (#4308–#4537) over $\mathbb{Q}$ with 100% complete prime conductor factorization ($\log N$) up to Rank $\ge 19$ (#4323), achieving 30 First-Place (#1 Gold) Records, 80 Podium (Top-3), and 418 Top-10 placements across 43 categories (building upon the foundational fibration families of Elkies, Dujella, Rubinstein, and Klagsbrun; supported under NSF Grant DMS-2425401).
  • 🥇 Schönhage Trilinear Multiplication Tensor Bound (arXiv:2610.14263 • CrocSwap/integer-mult-bounds#226): Constructive 15-round bipartite carrier matching at dimensions $h=23, 25$ eliminating 185 carrier roles and 377,890 physical wires ($W = 177,284,805 \to 176,906,915$), certifying $\kappa = 826,215,307 / 20,000,000,000,000 \approx 4.131076535 \times 10^{-5}$ ($1.377\times$ net gain over PR #49), formally incorporated into CrocSwap/integer-mult-bounds (commit 50d76881) and verified in Lean 4 (0 sorry).
  • 📐 190+ Machine-Checked Theorems in Lean 4 (0 sorry, 0 unproven axioms):
    • Holomorphic Collatz Dynamics (CollatzAttractor.lean): 20 theorems/lemmas (0 sorry) certifying multiplier cohomology invariance ($\mu_f({1,2}) = 3/4 &lt; 1$), Koenigs linearization jets, negative Schwarzian derivative, and 2-adic Haar–Fatou resonance (arXiv:2611.11641 • 10.5281/zenodo.24060394).
    • General Divisor Theorem (GDT v3.0): 81 theorems/lemmas (0 sorry) formalizing Dan Hawkley's residue density framework (10.5281/zenodo.23316068).
    • Computational Group Theory (gap-lean4-port): 35 theorems (0 sorry) formalizing Charles Sims' Schreier-Sims stabilizer chains (GAP-0299), backtrack ordered partitions (GAP-0332), and modular ring inverses (GAP-0331) (arXiv:2609.38492).
    • Procedural Boundary Synthesis & EVM/Cairo Fixed-Point Bounds: 40+10 theorems (WerracleProof.lean, 0 sorry) verifying ZMod 9 ($\mathbb{Z}/9\mathbb{Z}$) principal ideal closure ($\mathcal{I}_3 = {0,3,6}$), Q16.16 overflow safety, and unitary Page curve S-matrix conservation (arXiv:2609.33066).
    • 24D Niemeier Lattice $A_8^3$, WerreduR & Güneş Dili: Complete formal specifications (0 sorry) across lattice unimodularity ($\chi=24, \ell=9$), horizon complementarity ($B(t)+S(t)=1$), and deterministic morphological parsing.

2. Curated Ecosystem Recognitions & Benchmark Evaluations

3. Sovereign On-Chain Deployments (Werrium / $WERR), Multi-Chain Testnets & Grant Pipelines


⚖️ License & Intellectual Property

  • Kaggle / Google Gemma 4 Competition Apache 2.0 Exception (gemma4_swe_agent/): All code, declarative ADK YAML configurations, dual-process routing implementations, verification bridges, and tests inside gemma4_swe_agent/, together with the Competition interfaces required to reproduce our Google - The Gemma 4 Developer Agent Paper Track submission (DOI: 10.34740/kaggle/w/125932), are explicitly dual-licensed without commercial use restriction under the OSI-approved Apache License, Version 2.0 (see LICENSE Additional Use Grant Section 4).
  • Open-Science, Educational & Evaluation Use (Core Repository): All remaining components of the Licensed Work (Werracle smart contracts, OEV/DeFi oracles, answerr.me SaaS, and general commercial deployments) remain free to run, inspect, benchmark, test, fork, and replicate for non-commercial research and personal evaluation under the Business Source License 1.1 (BSL 1.1) until 2030-01-01.
  • Commercial Operations & Production Licensing: Any commercial production use, hosted SaaS deployment, or proprietary redistribution requires a commercial license from the Licensor:
    • Licensor: ITOUCH BİLİŞİM SİSTEMLERİ MÜHENDİSLİK DANIŞMANLIK SANAYİ VE TİCARET LİMİTED ŞİRKETİ (ITouch Systems · Cukurova University Technopark, Adana, Türkiye).
    • Scientific Co-Authors & Inventors: Volkan Dagli (Anadolu University), Dr. Zerrin Dagli (Mersin University — Academic Advisor, Co-Author & Co-Inventor), Daghan Dagli (Toros University — Co-Author & Co-Inventor).
    • Chain of Title & Assignment: The scientific co-authors have irrevocably assigned administrative and IP management authority to Volkan Dagli, who has transferred exclusive global commercial licensing and operational rights to ITouch Systems.
    • Trademarks: WERR™, Werracle™, answerr™, and WerrSoma™ are trademarks owned exclusively by ITouch Systems.
    • Patent Applications: TÜRKPATENT TR 2026/016285 & TR 2026/016633.
    • Inquiries: contact@werracle.com · ask@answerr.me

Developed by ITouch Systems · Cukurova University Technopark, Adana, Turkey
Copyright © 2026 ITouch Bilişim Sistemleri Ltd. Şti. All rights reserved.

About

Zero-memory System-1 decision engine & TypeSafe Jev runtime powered by Procedural Boundary Dynamics (The Zero-VRAM Gauntlet).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages