mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
Architecture:
RRC.Corpus278 — raw features only (Python supplies, Lean owns gate)
RRC.Emit — alignment classifier; emitCorpus generic entry point
AVMIsa.Emit — sole output boundary; imports Corpus278, stamps bundle
Changes:
- RRC/Emit.lean: extend FixtureRow + RrcRow with 5 generator fields
(operatorTokens, invariantsDeclared, boundaryConds, templateKey, templateParams)
Add emitCorpus (schema, corpus) generic emitter; emitFixture is now a thin wrapper
jRrcRow JSON serializer emits all generator fields
- RRC/Corpus278.lean: auto-generated 278-row FixtureRow list
Source: archive/experimental-shim-probes/rrc_equation_classifier_receipt.json
Python extracts raw features; all gating in Lean (alignment gate fires missingPrediction
for all 278 rows currently — correct, no PIST labels present yet)
- AVMIsa/Emit.lean: import Corpus278; add §7 emitRrcCorpus278 — AVM canaries must
pass for bundle receipt to be valid; stamped by AVM authority (avm.rrc_corpus278.bundle)
§8 eval: corpus summary fires (278, 0, 278) — all held, 0 promoted, gate honest
- lakefile.toml: add Semantics.RRC.Corpus278 to Compiler blessed roots; update comment
- 4-Infrastructure/shim/build_corpus278.py: corpus builder script
Build: 3567 jobs, 0 errors (lake build)
Generated with [Devin](https://cli.devin.ai/docs)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
89 lines
2.6 KiB
TOML
89 lines
2.6 KiB
TOML
name = "Semantics"
|
|
version = "0.1.0"
|
|
srcDir = "."
|
|
# Compiler is the narrow fast-verification target for CI: only the blessed
|
|
# RRC + AVMIsa + ReceiptCore surface. Semantics is the full workspace build.
|
|
defaultTargets = ["Compiler", "Semantics"]
|
|
|
|
[[require]]
|
|
name = "sparkle"
|
|
git = "https://github.com/Verilean/sparkle.git"
|
|
rev = "252341078dba3c2612719746e6a459dada2248ea"
|
|
|
|
[[require]]
|
|
name = "mathlib"
|
|
git = "https://github.com/leanprover-community/mathlib4"
|
|
rev = "v4.30.0-rc2"
|
|
|
|
[[lean_lib]]
|
|
name = "Semantics"
|
|
|
|
# ── Compiler: blessed RRC compiler surface ────────────────────────────────────
|
|
# Fast CI target. Only these modules form the "functional Rainbow Raccoon
|
|
# Compiler" proof-of-life:
|
|
# Semantics.RRC.Emit — fixture corpus → alignment gate → JSON (Goal A+)
|
|
# Semantics.AVMIsa.Emit — AVM canaries → RRC → JSON (Goal A); sole output boundary
|
|
# also stamps Semantics.RRC.Corpus278 (278-equation corpus)
|
|
# Semantics.RRC.Corpus278 — raw 278-equation features (Python-supplied, Lean-gated)
|
|
# Libraries (imported by roots, not roots themselves):
|
|
# Semantics.AVMIsa.* — ISA, types, step, run
|
|
# Semantics.ReceiptCore — receipt ledger, promotion gates
|
|
# Semantics.RRCLogogramProjection — projection/merge/lane theorems
|
|
# Semantics.FixedPoint — Q16_16, Q0_16 (no Float in compute paths)
|
|
[[lean_lib]]
|
|
name = "Compiler"
|
|
roots = ["Semantics.RRC.Emit", "Semantics.AVMIsa.Emit", "Semantics.RRC.Corpus278"]
|
|
|
|
[[lean_lib]]
|
|
name = "PIST"
|
|
srcDir = "../../../2-Search-Space/PIST"
|
|
# HybridTSMPISTTorus removed from roots: pre-existing sorry/#eval failures,
|
|
# no module imports it, quarantined pending Lean 4.30 port.
|
|
roots = ["PIST", "PistBridge", "PistSimulation", "TorsionalPIST", "Trace"]
|
|
|
|
[[lean_lib]]
|
|
name = "FAMM"
|
|
srcDir = "../../../2-Search-Space/FAMM"
|
|
roots = ["FAMM"]
|
|
|
|
[[lean_lib]]
|
|
name = "ExtensionScaffold"
|
|
|
|
[[lean_lib]]
|
|
name = "Biology"
|
|
|
|
[[lean_exe]]
|
|
name = "bindserver"
|
|
root = "BindServer"
|
|
|
|
[[lean_exe]]
|
|
name = "searchserver"
|
|
root = "SearchServer"
|
|
|
|
[[lean_exe]]
|
|
name = "SemanticsCli"
|
|
root = "Main"
|
|
|
|
[[lean_exe]]
|
|
name = "openworm_benchmark"
|
|
root = "OpenWormBenchmark"
|
|
|
|
[[lean_exe]]
|
|
name = "ExtremeParameterTestEval"
|
|
root = "ExtremeParameterTestEval"
|
|
|
|
[[lean_exe]]
|
|
name = "NominalParameterTestEval"
|
|
root = "NominalParameterTestEval"
|
|
|
|
[[lean_exe]]
|
|
name = "moim_benchmark"
|
|
root = "MOIMBenchmarkMain"
|
|
|
|
[[lean_exe]]
|
|
name = "generate_sparkle_phi_s3c"
|
|
root = "GenerateSparklePhiS3C"
|
|
|
|
[[lean_exe]]
|
|
name = "tangnano9k_emitter"
|
|
root = "TangNano9KEmitter"
|