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> |
||
|---|---|---|
| .. | ||
| conversions/hardware | ||
| external/OTOM | ||
| LeanGPT | ||
| Semantics | ||
| CHAIN_ALL_REVIEW_REPORT.md | ||