Brandon Schneider
|
f9b5ac25fb
|
fix(lean+shim): enforce lean-coding rules across audit surface
## Lean fixes
- RRCLogogramProjection.lean: replace `native_decide` → `decide` in 5
compiler-surface theorem witnesses (semantic_tear_projects_after_repair,
semantic_tear_does_not_merge, semantic_tear_uses_quarantine_lane,
unrepaired_tear_does_not_project, ordinary_logogram_projects_and_merges).
All 5 pass under `decide`; no logic change.
- PistSimulation.lean: add `-- expect: <value>` to every `#eval`/`#eval!`
block across §6–§11 (~104 annotation lines). Document 8 undocumented
`ofRawInt` magic integers in fixtureSpectralWindow (10.0, 20.0, 100.0,
40.0, 20.0, 10.0, 5.0, 5.0 × 65536).
- DynamicCanal.lean: add `-- expect:` to all 15 #eval witness blocks in
§17 (fixed-point constructors, DIAT encoding, coarse-graining tests).
- MISignal.lean: add `-- expect: 131072` to both #eval witnesses.
- Functions/BracketedCalculus.lean: add `-- expect: 327680` to #eval.
- AVMIsa/Emit.lean, RRC/Emit.lean, RRC/ReceiptDensity.lean, ReceiptCore.lean:
previously-staged `-- expect:` additions (from prior session) carried
forward in this commit.
## Python shim fixes
- Add `# PARTIAL BOUNDARY: contains domain logic; not a provable surface.
Port to Lean/RRC before treating as authoritative.` to 9 shim files:
pist_trace_classify_mcp.py, genus0_sphere_shell_demo.py,
routing_benchmark.py, route_repair_v14a.py, pist_prove_and_classify.py,
label_canary_theorems.py, validate_rrc_predictions.py,
pist_receipt_density_injector.py, rrc_pist_shape_alignment.py.
## Build baseline
lake build Compiler → 3311 jobs, 0 errors
lake build → 3567 jobs, 0 errors
Generated with [Devin](https://cli.devin.ai/docs)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
2026-05-26 23:17:40 -05:00 |
|
Brandon Schneider
|
6ff00489d7
|
feat(pist): receipt canonicalization v2 with structural math features
- Parses equation names into operators, variables, AST metrics, proof metrics
- Richer canonical hash → more distinct crossing matrices
- Separation ratio improved: 1.007 → 1.051 (within/between class distance)
- CognitiveLoadField accuracy: 44.4% → 50.0%
- Fold/cusp confusion (CLF → SRC): 9/18 → 3/18 (major improvement)
- 26/26 unique matrix hashes maintained
- Receipt format: v1 → v2 (parse_equation + build_proof_metrics)
|
2026-05-26 01:55:09 -05:00 |
|
Brandon Schneider
|
620ea04d6c
|
feat(pist): validation + calibration harness
- pist_train.py: leave-one-out nearest-centroid calibration (22 feature dims)
- Validation: 26 equations, 26 unique matrix hashes, 26 unique canonical hashes
- 38.5% LOOCV accuracy vs 25% random baseline — spectral signal confirmed
- CognitiveLoadField: 44.4% (8/18), SignalShapedRouteCompiler: 33.3% (2/6)
- Separation ratio 1.007 — centroids overlap heavily (fold/cusp are adjacent in ADE)
- Feature diversity confirmed: 21/22 features carry variance
|
2026-05-26 01:49:21 -05:00 |
|
Brandon Schneider
|
e0118b4314
|
feat(pist): exact eigendecomposition, matrix diagnostics, 26-equation validation
- pist-decompose: convergence proxy + symmetric/Laplacian/SVD spectrum
- Crossing matrix now hash-derived (Q0_2), unique per equation
- Validation: 26/26 unique matrices, 26/26 unique canonical hashes
- Spectral features: rank(5), density(10), entropy(26), gap(26)
- Classifier rules need labeled training data
- pist_classify.py: full pipeline wrapper
- validate_rrc_predictions.py: batch runner with diagnostics
|
2026-05-26 01:20:30 -05:00 |
|