Downloads ยท 30 days
0
Codfskitraceon/TRIGNUM-300M
TRIGNUM-300M is a machine learning model from Codfskitraceon. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads ยท 30 days
0
Access
Public
Updated Feb 25, 2026
Repo size
โ
Likes
0
Public
Click a slice to open those files.
.py63.8 KB ยท 71%
From the Hugging Face model README
<img src="assets/roadmap_architecture.jpg" width="800" alt="TRIGNUM-300M Architecture Flowchart" /> </div>"You wouldn't let a plane take off without a pre-flight check.
Why are we letting AI agents act without one?"
TRIGNUM-300M is a zero-model reasoning integrity validator for LLM outputs. It catches structural logic failures โ contradictions, circular reasoning, non-sequiturs โ before an AI agent acts on them.
from trignum_core.subtractive_filter import SubtractiveFilter
sf = SubtractiveFilter()
result = sf.apply(agent_output)
if result.illogics_found:
agent.halt(reason=result.illogics_found)
# T-CHIP glows RED ๐ด โ Human review required
else:
agent.execute()
# T-CHIP glows BLUE ๐ต โ Cleared for takeoff
No LLM. No API. No training data. ~300 lines of Python. <1ms.
We expanded our evaluation to 58,000+ real LLM outputs including a new 517-sample curated dataset for structural reasoning. Honest results:
| Benchmark | Samples | Precision | Recall | F1 | Speed |
|---|---|---|---|---|---|
| Structural illogic (curated) | 517 | 100% | 98.9% | 99.5% | <1ms |
| HaluEval (full dataset) | 58,293 | 60% | 2.1% | 4.0% | 706ms |
That's the point. There are 100 tools for fact-checking. There are zero tools for reasoning-checking. Until now.
| Task | n | Precision | Recall | F1 |
|---|---|---|---|---|
| QA | 18,316 | 83.3% | 0.25% | 0.50% |
| Dialogue | 19,977 | 60.1% | 4.38% | 8.16% |
| Summarization | 20,000 | 57.4% | 1.60% | 3.11% |
Throughput: 146,866 samples/second โ orders of magnitude faster than LLM-based validation.
A pre-flight checklist doesn't verify that London exists. It verifies that:
The Subtractive Filter does the same for AI reasoning:
LLM Output โ Subtractive Filter โ [PASS] ๐ต โ Agent Executes
โ [FAIL] ๐ด โ Agent Halts โ Human Review
In the context of the recent shift towards Agentic Reasoning, autonomous LLMs are moving from static prompts to dynamic thought-action loops involving planning, tool-use, and multi-agent collaboration.
Current systems rely heavily on probabilistic models to act as the "Critic/Evaluator" or use "Validator-Driven Feedback" via unit tests for code or simulators for robotics. But there has been no validator for pure logic. If an agent hallucinates a non-sequitur or circular justification during its internal planning phase, the error cascades.
TRIGNUM-300M fills this exact gap. It acts as a deterministic, <1ms Validator-Driven Feedback gate. It halts execution if the agent's internal thought (zt) contains a structural illogic, providing an immediate failure signal (rt = 0) before the agent commits to an irreversible external action (at).
Three faces acting as magnetic poles for data separation:
| Face | Role | What It Does |
|---|---|---|
| ฮฑ (Logic) | Truth detection | Identifies structurally sound reasoning |
| ฮฒ (Illogic) | Error detection | Catches contradictions, circular logic, non-sequiturs |
| ฮณ (Context) | Human grounding | Anchors output to human intent |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ T-CHIP [v.300M] โ
โ โ
โ ๐ต Blue = Logic Stable (Cleared for Takeoff) โ
โ ๐ด Red = Illogic Detected (THE FREEZE) โ
โ ๐ก Gold = Human Pulse Locked (Sovereign Override) โ
โ โ
โ Response time: <1ms | False alarms: 0% (structural) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Four detection layers, all pattern-based:
| Layer | Catches | Method |
|---|---|---|
| Contradiction | "X is always true. X is never true." | Antonym pairs, negation patterns |
| Circular Logic | A proves B proves A | Reference chain analysis |
| Non-Sequitur | "Therefore X" without premises | Causal connective analysis |
| Depth Check | Claims without any reasoning | Assertion density scoring |
TRIGNUM-300M-TCHIP/
โโโ src/
โ โโโ trignum_core/ # Core Python library
โ โโโ pyramid.py # Trignum Pyramid (3 magnetic faces)
โ โโโ tchip.py # T-CHIP (glow states)
โ โโโ subtractive_filter.py # โ
The Subtractive Filter
โ โโโ human_pulse.py # Human sovereignty layer
โ โโโ magnetic_trillage.py # Data separation
โโโ tests/ # 34 unit tests (all passing)
โโโ benchmarks/
โ โโโ hallucination_benchmark.py # Curated structural test
โ โโโ full_halueval_benchmark.py # Full 58K HaluEval test
โ โโโ results.json # Structural benchmark results
โ โโโ full_halueval_results.json # Full HaluEval results
โโโ demo/
โ โโโ index.html # Three.js 3D interactive demo
โโโ paper/
โ โโโ TRIGNUM_300M_Position_Paper.md # Position paper
โโโ docs/
โ โโโ theory/ # 6 foundational theory documents
โโโ T-CHIP CLEARED FOR TAKEOFF.md # The pitch
โโโ ROADMAP.md # 2-quarter development plan
# Clone
git clone https://github.com/trace-on-lab/trignum-300m.git
cd trignum-300m
# Install
pip install -r requirements.txt
pip install -e .
# Run the structural benchmark
python benchmarks/hallucination_benchmark.py
# Run the full HaluEval benchmark (downloads ~13MB of data)
python benchmarks/full_halueval_benchmark.py
# Run tests
pytest tests/ -v
We searched arXiv, ResearchGate, ACL Anthology, and Semantic Scholar. Every existing reasoning validation system requires model inference:
| System | Requires Model | Validates Reasoning |
|---|---|---|
| VerifyLLM (2025) | โ Yes | Partially |
| ContraGen | โ Yes | Partially |
| Process Supervision (OpenAI) | โ Yes | Yes |
| Guardrails AI | โ Configurable | No (content) |
| Subtractive Filter | โ No | โ Yes |
Existing work uses LLMs to check LLMs. TRIGNUM uses logic to check LLMs.
Read the full analysis in our position paper.
TRIGNUM-300M serves as Phase 1 ("Technical A Priori Validation") for Trignumental Quantum Phase Estimation (TQPE).
In our groundbreaking case study estimating the ground state energy of the Hโ molecule, TRIGNUM successfully validated the physical consistency and structural logic of the quantum circuit before execution. By acting as the preliminary gatekeeper, TRIGNUM ensured that no quantum resources were wasted on structurally ill-formed configurations, enabling an epistemic confidence score of 82.8% on the final estimate (-1.1384 Ha).
Read the full BUILDING THE BRIDGE paper on Trignumentality and TQPE in the foundational Trignumentality repository.
| Document | Description |
|---|---|
| Core Postulate | The fundamental axioms of Trignum |
| Three Faces | ฮฑ (Logic), ฮฒ (Illogic), ฮณ (Context) |
| Magnetic Trillage | Data separation mechanism |
| T-CHIP Spec | The Tensor Character in detail |
| Cold State Hardware | Hardware implications |
| Hallucination Paradox | Reframing the "Big Monster" |
| Position Paper | Full academic paper with benchmarks |
| Roadmap | 2-quarter development plan |
| Gem | Wisdom |
|---|---|
| GEM 1 | "The Human Pulse is the Master Clock" |
| GEM 2 | "The Illogic is the Compass" |
| GEM 3 | "Magnetic Trillage Over Brute Force" |
| GEM 4 | "The Hallucination is the Raw Material" |
| GEM 5 | "T-CHIP is the Mirror" |
See CONTRIBUTING.md for guidelines.
MIT License โ see LICENSE.
TRACE ON LAB
๐ง [email protected]
"The most dangerous AI failure is not a wrong fact. It is reasoning that sounds right but isn't."
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐งฒ TRACE ON LAB โ TRIGNUM-300M โ v.300M โ
โ โ
โ The Pre-Flight Check for Autonomous AI. โ
โ Zero models. Zero API calls. 146,866 samples/second. โ
โ โ
โ ๐ต T-CHIP: CLEARED FOR TAKEOFF. โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โญ Star this repo if you believe AI should check its logic before it acts.