Research-Stack/0-Core-Formalism
allaun 67e77d8f24 feat(lean,infra): SilverSight-first offline PIST trace classifier
Moves all classification authority from Python into Lean:

- Adds `0-Core-Formalism/lean/Semantics/PistClassifyTrace.lean` executable.
  Reads a raw trace JSON and emits spectral radius, RRC shape, and tactic
  family using `Semantics.PIST.Spectral` and `Semantics.PIST.Classify`.
- Registers `pist-classify-trace` in `lakefile.toml`.
- Fixes `Semantics.PIST.Spectral` power iteration to handle directed
  transition matrices:
  - `symmetrize` now preserves half-integer weights as Q16_16 raw values.
  - `matVecMul` uses saturated Q16_16 arithmetic to prevent overflow.
- Rewrites `4-Infrastructure/shim/pist_trace_classify_offline.py` as a pure
  I/O wrapper: reads JSON, calls the Lean classifier, optionally calls
  `rrc-watchdog`, and emits the combined JSON. Removes Python-side spectral
  computation, shape thresholds, tactic heuristic, and KNN.
- Updates `AGENTS.md` and `4-Infrastructure/AGENTS.md` with the new build
  baseline and shim contract.

Verification:
- `lake build` → 8604 jobs, 0 errors
- Canary trace outputs match previous Python outputs to within Q16_16 rounding
  (e.g., apply_chain λ_q16 = 59044 vs 59045).
- `python3 -m py_compile` on the rewritten shim passes.
2026-06-22 01:11:17 -05:00
..
core fix(adversarial-review): resolve 35 critical coding bugs across 8 subsystems 2026-05-31 23:38:03 -05:00
lean feat(lean,infra): SilverSight-first offline PIST trace classifier 2026-06-22 01:11:17 -05:00
otom fix(lean): complete projectionOrdering proof in GeometricCompressionWorkspace 2026-06-18 15:06:50 -05:00
receipts docs: add bio optical witness living light equations 2026-05-09 20:53:51 -05:00
rust/ftdi_gimbal initial: sovereign research stack (consolidated, weightless, and lfs-optimized) 2026-05-04 18:11:36 -05:00
scripts chore: commit accumulated working tree changes 2026-05-30 00:10:02 -05:00
README.md docs: refresh READMEs, AGENTS.md, and project maps for recent Lean surface 2026-06-20 20:34:09 -05:00

0-Core-Formalism

Purpose: Formal foundations for the entire Research Stack — Lean modules, bind primitive, Triumvirate consensus, core source.

No external dependencies. All other layers depend on this.

Contents (Target)

Source Destination
0-Core-Formalism/lean/Semantics/ 0-Core-Formalism/lean/Semantics/
core/ 0-Core-Formalism/core/

Concepts

  • bind — State → (State → Action) → State
  • TriumvirateClock — ternary consensus (ADD/PAUSE/SUBTRACT)
  • Builder/Judge/Warden — roles mapped to hardware registers
  • OTOM — Ordered Transformation & Orchestration Model

Build

cd "0-Core-Formalism/lean/Semantics"
lake build

Current baseline: lake build reports 3314 jobs, 0 errors.

Recent Additions

Recently added/blessed Lean/Semantics modules:

  • Semantics.SDPVerify
  • Semantics.GoormaghtighCert
  • Semantics.HachimojiManifoldAxiom / Semantics.HachimojiSubstitution
  • Semantics.GeneticBraidBridge
  • Semantics.SieveLemmas
  • Semantics.InteractionGraphSidon

Fixed-Point Constraint

Core compute paths use Q16_16 fixed-point arithmetic. Float is not allowed in compute paths; ofFloat is only permitted at the external boundary (JSON parsing, sensor input) and must be immediately bracketed to Q16_16.

Dependency Graph / Mathblob Insight

The dependency graph and Gremlin mathblob work serve as documentation and insight tooling for surfacing module relationships and formal-structure context within the Semantics surface.