mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
Adds Semantics/RRC/ReceiptDensity.lean — a new Lean module that ports the entire scoring pipeline from pist_receipt_density_injector.py into Lean-native Q16_16 fixed-point arithmetic: spectralQuality ← spectral_quality() (0.24/0.18/0.18/0.12/0.12/0.16 weights) shapeAgreement ← shape_agreement() (exact=1.0, proxy=0.82, any=0.35) axisScore ← axis_score() (hits/4, capped at 1.0) statusScore ← status_score() (BLOCKED=0, HOLD=0.12 … VERIFIED=0.84) computeDensity ← compute_density() (density: 26/24/26/24, confidence: 20/20/28/32) No Float in compute paths — all arithmetic is Q16_16 (raw Int, scale=65536). Two #eval witnesses verify CANDIDATE/VERIFIED case outputs. Build: lake build Compiler → 3311 jobs, 0 errors (baseline preserved). Update shim BOUNDARY comments: pist_receipt_density_injector.py → Semantics.RRC.ReceiptDensity rrc_pist_shape_alignment.py → Semantics.RRC.Emit Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| core | ||
| lean | ||
| otom | ||
| receipts | ||
| rust/ftdi_gimbal | ||
| README.md | ||
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"
lake build