Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


marp: true theme: default paginate: true backgroundColor: #0d1117 color: #c9d1d9 style: | section { font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Helvetica, Arial, sans-serif; font-size: 28px; } h1 { color: #58a6ff; font-size: 1.6em; } h2 { color: #c9d1d9; font-size: 1.3em; } a { color: #58a6ff; } table { font-size: 0.85em; width: 100%; border-collapse: collapse; background: transparent; } th { color: #58a6ff; font-size: 0.9em; border-bottom: 2px solid #30363d; background: #161b22; padding: 0.5em 0.7em; } td { color: #e6edf3; padding: 0.5em 0.7em; border-bottom: 1px solid #21262d; background: #0d1117; } tr:nth-child(even) td { background: #161b22; } code { background: #161b22; color: #e6edf3; padding: 0.1em 0.4em; border-radius: 4px; } pre { background: #161b22 !important; border: 1px solid #30363d; border-radius: 6px; padding: 1em; } pre code { background: transparent !important; } strong { color: #f0f6fc; } em { color: #8b949e; } .pass { color: #3fb950; } .fail { color: #f85149; } .ignore { color: #d29922; } section::after

pr4xis

Axiomatic intelligence.

Doing the right thing — with proof.

“Every good regulator of a system must be a model of that system.” — Conant & Ashby (1970)

Logger
i-am-logger

What is pr4xis?

Aristotle named three kinds of knowing:

  • episteme — knowing how things ARE (science)
  • techne — knowing how to MAKE things (technology)
  • praxisthe doing itself, done well

pr4xis is the doing.

Domain knowledge lives in composable ontologies. Not in mechanical processing logic. No parser-with-special-cases, no rules with hardcoded strings. Every transformation is a proven functor. Every claim traces to an axiom.


How it works

Define rules (Ontology) → Check rules (Engine) → Prove rules hold (Tests)
         ↑                                              |
         └──────────── feedback ────────────────────────┘

The ontology IS the model. The engine IS a control system. Conant-Ashby (1970) proven in code: Model → Ontology.


The Architecture

LayerWhat it does
LogicAxioms, propositions, inference
CategoryEntities, relationships, composition, functors
OntologyDomain knowledge, reasoning patterns, DOLCE
EngineSituations, actions, preconditions, enforcement
CodegenDeclarative ontology delivery — build-time, async runtime, mmap (proven equivalent as functors)

No domain logic in framework code. Adding chess, physics, or English changes nothing in the engine.


Domains compose via functors

If Chess IS EventDriven (functor) and EventDriven IS Concurrent (functor), then Chess IS Concurrent (composition). The proof is automatic.

FunctorProof
Traffic → SystemsIdentity + composition preserved
Chess → EventDrivenIdentity + composition preserved
Chess → ConcurrentComposed from above
Dialogue → CommunicationIdentity + composition preserved
Control → EnginePlant→Situation, Model→Ontology
Lambek → PregroupParsing preserved across type systems

Natural Language Pipeline

Text → Language::lexical_lookup → Pregroup types → Contract → Semantics → Response
  • Language trait — language-agnostic. English, Hebrew, same code.
  • Pregroup grammar — parsing as group algebra (Lambek 1999)
  • Montague functor — syntax → semantics (proven)
  • Zero hardcoded words — everything through the ontology

np · n^l · n · np^r · s → contract → s — “the dog runs” parsed by algebra.


Turing Test Benchmark

Questions from real competitions (Loebner Prize, Winograd Schema Challenge).

LevelStatusWhat’s needed
Taxonomy (“is a dog a mammal?”)3 PASSWordNet (107K concepts)
Grammar (“the dog runs”)2 PENDINGPregroup pipeline
Factual (“capital of France?”)3 PENDINGGeography, Literature, Mereology
Reasoning (“brick weight puzzle”)2 PENDINGArithmetic ontology
Winograd (“trophy too big”)3 PENDINGPhysical world + DRT
Common sense (“drop an egg?”)2 PENDINGMaterial/sensation ontology
Social (“how are you?”)1 PENDINGSocial dialogue ontology
Meta (“are you a computer?”)2 PENDINGSelf-model + metacognition

Every pending test = a research task. When the ontology is built, the test passes.


pr4xis vs LLMs

LLMspr4xis
How it knowsLearned from training dataDerived from accepted axioms
CorrectnessApproximate — best guess from patternsChecked — every claim verified against its axioms
HallucinationInherent — no ground truthEvery claim traces to a proof; where the axioms don’t reach, it abstains
DeterminismStochasticDeterministic — same input, same derivation
TraceabilityOpaque weightsFull proof path back to axioms
When wrongConfidently wrong, hard to find whyThe failing axiom is named
Cross-domain reasoningImplicit blendingProven connections between domains
Missing knowledgeDoesn’t know what it doesn’t knowDetects gaps automatically

Contributions

pr4xis architecture — a synthesis built on a sixty-year intellectual lineage:

  1. Domain knowledge in composable ontologies — every domain is a category in the formal sense (Guarino 1998 framing; Spivak ologs as prior art)
  2. Functorial composition between behavioral ontologies — extending Spivak’s data-migration pattern from schemas to behavior
  3. Conant-Ashby as architectural justification — the engine is a model because the theorem requires it
  4. DOLCE as upper layer with category theory as the substrate — both used together
  5. Composable proof chains — if A IS B and B IS C, then A IS C, by functor composition

Academic Foundation

50+ papers, all downloaded and cited:

  • Category theory — Mac Lane, Awodey, Spivak (ologs)
  • Control systems — Wiener, Ashby, Conant-Ashby, Powers
  • Formal ontology — DOLCE, Guarino, Gangemi (ODPs)
  • Linguistics — Lambek, Montague, Kamp (DRT), Steedman (CCG)
  • Information — Shannon, Damerau, Brill & Moore
  • Metacognition — von Foerster, Spencer-Brown

Full lineage: docs/understand/foundations.md


Live Demo

~107,000 WordNet concepts. Running in your browser right now. No server, no GPU, no API key.


What’s next

  • More ontologies — each grammar gap and missing concept is a research task
  • More functors — importing BioPortal, the Gene Ontology, OBO Foundry, DOLCE as composable categories
  • Hebrew — a second language proves the architecture is language-agnostic
  • Drafts in flight — three research papers on bioelectricity, gap detection, and ontology diagnostics; see docs/research/papers/

The name pr4xis is not marketing. It is a claim backed by cargo test --workspace.


Thank you

Logger
i-am-logger

github.com/i-am-logger/pr4xis

Axiomatic intelligence. Domain knowledge in composable ontologies. Every claim has a proof.