Commit graph

4 commits

Author SHA1 Message Date
Brandon Schneider
9b23450536 feat(avm-isa): Goal A — AVMIsa.Emit wires canary → RRC → JSON; clear build red
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>
2026-05-26 21:46:22 -05:00
Brandon Schneider
2a2aa0535f feat(pist): remove dead PISTMachine root; add Trace tactic module
lakefile.toml (PIST lib roots):
- Remove "PISTMachine" — PISTMachine.lean does not exist; dead root
  would cause lake build PIST to fail with "unknown module" error
- "Trace" was already added in the prior dirty change; committed here
  paired with the file it requires

2-Search-Space/PIST/Trace.lean (new):
- Lean 4 tactic `trace_state_json "tag"` for Tier 2 flexure recording
- Emits structured goal-state JSON (target, hypotheses, goal_count)
  prefixed with @@PIST_TRACE_JSON@@ sentinel to logInfo stdout
- Python trace bridge parses the sentinel to capture mid-proof state
- Namespace: PIST.Trace; no sorry, no float, no external deps beyond Lean

Generated with Devin (https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-26 21:32:41 -05:00
Brandon Schneider
0709b298b3 Consolidate research stack updates 2026-05-05 21:09:48 -05:00
Brandon Schneider
5f88abf618 initial: sovereign research stack (consolidated, weightless, and lfs-optimized) 2026-05-04 18:11:36 -05:00