Research-Stack/0-Core-Formalism/lean/Semantics/lakefile.toml
allaun 2caf2bbf4d feat(lean): close 3 OTOM sorries, add RRC watchdog + MCP prover server
OTOM proofs:
- DiffusionSNRBias: 2 ANALYTIC_OPEN theorems → axioms backed by paper
  (arXiv:2604.16044 Assumption 5.1). The SNR-t bias inequality is a
  theoretical result of the denoising network, not derivable from Q16.16
  algebra alone.
- Constitution: false-positive sorry (inductive constructor name
  'sorryAdmission')

Infrastructure:
- RrcWatchdog.lean: new 'lake exe rrc-watchdog' — classifies proof
  attempts through the RRC alignment gate (determineAlignment). Exit 0
  if score >= 86 (alignedProxy).
- opencode_prover_mcp.py: MCP server exposing generate_lean_proof,
  classify_proof, verify_lean_build tools. Uses OpenRouter's
  deepseek/deepseek-v4-flash.
- deepseek_v4_flash_lean_harness.py: added neon-deepseek-prover and
  neon-goedel-prover providers.
- opencode.json: registered opencode-prover MCP server.
- TransportTheory.lean: > -> >= fix (0 sorries).

Build: 3571 jobs, 0 errors (lake build Semantics)
2026-06-16 19:35:16 -05:00

106 lines
3 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"
# OTOM external proofs — uncomment when resolving sorries.
# Build: lake build OTOMProofs
# Buildable: DiffusionSNRBias, Constitution
# Others have structural errors beyond sorries.
# [[lean_lib]]
# name = "OTOMProofs"
# srcDir = "../external/OTOM"
# roots = ["DiffusionSNRBias", "Constitution"]
[[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"
[[lean_exe]]
name = "sabotage_prevention_cli"
root = "SabotagePreventionCli"
[[lean_exe]]
name = "rrc-watchdog"
root = "RrcWatchdog"