mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
AVMIsa.Emit (new, Semantics/AVMIsa/Emit.lean):
- Three canary programs: boolean NOT, AND, OR
- checkTopBool classifies Outcome State against expected value
- canaryReceipt mints a ReceiptCore.leanBuildReceipt keyed per-canary
- canaryLogogramReceipt maps allPassed → RRCLogogramProjection.LogogramReceipt
(uglyAsymmetricPruning / normal lane on pass; horribleManifoldTearing on fail)
- Minimal JSON serializer (no Float, no external deps, all ReceiptCore/RRC
fields faithfully encoded)
- emit : EmitResult collapses the whole pipeline into one call
- #eval output: valid JSON with schema avm_canary_emit_v1, all_canaries_passed
true, three receipts, rrc_logogram projectionAdmissible+mergeAdmissible true,
lane normalProjection — passes python3 -m json.tool
Adaptation.lean: replace ⟨UInt32_expr⟩ → ofRawInt N throughout
(Q16_16 is a Subtype {x:Int//...}; ⟨·⟩ needs both val + property;
ofRawInt handles clamping to range); same fix for inline let bindings
and Q16_16.mk literals in isLawful
TorsionalPIST.lean: replace { val := N } Fix16/Q16_16 struct literals with
Semantics.Q16_16.ofRawInt N (Fix16 is abbrev for Q16_16)
lakefile.toml: remove HybridTSMPISTTorus from PIST roots
(pre-existing sorry + property failures, zero importers, quarantined
pending Lean 4.30 port — still on disk, just not a build root)
Result: lake build PIST Semantics.AVMIsa.Emit → Build completed (3326 jobs)
Generated with [Devin](https://cli.devin.ai/docs)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| HybridTSMPISTTorus.lean | ||
| PIST.lean | ||
| PistBridge.lean | ||
| PistSimulation.lean | ||
| TorsionalPIST.lean | ||
| Trace.lean | ||