import Lake open Lake DSL -- The product version: the one place it is written. docs/releases/.md -- and README.md name the same number. (`lake-manifest.json` "version" is the -- manifest format, not this.) package «sparkle» where version := v!"0.2.1" -- Pinned to the revision Reservoir verifies against v4.32.1. `main` is -- newer (9389649) but its own lean-toolchain still says v4.31.0; the pin -- is what the toolchain bump is actually tested on. require LSpec from git "https://github.com/argumentcomputer/LSpec" @ "3e23a4a" -- C FFI library for Signal memoization barriers (defeats Lean 4.28 LICM) extern_lib «sparkle_barrier» pkg := do let srcFile := pkg.dir / "c_src" / "sparkle_barrier.c" let oFile := pkg.buildDir / "c_src" / "sparkle_barrier.o" let srcJob ← inputTextFile srcFile let oJob ← buildLeanO oFile srcJob (weakArgs := #["-O2"]) buildStaticLib (pkg.buildDir / "c_src" / nameToStaticLib "sparkle_barrier") #[oJob] -- C FFI library for JIT dlopen/dlsym wrappers extern_lib «sparkle_jit» pkg := do let srcFile := pkg.dir / "c_src" / "sparkle_jit.c" let oFile := pkg.buildDir / "c_src" / "sparkle_jit.o" let srcJob ← inputTextFile srcFile let oJob ← buildLeanO oFile srcJob (weakArgs := #["-O2"]) buildStaticLib (pkg.buildDir / "c_src" / nameToStaticLib "sparkle_jit") #[oJob] -- Linker args making an IP lib's monolithic `libsparkle_IP_*.so` depend on -- every PER-MODULE Sparkle dynlib (in `.lake/build/lib/lean`). -- -- Why this exists: the interpreter/LSP force-loads an IP lib's monolithic -- `.so` (via `--load-dynlib`, see `lake setup-file`) at startup — *before* -- Sparkle's per-module dynlibs are loaded by olean imports. The monolithic -- references Sparkle closures/initializers (e.g. -- `Signal.map___redArg___lam__0`, `initialize_sparkle_Sparkle`) and so failed -- to load with a confusing *undefined symbol* even though the `.olean` built -- fine. (Triggered once `Signal.map` started routing through the -- `@[extern "sparkle_cache_get"]` LICM barrier, which the IP libs reference.) -- -- We depend on the PER-MODULE `.so` — the SAME files olean imports load — so -- the dynamic loader dedups them by path and each module initializer runs -- exactly once. Depending on the aggregate `libsparkle_Sparkle.so` instead -- loads a second full copy and double-registers env extensions -- ("'Sparkle.Compiler.hardwareModuleAttr' has already been used"). The -- monolithic transitively needs the root `Sparkle` module, so we list them -- all. `--no-as-needed` forces every entry to be recorded as NEEDED; -- `$ORIGIN/lean` rpath finds them at runtime (monolithic is in `lib`, these -- in `lib/lean`). -- -- Regenerate after adding/removing Sparkle modules: -- ls .lake/build/lib/lean/sparkle_Sparkle*.so -- A missing entry shows up as an undefined-symbol load error naming the module. def sparkleModuleDeps : Array String := #[ "-l:sparkle_Sparkle_Backend_CSim.so", "-l:sparkle_Sparkle_Backend_CudaIntra.so", "-l:sparkle_Sparkle_Backend_CudaSim.so", "-l:sparkle_Sparkle_Backend_VCD.so", "-l:sparkle_Sparkle_Backend_Verilog.so", "-l:sparkle_Sparkle_Compiler_DRC.so", "-l:sparkle_Sparkle_Compiler_Elab.so", "-l:sparkle_Sparkle_Compiler_InlineAttr.so", "-l:sparkle_Sparkle_Core_CircuitDo.so", "-l:sparkle_Sparkle_Core_CircuitMonad.so", "-l:sparkle_Sparkle_Core_Domain.so", "-l:sparkle_Sparkle_Core_JITLoop.so", "-l:sparkle_Sparkle_Core_JIT.so", "-l:sparkle_Sparkle_Core_MulOracleProof.so", "-l:sparkle_Sparkle_Core_MulOracle.so", "-l:sparkle_Sparkle_Core_OptimizedSim.so", "-l:sparkle_Sparkle_Core_Oracle.so", "-l:sparkle_Sparkle_Core_OracleSpec.so", "-l:sparkle_Sparkle_Core_Signal.so", "-l:sparkle_Sparkle_Core_SignalLeavesDerive.so", "-l:sparkle_Sparkle_Core_SimParallel.so", "-l:sparkle_Sparkle_Core_SimPureLean.so", "-l:sparkle_Sparkle_Core_Sim.so", "-l:sparkle_Sparkle_Core_SimVerilator.so", "-l:sparkle_Sparkle_Core_StateMacro.so", "-l:sparkle_Sparkle_Core_Vector.so", "-l:sparkle_Sparkle_Core_Wireable.so", "-l:sparkle_Sparkle_Data_BitPack.so", "-l:sparkle_Sparkle_Display_Diagram.so", "-l:sparkle_Sparkle_Display_Interactive.so", "-l:sparkle_Sparkle_Display_Mime.so", "-l:sparkle_Sparkle_Display.so", "-l:sparkle_Sparkle_Display_Synthesise.so", "-l:sparkle_Sparkle_IR_AST.so", "-l:sparkle_Sparkle_IR_Builder.so", "-l:sparkle_Sparkle_IR_Optimize.so", "-l:sparkle_Sparkle_IR_ReorderInvariance.so", "-l:sparkle_Sparkle_IR_Semantics.so", "-l:sparkle_Sparkle_IR_Specialize.so", "-l:sparkle_Sparkle_IR_Type.so", "-l:sparkle_Sparkle_IR_ZeroWidth.so", "-l:sparkle_Sparkle_IR_RegDedup.so", "-l:sparkle_Sparkle.so", "-l:sparkle_Sparkle_Utils_HexLoader.so", "-l:sparkle_Sparkle_Verification_Equivalence.so", "-l:sparkle_Sparkle_Verification_LoopProps.so", "-l:sparkle_Sparkle_Verification_MulProps.so", "-l:sparkle_Sparkle_Verification_Temporal.so" ] -- These args are GNU-ld specific: `-l:NAME.so` exact-file linking, the -- `--no-as-needed`/`--as-needed` toggles, and the ELF `$ORIGIN` rpath token. -- Apple `ld64` rejects all of them (per-module dynlibs are `.dylib`, not `.so`; -- the rpath origin token is `@loader_path`), and the force-load ordering bug -- they work around is itself Linux/glibc/GNU-ld-only — see -- notes/build/lean-lake-force-load-ordering-issue.md ("OS: Linux (x86_64, glibc), GNU -- ld"). So guard per-platform exactly like the `Sparkle` lib's `moreLinkArgs` -- below: on macOS/Windows fall back to Lake's default linking (empty extra -- args), which is also all the IP libs need there since the editor force-load -- path that triggers the bug is the Linux interpreter/LSP. -- SVParser's `:shared` dynlib is linked by a HARD `cc`/`ld` step -- (a native dep of `verilog!` consumers like CounterProps), unlike the -- IP libs whose monolithic is only ever `--load-dynlib`-ed by the -- interpreter. A hard link cannot tolerate `-l:` naming a file Lake -- never produces, so this variant (a) drops the two phantom entries -- from `sparkleModuleDeps` — `sparkle_Sparkle.so` (the root is only -- ever the aggregate `libsparkle_Sparkle.so`) and -- `..._Verification_LoopProps.so` (not built by default) — and (b) -- links the aggregate by name for the root module's initializer -- symbols. def sparkleSVParserLinkArgs : Array String := if System.Platform.isOSX || System.Platform.isWindows then #[] else #["-L", "./.lake/build/lib/lean", "-L", "./.lake/build/lib", "-Wl,--no-as-needed"] ++ (sparkleModuleDeps.filter fun a => a != "-l:sparkle_Sparkle.so" && a != "-l:sparkle_Sparkle_Verification_LoopProps.so") ++ #["-l:libsparkle_Sparkle.so", "-Wl,--as-needed", "-Wl,-rpath,$ORIGIN/lean", "-Wl,-rpath,$ORIGIN"] def sparkleDynlibLinkArgs : Array String := if System.Platform.isOSX || System.Platform.isWindows then #[] else #["-L", "./.lake/build/lib/lean", "-Wl,--no-as-needed"] ++ sparkleModuleDeps ++ #["-Wl,--as-needed", "-Wl,-rpath,$ORIGIN/lean"] -- `precompileModules := true` builds a shared library -- (`.lake/build/lib/libsparkle_Sparkle.so`) alongside the oleans. -- The xeus-lean kernel needs this when it encounters `@[extern]` -- calls like `Sparkle.Core.JIT.JIT.load` inside a notebook `#eval`: -- the interpreter dlsym-loads the per-module `lp_*` wrapper from -- the shared lib instead of expecting it to be statically linked -- into the kernel binary. Without it, the kernel binary only has -- the raw C symbols (we wired those through `XEUS_LEAN_EXTRA_LIBS` -- in the tutorial Dockerfile) but is missing the Lean-side boxing -- wrappers, so every `JIT.load` throws "Could not find native -- implementation". -- -- Visibility of the C-side externs is handled in the .c sources -- themselves (see `#pragma GCC visibility push(default)` in -- `c_src/sparkle_barrier.c` and `c_src/sparkle_jit.c`), which is -- portable across Linux / macOS / Windows. -- -- Visibility alone, however, is NOT enough for the *precompiled* -- `libsparkle_Sparkle.so`: a plain `-l:…a` only pulls the archive -- members that resolve a currently-undefined symbol, and Lake links -- the extern archives into executables but not into the precompiled -- shared lib. The result is that `libsparkle_Sparkle.so` keeps -- `sparkle_cache_get` / `sparkle_jit_load` as *undefined* symbols and -- is only loadable when something else has already pulled the C side -- into the global symbol scope. Once `Signal.map` started routing -- through the `@[extern "sparkle_cache_get"]` LICM barrier, every -- downstream IP lib that references a `Signal` closure (e.g. -- `libsparkle_IP_x2eBitNet.so` → `Signal.map___redArg___lam__0`) -- began failing to load with a confusing *undefined symbol* on the -- Signal closure — the real cause being that `libsparkle_Sparkle.so` -- itself can't resolve `sparkle_cache_get`. -- -- So force the two extern archives whole-into the precompiled `.so` -- so it is self-contained regardless of load order / dlopen scope. -- `--whole-archive` is GNU-ld only; on Apple `ld64` the equivalent is -- `-force_load`. Guard per-platform; Windows/MSVC keeps relying on the -- visibility pragmas above. The `./.lake/build/c_src` path resolves -- against Sparkle's own package dir during `lake build` here; a -- separate downstream consumer that precompiles Sparkle may need an -- absolute path (see commit 67d2c73 for that history). -- Absolute path to this package's build dir, captured at lakefile -- elaboration. `decide`-free: `__dir__` is the directory containing -- *this* lakefile, so `/.lake/build/c_src` is correct whether -- Sparkle is the root package (`lake build` here) OR a git dependency -- of a downstream project (`/.lake/packages/sparkle/…`). -- Using this instead of a relative `./.lake/build/c_src` is what keeps -- the barrier/jit force_load args from breaking downstream consumers, -- whose CWD-relative `./.lake/build/c_src` is their own empty build dir. def sparkleCSrcDir : System.FilePath := (__dir__ : System.FilePath) / ".lake" / "build" / "c_src" lean_lib «Sparkle» where precompileModules := true -- Force the two extern archives whole-into the precompiled -- `libsparkle_Sparkle.so` so it self-resolves `sparkle_cache_get` / -- `sparkle_eval_at` (the `@[extern]` LICM barriers `Signal.loop`'s -- memoization uses) regardless of dlopen load order. Without this the -- interpreter/LSP fails to load the `.so` with an undefined-symbol -- error. The path is ABSOLUTE (`sparkleCSrcDir`) so a downstream -- consumer that inherits these args still finds Sparkle's own populated -- c_src — the relative form (PR #65 `c59820c`) broke downstream-smoke. moreLinkArgs := let barrier := (sparkleCSrcDir / "libsparkle_barrier.a").toString let jit := (sparkleCSrcDir / "libsparkle_jit.a").toString if System.Platform.isOSX then #[s!"-Wl,-force_load,{barrier}", s!"-Wl,-force_load,{jit}"] else if System.Platform.isWindows then #[] else #["-Wl,--whole-archive", barrier, jit, "-Wl,--no-whole-archive"] lean_lib «IP.BitNet» where roots := #[`IP.BitNet] -- See `sparkleDynlibLinkArgs` above: makes the force-loaded monolithic -- resolve Sparkle symbols against the per-module dynlibs (no double-init). moreLinkArgs := sparkleDynlibLinkArgs lean_lib «IP.Drone» where roots := #[`IP.Drone] lean_lib «IP.Humanoid» where roots := #[`IP.Humanoid] lean_lib «IP.RV32» where roots := #[`IP.RV32] -- See `sparkleDynlibLinkArgs` above. moreLinkArgs := sparkleDynlibLinkArgs lean_lib «IP.YOLOv8» where roots := #[`IP.YOLOv8] lean_lib «IP.Arbiter» where roots := #[`IP.Arbiter] lean_lib «Examples.CDC» where roots := #[`Examples.CDC] lean_lib «Examples.FPU» where roots := #[`Examples.FPU] lean_lib «IP.Video» where roots := #[`IP.Video] lean_lib «IP.Bus» where roots := #[`IP.Bus] -- HFT-leaning TCP/IP stack (10 GbE XGMII ↔ TCP payload stream). -- Layers under IP/Net/: CRC32, Ethernet, ARP, IPv4, UDP, TCP, HFTStack. lean_lib «IP.Net» where roots := #[`IP.Net] -- USB / FIDO2 transport: CTAPHID report framing, CBOR byte emitter, -- and the FIDO2 authenticator top. lean_lib «IP.USB» where roots := #[`IP.USB] -- Ledger-style crypto (SHA-256, Ed25519, secp256k1) for signed -- order packets in the HFT stack and as standalone Sparkle IPs. lean_lib «IP.Crypto» where roots := #[`IP.Crypto] -- TLS 1.3 stack: record layer, handshake state machine. -- Builds on IP.Crypto (AES-GCM, HKDF, X25519, SHA-256). lean_lib «IP.TLS» where roots := #[`IP.TLS] -- Fixed-point control datapaths: IIR biquad, PID, LQR state feedback. -- Mathlib-free by construction — these are the synthesized circuits. The -- ℝ-level Lyapunov/LQR design that justifies the coefficients lives in the -- `proofs/` sidecar package, which is outside this build graph. lean_lib «IP.Control» where roots := #[`IP.Control] lean_lib «Tools.SVParser» where roots := #[`Tools.SVParser] -- The `«Tools.SVParser»:shared` dynlib is a required native dep of -- consumers whose `verilog!` macro imports Tools.SVParser.Macro -- (e.g. Sparkle.Verification.CounterProps). Since this branch's -- umbrella pulls in RoundtripProof→EmitSem, that .so's object code -- references Sparkle.IR.{Optimize,Semantics,…} symbols, which must -- be recorded NEEDED against the per-module Sparkle dynlibs — same -- as the IP libs. (Kept minimal: RoundtripProof was ALSO removed -- from the Tools.SVParser umbrella, but Lower→Optimize alone still -- pulls Optimize specializations, so the link args are required.) -- Uses the SVParser-specific variant that survives a HARD link -- (the IP libs' args name two files Lake never builds, tolerated -- only by the interpreter's soft load). moreLinkArgs := sparkleSVParserLinkArgs -- `#verify_elab` — the Signal↔IR link (see Tools/VerifyElab.lean) lean_lib «Tools.VerifyElab» where roots := #[`Tools.VerifyElab] -- The GENERAL Signal↔IR theorem over the deep circuit grammar lean_lib «Tools.ConcatNorm» where roots := #[`Tools.ConcatNorm] lean_lib «Tools.ConeFold» where roots := #[`Tools.ConeFold] lean_lib «Tools.ConeFoldSlices» where roots := #[`Tools.ConeFoldSlices] lean_lib «Tools.ConeFoldOpt» where roots := #[`Tools.ConeFoldOpt] lean_lib «Tools.ConeFoldMem» where roots := #[`Tools.ConeFoldMem] lean_lib «Tools.ConeFoldRT» where roots := #[`Tools.ConeFoldRT] lean_lib «Tools.VedU2HierStateArgs» where roots := #[`Tools.VedU2HierStateArgs] lean_lib «Tools.VedU2HierDbg» where roots := #[`Tools.VedU2HierDbg] lean_lib «Tools.VedU2HierClose» where roots := #[`Tools.VedU2HierClose] lean_lib «Tools.VedU2HierBvAppend» where roots := #[`Tools.VedU2HierBvAppend] lean_lib «Tools.VedU2HierLoopRw» where roots := #[`Tools.VedU2HierLoopRw] lean_lib «Tools.VedU2HierMultiLoop» where roots := #[`Tools.VedU2HierMultiLoop] lean_lib «Tools.VedU2HierMultiGen» where roots := #[`Tools.VedU2HierMultiGen] lean_lib «Tools.VedU2HierMultiBundle» where roots := #[`Tools.VedU2HierMultiBundle] lean_lib «Tools.VedU2HierMultiChain» where roots := #[`Tools.VedU2HierMultiChain] lean_lib «Tools.VedComposeStep» where roots := #[`Tools.VedComposeStep] lean_lib «Tools.VedComposeOrder» where roots := #[`Tools.VedComposeOrder] lean_lib «Tools.VedComposeResearchCut» where roots := #[`Tools.VedComposeResearchCut] lean_lib «Tools.VedComposePrelude» where roots := #[`Tools.VedComposePrelude] lean_lib «Tools.VedComposeConnect» where roots := #[`Tools.VedComposeConnect] lean_lib «Tools.VedComposeConnectGen» where roots := #[`Tools.VedComposeConnectGen] lean_lib «Tools.VedComposeMultiLoop» where roots := #[`Tools.VedComposeMultiLoop] lean_lib «Tools.VedComposeMultiCircuit» where roots := #[`Tools.VedComposeMultiCircuit] lean_lib «Tools.VedU2HierXorAttr» where roots := #[`Tools.VedU2HierXorAttr] lean_lib «Tools.VedU2HierXor» where roots := #[`Tools.VedU2HierXor] lean_lib «Tools.DeepNoNative» where roots := #[`Tools.DeepNoNative] lean_lib «Tools.DeepNestedState» where roots := #[`Tools.DeepNestedState] lean_lib «Tools.DeepHelpers» where roots := #[`Tools.DeepHelpers] lean_lib «Tools.DeepHelpersTac» where roots := #[`Tools.DeepHelpersTac] lean_lib «Tools.DeepFinArms» where roots := #[`Tools.DeepFinArms] lean_lib «Tools.VedU2HierBudget» where roots := #[`Tools.VedU2HierBudget] lean_lib «Tools.DeepElab» where roots := #[`Tools.DeepElab] -- strict audit of a declaration's reachable axiom closure (VED, see notes/ved/VED-MAIN-INTRO.md) lean_lib «Tools.VedStrictAudit» where roots := #[`Tools.VedStrictAudit] lean_lib «Tests.Ved.StrictAuditCheck» where roots := #[`Tests.Ved.StrictAuditCheck] -- regression: the kernel must not decide `Option.getD (some X) 0 =?= X` (vedGetD_some in ved_seq_simp) lean_lib «Tests.Ved.VedGetDKernelCheck» where roots := #[`Tests.Ved.VedGetDKernelCheck] -- the kernel budget of ved_seq_aux auxiliary theorems (capped caller limit, kept recDepth, sync refusal) lean_lib «Tests.Ved.AuxKernelBudgetCheck» where roots := #[`Tests.Ved.AuxKernelBudgetCheck] lean_lib «Tests.Ved.VedOmegaCCheck» where roots := #[`Tests.Ved.VedOmegaCCheck] lean_lib «Tests.Ved.VedOmegaCacheCheck» where roots := #[`Tests.Ved.VedOmegaCacheCheck] lean_lib «Tests.Ved.VedSeqBoolsCheck» where roots := #[`Tests.Ved.VedSeqBoolsCheck] -- regressions for the synthesis-path changes this introduction brings -- (PR #147 review): width-aware register merging, per-module caches lean_lib «Tests.Ved.RegDedupWidthCheck» where roots := #[`Tests.Ved.RegDedupWidthCheck] lean_lib «Tests.Ved.NestedCacheCheck» where roots := #[`Tests.Ved.NestedCacheCheck] -- U1 strict entry: the module `synthesizeCombinational` returned, returned -- only with a strict (standard-axiom) step theorem (notes/ved/VED-MAIN-INTRO.md) lean_lib «Tools.VedIRDecEq» where roots := #[`Tools.VedIRDecEq] lean_lib «Tools.VedU1Contract» where roots := #[`Tools.VedU1Contract] lean_lib «Tools.VedU1Lemmas» where roots := #[`Tools.VedU1Lemmas] lean_lib «Tools.VedU1SmallReg» where roots := #[`Tools.VedU1SmallReg] lean_lib «Tools.VedU1RegChain» where roots := #[`Tools.VedU1RegChain] lean_lib «Tools.VedU1Table» where roots := #[`Tools.VedU1Table] lean_lib «Tools.VedU1TableGen» where roots := #[`Tools.VedU1TableGen] lean_lib «Tools.VedH3ChildTbl» where roots := #[`Tools.VedH3ChildTbl] lean_lib «Tools.VedH3ChildChain» where roots := #[`Tools.VedH3ChildChain] lean_lib «Tools.VedH3ChildChainEntry» where roots := #[`Tools.VedH3ChildChainEntry] lean_lib «Tools.VedH3ChildEntry» where roots := #[`Tools.VedH3ChildEntry] lean_lib «Tools.VedH3ChildTblEntry» where roots := #[`Tools.VedH3ChildTblEntry] lean_lib «Tools.VedU1ScriptSeq» where roots := #[`Tools.VedU1ScriptSeq] lean_lib «Tools.VedU1ScriptSeqGen» where roots := #[`Tools.VedU1ScriptSeqGen] lean_lib «Tools.VedU1Heavy» where roots := #[`Tools.VedU1Heavy] lean_lib «Tools.VedU1Loop» where roots := #[`Tools.VedU1Loop] lean_lib «Tools.VedU1LoopXor» where roots := #[`Tools.VedU1LoopXor] lean_lib «Tools.VedU1Iir» where roots := #[`Tools.VedU1Iir] lean_lib «Tools.VedU1Wire» where roots := #[`Tools.VedU1Wire] lean_lib «Tools.VedU1WireShare» where roots := #[`Tools.VedU1WireShare] lean_lib «Tools.VedU1MerkleWhnf» where roots := #[`Tools.VedU1MerkleWhnf] lean_lib «Tools.VedU1StructSeqTac» where roots := #[`Tools.VedU1StructSeqTac] lean_lib «Tools.VedU1StructWires» where roots := #[`Tools.VedU1StructWires] lean_lib «Tools.VedU1StructSlice» where roots := #[`Tools.VedU1StructSlice] lean_lib «Tools.VedU1StructWireEqs» where roots := #[`Tools.VedU1StructWireEqs] lean_lib «Tools.VedU1StructSeq» where roots := #[`Tools.VedU1StructSeq] lean_lib «Tools.VedU1StructOut» where roots := #[`Tools.VedU1StructOut] lean_lib «Tools.VedU1HierSem» where roots := #[`Tools.VedU1HierSem] lean_lib «Tools.VedU1HierComp» where roots := #[`Tools.VedU1HierComp] lean_lib «Tools.VedU1Hier» where roots := #[`Tools.VedU1Hier] lean_lib «Tools.VedU1HierEntry» where roots := #[`Tools.VedU1HierEntry] lean_lib «Tools.VedU1Uns» where roots := #[`Tools.VedU1Uns] lean_lib «Tools.VedU1LemmasExt1» where roots := #[`Tools.VedU1LemmasExt1] lean_lib «Tools.VedU1Entry» where roots := #[`Tools.VedU1Entry] -- Public proof facade (docs/reference/PublicAPI.md): ONE lib owns both modules. -- Core = contract / audit / extraction lemmas (no entry command); Single = the U1 -- entry `#ved_u1`. They import the Tools.* libs above; nothing is copied here. lean_lib «SparkleProof» where roots := #[`SparkleProof.Core, `SparkleProof.Single] lean_lib «Tools.VedU1Packed» where roots := #[`Tools.VedU1Packed] lean_lib «Tools.VedU1MultiSeqLemmas» where roots := #[`Tools.VedU1MultiSeqLemmas] lean_lib «Tools.VedU1MultiSeqLoop» where roots := #[`Tools.VedU1MultiSeqLoop] lean_lib «Tools.VedU1MultiSeq» where roots := #[`Tools.VedU1MultiSeq] lean_lib «Tools.VedU1PackedSeq2» where roots := #[`Tools.VedU1PackedSeq2] lean_lib «Tools.VedU1PackedSeq3» where roots := #[`Tools.VedU1PackedSeq3] lean_lib «Tools.VedU1PackedEntry» where roots := #[`Tools.VedU1PackedEntry] lean_lib «Tools.VedU1Deep» where roots := #[`Tools.VedU1Deep] lean_lib «Tests.Ved.PilotB0Fixture» where roots := #[`Tests.Ved.PilotB0Fixture] lean_lib «Tests.Ved.U1ContractCheck» where roots := #[`Tests.Ved.U1ContractCheck] lean_lib «Tests.Ved.SparkleProofFacadeCheck» where roots := #[`Tests.Ved.SparkleProofFacadeCheck] lean_lib «Tests.Ved.U1EntryCheck» where roots := #[`Tests.Ved.U1EntryCheck] lean_lib «Tests.Ved.U1CircuitLoopCheck» where roots := #[`Tests.Ved.U1CircuitLoopCheck] lean_lib «Tests.Ved.U1SmallRegCheck» where roots := #[`Tests.Ved.U1SmallRegCheck] lean_lib «Tests.Ved.VedBudgetCheck» where roots := #[`Tests.Ved.VedBudgetCheck] lean_lib «Tests.Ved.U1IirCheck» where roots := #[`Tests.Ved.U1IirCheck] lean_lib «Tests.Ved.U1RegChainCheck» where roots := #[`Tests.Ved.U1RegChainCheck] lean_lib «Tests.Ved.VedMemCheck» where roots := #[`Tests.Ved.VedMemCheck] lean_lib «Tests.Ved.VedMemShapeCheck» where roots := #[`Tests.Ved.VedMemShapeCheck] lean_lib «Tests.Ved.VedMemOrderCheck» where roots := #[`Tests.Ved.VedMemOrderCheck] lean_lib «Tests.Ved.U1OrderFastCheck» where roots := #[`Tests.Ved.U1OrderFastCheck] lean_lib «Tests.Ved.U1StructShareCheck» where roots := #[`Tests.Ved.U1StructShareCheck] lean_lib «Tests.Ved.U1StructWireCheck» where roots := #[`Tests.Ved.U1StructWireCheck] lean_lib «Tests.Ved.U1StructNamedCheck» where roots := #[`Tests.Ved.U1StructNamedCheck] lean_lib «Tests.Ved.VedMemWidthCheck» where roots := #[`Tests.Ved.VedMemWidthCheck] lean_lib «Tests.Ved.VedMemPackCheck» where roots := #[`Tests.Ved.VedMemPackCheck] lean_lib «Tests.Ved.VedMemCloseCheck» where roots := #[`Tests.Ved.VedMemCloseCheck] lean_lib «Tests.Ved.VedSupplementCheck» where roots := #[`Tests.Ved.VedSupplementCheck] lean_lib «Tests.Ved.VedMemWriteCheck» where roots := #[`Tests.Ved.VedMemWriteCheck] lean_lib «Tests.Ved.U1DomainCheck» where roots := #[`Tests.Ved.U1DomainCheck] lean_lib «Tests.Ved.U1MultiOutCheck» where roots := #[`Tests.Ved.U1MultiOutCheck] lean_lib «Tests.Ved.U1PackedCheck» where roots := #[`Tests.Ved.U1PackedCheck] lean_lib «Tests.Ved.U1MultiSeqCheck» where roots := #[`Tests.Ved.U1MultiSeqCheck] lean_lib «Tests.Ved.U1PackedSeq2Check» where roots := #[`Tests.Ved.U1PackedSeq2Check] lean_lib «Tests.Ved.U1PackedSeq3Check» where roots := #[`Tests.Ved.U1PackedSeq3Check] lean_lib «Tests.Ved.U1MerkleWhnfCheck» where roots := #[`Tests.Ved.U1MerkleWhnfCheck] lean_lib «Tests.Ved.U1EqLutCheck» where roots := #[`Tests.Ved.U1EqLutCheck] lean_lib «Tests.Ved.U1LeafCheck» where roots := #[`Tests.Ved.U1LeafCheck] -- the real `rconHW` (imports the AES IP); not in the VED CI workflow lean_lib «Tests.Ved.U1RconCheck» where roots := #[`Tests.Ved.U1RconCheck] lean_lib «Tests.Ved.U1HierCheck» where roots := #[`Tests.Ved.U1HierCheck] -- the real `keccakRcHW` (imports the Keccak IP): 32 × 64-bit constants over a 5-bit index lean_lib «Tests.Ved.U1KeccakRcCheck» where roots := #[`Tests.Ved.U1KeccakRcCheck] -- real IP rows with `==` / wide inputs (aluSignal, hazardSignal, lqrCtrlTop, private test rows) lean_lib «Tests.Ved.U1EqWideCheck» where roots := #[`Tests.Ved.U1EqWideCheck] -- the real constant tables: SHA-256 / SHA-512 K and the AES S-box (64 / 80 / 256 entries) lean_lib «Tests.Ved.U1KTabCheck» where roots := #[`Tests.Ved.U1KTabCheck] -- real IP rows with several registers built by Signal.loop (loop-state invariant): shared commands, -- the PR check (3 rows + refusal controls), the other rows in four parts, all together lean_lib «Tests.Ved.U1MultiLoopRow» where roots := #[`Tests.Ved.U1MultiLoopRow] lean_lib «Tests.Ved.U1MultiLoopCheck» where roots := #[`Tests.Ved.U1MultiLoopCheck] lean_lib «Tests.Ved.U1SeqCheck» where roots := #[`Tests.Ved.U1SeqCheck] lean_lib «Tests.Ved.U1SeqModCheck» where roots := #[`Tests.Ved.U1SeqModCheck] lean_lib «Tests.Ved.U1HeavyCheck» where roots := #[`Tests.Ved.U1HeavyCheck] lean_lib «Tests.Ved.U1MultiLoopFull1» where roots := #[`Tests.Ved.U1MultiLoopFull1] lean_lib «Tests.Ved.U1MultiLoopFull2» where roots := #[`Tests.Ved.U1MultiLoopFull2] lean_lib «Tests.Ved.U1MultiLoopFull3» where roots := #[`Tests.Ved.U1MultiLoopFull3] lean_lib «Tests.Ved.U1MultiLoopFull4» where roots := #[`Tests.Ved.U1MultiLoopFull4] lean_lib «Tests.Ved.U1MultiLoopFull5» where roots := #[`Tests.Ved.U1MultiLoopFull5] lean_lib «Tests.Ved.U1MultiLoopFull6» where roots := #[`Tests.Ved.U1MultiLoopFull6] lean_lib «Tests.Ved.U1MultiLoopAll» where roots := #[`Tests.Ved.U1MultiLoopAll] lean_lib «Tests.Ved.U1DeepCheck» where roots := #[`Tests.Ved.U1DeepCheck] lean_lib «Tests.Ved.U1UnsolvedCheck» where roots := #[`Tests.Ved.U1UnsolvedCheck] lean_lib «Tests.Ved.H3ChildCheck» where roots := #[`Tests.Ved.H3ChildCheck] lean_lib «Tests.Ved.U1WireShareCheck» where roots := #[`Tests.Ved.U1WireShareCheck] lean_lib «Tests.Ved.U1MultiRegCheck» where roots := #[`Tests.Ved.U1MultiRegCheck] lean_lib «Tests.Ved.DeepNameCheck» where roots := #[`Tests.Ved.DeepNameCheck] lean_lib «Tests.Ved.DeepInitCheck» where roots := #[`Tests.Ved.DeepInitCheck] lean_lib «Tests.Ved.DeepHygieneCheck» where roots := #[`Tests.Ved.DeepHygieneCheck] lean_lib «TutorialExtended» where globs := #[.submodules `TutorialExtended] srcDir := "tutorial-extended" -- Display: a shim for xeus-lean's `Display.*` library so that -- chapter cells can `import Display` and call -- `Display.waveform`, `Display.boolWave`, `Display.blockDiagram`, -- `Display.writeWdb`, etc. from headless `lake build` as well as -- from inside xeus-lean. In the xeus-lean kernel the real Display -- library takes precedence; this shim is the offline fallback. lean_lib «Display» where roots := #[`Display] srcDir := "docs/tutorial" lean_lib «TutorialNotebooks» where roots := #[`Notebooks] srcDir := "docs/tutorial" lean_exe «tutorial-extended-run» where root := `TutorialExtended.Run srcDir := "tutorial-extended" supportInterpreter := true lean_exe «tutorial-mermaid-test» where root := `TutorialExtended.MermaidHelperTest srcDir := "tutorial-extended" supportInterpreter := true lean_lib «Tests» where -- Test circuits library @[default_target] lean_exe «sparkle» where root := `Main lean_exe «verilog-tests» where root := `Tests.VerilogTests supportInterpreter := true -- Smoke-runs the Signal-DSL counter from docs/Tutorial.md Step 1 so CI -- verifies the `#eval` path actually executes (not just type-checks). lean_exe «tutorial-smoke» where root := `Tests.Tutorial.SmokeTest supportInterpreter := true lean_exe «tutorial-hierarchy» where root := `Tests.Tutorial.HierarchyTest supportInterpreter := true -- Runtime check for the raw `Signal.loop` / `Signal.register` -- form (no `circuit do` sugar). Pairs each loop-direct circuit -- with its `circuit do` equivalent and asserts the cycle-by- -- cycle outputs agree, so future macro changes can't silently -- drift from the loop semantics they desugar to. lean_exe «signal-loop-test» where root := `Tests.Drivers.SignalLoopTestMain supportInterpreter := true -- Sim parity for the `circuit do` macro itself: counter, reset -- counter (if/else), two-register reset, hold semantics, 3-state -- FSM (match), and FSM-hold (match + hold). Plus a duplicate- -- `<~` detection guard. lean_exe «circuit-do-test» where root := `Tests.Drivers.CircuitDoTestMain supportInterpreter := true -- Sim + synth check for the HList-based generic `runCircuitH` -- — the sole register-DSL helper after the per-arity -- `runCircuit{1..4}` were removed. Covers N=1..4 plus -- mixed-width state and `forM` over the register list. lean_exe «run-circuit-h-test» where root := `Tests.Drivers.RunCircuitHTestMain supportInterpreter := true -- CUDA backend Layer 2: emit a `.cu` and syntax-check it with a host C++ -- compiler (no nvcc / no GPU). Skips cleanly when no compiler is present. -- Layer 1 (emitter type-check + shape) is `Tests.TestCudaSim` under `lake -- test`; the opt-in nvcc + GPU run is documented in `docs/CudaSim.md`. lean_exe «cuda-sim-test» where root := `Tests.Drivers.CudaSimTestMain supportInterpreter := true -- CUDA intra backend Layer 3: co-simulate the emitted PE-per-thread kernel -- against the CSim CPU reference (host side of the same __host__ __device__ -- functions), cycle-exact. Emission always runs; the compile+run half needs -- nvcc + a GPU and is gated on SPARKLE_CUDA=1 (skips cleanly otherwise). lean_exe «cuda-intra-cosim» where root := `Tests.Drivers.CudaIntraCosimMain supportInterpreter := true -- SMT bridge Layer 2: emit BMC queries (always), run z3 + replay -- counterexamples on the CSim C reference when z3/gcc are present -- (skips cleanly otherwise). Layer 1 is Tests.TestSmt under lake test. lean_exe «smt-bmc-test» where root := `Tests.Drivers.SmtBmcTestMain supportInterpreter := true -- XiangShan-scale SVParser survey: parse → lower → re-emit over a directory -- of .sv files, cataloguing failure classes (bench/xiangshan/README.md). lean_exe «sv-roundtrip» where root := `Tests.Drivers.SvRoundtripMain supportInterpreter := true -- Certified-trace census at production scale: which fraction of a -- corpus do the M4 theorems actually cover (same decidable checkers -- the capstones consume). -- Phase-2 three-way co-sim: iverilog(original)=golden vs iverilog(roundtrip) -- vs Sparkle CSim JIT, over baked deterministic vectors. lean_exe «sv-cosim» where root := `Tests.Drivers.SvCosimMain supportInterpreter := true -- sv-to-dsl: survey how much ingested RTL prints back as circuit-DSL -- source (the reporting half of verilog → IR → lean₄; the proof half is -- `#verify_dsl_roundtrip`). lean_exe «sv-to-dsl» where root := `Tests.Drivers.SvToDslMain supportInterpreter := true -- IP.Net.CRC32 (Ethernet FCS, reflected CRC-32/IEEE-802.3). -- Sim test: pure Lean reference, Signal-DSL engine, and IEEE -- 802.3 golden vectors must all agree. lean_exe «crc32-test» where root := `Tests.Drivers.CRC32TestMain supportInterpreter := true -- IP.Net.Ethernet (byte-feed RX framer). -- Sim test: a synthetic 18-byte frame fed cycle-by-cycle, and the -- six RX outputs (DMAC / SMAC / EthType / hdrDone / payloadByte / -- payloadValid) checked against golden values. Also exercises -- the `circuit do { … return { field := … } }` multi-output -- return path that the runCircuitH ρ-generalisation enables. lean_exe «ethernet-test» where root := `Tests.Drivers.EthernetTestMain supportInterpreter := true lean_exe «eth-trace» where root := `Tests.Drivers.EthTraceMain supportInterpreter := true lean_exe «ethernet-tx-test» where root := `Tests.Drivers.EthernetTxTestMain supportInterpreter := true lean_exe «arp-test» where root := `Tests.Drivers.ARPTestMain supportInterpreter := true lean_exe «arp-trace» where root := `Tests.Drivers.ArpTraceMain supportInterpreter := true lean_exe «ipv4-test» where root := `Tests.Drivers.IPv4TestMain supportInterpreter := true lean_exe «icmp-test» where root := `Tests.Drivers.ICMPTestMain supportInterpreter := true lean_exe «icmp-trace» where root := `Tests.Drivers.IcmpTraceMain supportInterpreter := true lean_exe «tcp-header-test» where root := `Tests.Drivers.TCPHeaderTestMain supportInterpreter := true lean_exe «tcp-state-test» where root := `Tests.Drivers.TCPStateTestMain supportInterpreter := true lean_exe «tcp-loopback-test» where root := `Tests.Drivers.TCPLoopbackTestMain supportInterpreter := true lean_exe «http-test» where root := `Tests.Drivers.HTTPTestMain supportInterpreter := true lean_exe «hft-strategy-test» where root := `Tests.Drivers.HFTStrategyTestMain supportInterpreter := true -- Ch14 quoting engine: circuit vs pure-data reference (Signal.val co-sim, -- incl. both position-limit clamp hits) + 3 synth wrappers at build time. lean_exe «hft-quote-test» where root := `Tests.Drivers.HFTQuoteTestMain supportInterpreter := true lean_exe «sha256-test» where root := `Tests.Drivers.SHA256TestMain supportInterpreter := true lean_exe «keccak256-test» where root := `Tests.Drivers.Keccak256TestMain supportInterpreter := true lean_exe «rlp-test» where root := `Tests.Drivers.RLPTestMain supportInterpreter := true lean_exe «eip1559-tx-test» where root := `Tests.Drivers.Eip1559TxTestMain supportInterpreter := true lean_exe «erc20-abi-test» where root := `Tests.Drivers.Erc20AbiTestMain supportInterpreter := true lean_exe «bip39-test» where root := `Tests.Drivers.Bip39TestMain supportInterpreter := true lean_exe «bip32-test» where root := `Tests.Drivers.Bip32TestMain supportInterpreter := true lean_exe «eth-wallet-test» where root := `Tests.Drivers.EthWalletTestMain supportInterpreter := true lean_exe «ed25519-field-test» where root := `Tests.Drivers.Ed25519FieldTestMain supportInterpreter := true lean_exe «ed25519-point-test» where root := `Tests.Drivers.Ed25519PointTestMain supportInterpreter := true lean_exe «ed25519-sign-test» where root := `Tests.Drivers.Ed25519SignTestMain supportInterpreter := true lean_exe «ed25519-verify-test» where root := `Tests.Drivers.Ed25519VerifyTestMain supportInterpreter := true lean_exe «p256-ecdsa-test» where root := `Tests.Drivers.P256ECDSATestMain supportInterpreter := true lean_exe «rsa-pss-test» where root := `Tests.Drivers.RSAPSSTestMain supportInterpreter := true lean_exe «x509-parser-test» where root := `Tests.Drivers.X509ParserTestMain supportInterpreter := true lean_exe «x509-verify-test» where root := `Tests.Drivers.X509VerifyTestMain supportInterpreter := true lean_exe «tls-client-server-test» where root := `Tests.Drivers.TLSClientServerTestMain supportInterpreter := true lean_exe «https-demo» where root := `Tests.Drivers.HTTPSDemoMain supportInterpreter := true lean_exe «can-test» where root := `Tests.Drivers.CANTestMain supportInterpreter := true lean_exe «canopen-test» where root := `Tests.Drivers.CANopenTestMain supportInterpreter := true lean_exe «dronecan-test» where root := `Tests.Drivers.DroneCANTestMain supportInterpreter := true lean_exe «serial-bus-test» where root := `Tests.Drivers.SerialBusTestMain supportInterpreter := true lean_exe «avionics-bus-test» where root := `Tests.Drivers.AvionicsBusTestMain supportInterpreter := true lean_exe «can-hw-test» where root := `Tests.Drivers.CANHWTestMain supportInterpreter := true lean_exe «lin-hw-test» where root := `Tests.Drivers.LINHWTestMain supportInterpreter := true lean_exe «i2c-hw-test» where root := `Tests.Drivers.I2CHWTestMain supportInterpreter := true lean_exe «spi-hw-test» where root := `Tests.Drivers.SPIHWTestMain supportInterpreter := true lean_exe «sbus-hw-test» where root := `Tests.Drivers.SBUSHWTestMain supportInterpreter := true lean_exe «crsf-hw-test» where root := `Tests.Drivers.CRSFHWTestMain supportInterpreter := true lean_exe «mil1553-hw-test» where root := `Tests.Drivers.MIL1553HWTestMain supportInterpreter := true lean_exe «canopen-hw-test» where root := `Tests.Drivers.CANopenHWTestMain supportInterpreter := true lean_exe «dronecan-hw-test» where root := `Tests.Drivers.DroneCANHWTestMain supportInterpreter := true lean_exe «uart-test» where root := `Tests.Drivers.UARTTestMain supportInterpreter := true lean_exe «slip-test» where root := `Tests.Drivers.SLIPTestMain supportInterpreter := true lean_exe «usb-webserver-sim» where root := `Tests.Drivers.UsbWebServerSimMain supportInterpreter := true lean_exe «memcached-oracle-test» where root := `Tests.Drivers.MemcachedOracleTestMain supportInterpreter := true lean_exe «memcached-hw-test» where root := `Tests.Drivers.MemcachedHWTestMain supportInterpreter := true lean_exe «memcached-server-test» where root := `Tests.Drivers.MemcachedServerTestMain supportInterpreter := true -- JIT-backed variant of memcached-server-test. Same coverage -- as the pure-Lean form above, but routes the cycle loop -- through `#sim`-generated C++ + dlopen rather than evaluating -- `Signal.val` per cycle (which was hitting the 25-min CI cap -- on the BitVec 128 path). lean_exe «memcached-server-jit-test» where root := `Tests.Drivers.MemcachedServerJITTestMain supportInterpreter := true -- JIT-backed pilot on a single-output, sub-module-free design -- (CRC32 engine). Same golden vectors as `crc32-test` but -- routes the cycle loop through `#sim` + dlopen, demonstrating -- the wall-time win on a design that doesn't hit Issue #71. lean_exe «crc32-jit-test» where root := `Tests.Drivers.CRC32JITTestMain supportInterpreter := true -- JIT-backed variant of toplevel-sim-test. The BitNet -- accelerator's pure-Lean Signal evaluation hits the same -- O(t²) Signal.val cost that times out usb-webserver-sim -- and memcached-server-test in CI; this driver runs the -- same 50-cycle stimulus via JIT. lean_exe «toplevel-sim-jit-test» where root := `Tests.Drivers.TopLevelSimJITTestMain supportInterpreter := true -- JIT-backed variant of usb-webserver-sim. Each multi-output -- sub-module projection is wrapped in its own scalar -- `@[hardware_module]` to keep the elaborator on its known -- struct-projection path. lean_exe «usb-webserver-jit-test» where root := `Tests.Drivers.UsbWebServerJITTestMain supportInterpreter := true lean_exe «ipv4-jit-test» where root := `Tests.Drivers.IPv4JITTestMain supportInterpreter := true -- Repro for the known sub-module-instance + multi-register -- caller hang in the synth elaborator. Builds clean (the -- failing #synthesizeVerilog is commented out); see the file's -- docstring for the pattern and where it bites in real IPs. lean_exe «multi-output-submodule-hang-repro» where root := `Tests.Drivers.MultiOutputSubModuleHangReproMain supportInterpreter := true -- Regression guard for Issue #107: a `let`-bound stateful -- @[hardware_module] inside `circuit do` must emit exactly one -- instance per source instantiation (was E = I·(D+1)). The -- asserts run at elaboration time, so `lake build` of this -- target IS the test. lean_exe «issue107-letbound-instance-dup-test» where root := `Tests.Drivers.Issue107LetBoundInstanceDupMain supportInterpreter := true -- Regression guard: `r <~ m.done` on a multi-output @[hardware_module] -- must read the `done` port, not a slice of the first port. The -- assert runs at elaboration time, so `lake build` of this target IS the test. lean_exe «proj-register-input-test» where root := `Tests.Drivers.ProjRegisterInputTestMain supportInterpreter := true -- CI gate for the silent-wire fixes (notes/compiler/silent-wire-audit.md): runs the audit -- probes and exits non-zero when a probe verdict differs from its expected class. lean_exe «silent-wire-regression-test» where root := `Tests.Drivers.SilentWireRegressionTestMain supportInterpreter := true lean_exe «x25519-test» where root := `Tests.Drivers.X25519TestMain supportInterpreter := true lean_exe «aes-test» where root := `Tests.Drivers.AESTestMain supportInterpreter := true lean_exe «ghash-test» where root := `Tests.Drivers.GHASHTestMain supportInterpreter := true lean_exe «ghash-hw-test» where root := `Tests.Drivers.GHASHHWTestMain supportInterpreter := true -- Crypto HW modules (Wave 1: byte/word FSM tier). Each pairs a -- pure-data reference in `IP/Crypto/.lean` with a `circuit -- do` HW module in `IP/Crypto/HW.lean`; behavioural + synth -- checks live under `Tests/IP/Crypto/HWTest.lean`. lean_exe «rlp-hw-test» where root := `Tests.Drivers.RLPHWTestMain supportInterpreter := true lean_exe «merkle-hw-test» where root := `Tests.Drivers.MerkleHWTestMain supportInterpreter := true lean_exe «hkdf-hw-test» where root := `Tests.Drivers.HKDFHWTestMain supportInterpreter := true lean_exe «sha512-hw-test» where root := `Tests.Drivers.SHA512HWTestMain supportInterpreter := true lean_exe «aes-hw-test» where root := `Tests.Drivers.AESHWTestMain supportInterpreter := true lean_exe «aes-gcm-hw-test» where root := `Tests.Drivers.AESGCMHWTestMain supportInterpreter := true lean_exe «keccak256-hw-test» where root := `Tests.Drivers.Keccak256HWTestMain supportInterpreter := true lean_exe «probe-ghash» where root := `Tests.Drivers.ProbeGhashMain supportInterpreter := true lean_exe «aes-gcm-test» where root := `Tests.Drivers.AESGCMTestMain supportInterpreter := true lean_exe «hkdf-test» where root := `Tests.Drivers.HKDFTestMain supportInterpreter := true lean_exe «tls-keysched-test» where root := `Tests.Drivers.TLSKeyScheduleTestMain supportInterpreter := true lean_exe «tls-client-fsm-test» where root := `Tests.Drivers.TLSClientFsmTestMain supportInterpreter := true lean_exe «hft-over-tls-test» where root := `Tests.Drivers.HFTOverTLSTestMain supportInterpreter := true lean_exe «tls-x509-test» where root := `Tests.Drivers.TLSX509TestMain supportInterpreter := true lean_exe «sha512-check» where root := `Tests.Drivers.Sha512CheckMain supportInterpreter := true lean_exe «secp256k1-test» where root := `Tests.Drivers.Secp256k1TestMain supportInterpreter := true lean_exe «goldilocks-test» where root := `Tests.Drivers.GoldilocksTestMain supportInterpreter := true lean_exe «goldilocks-mul-hw-test» where root := `Tests.Drivers.GoldilocksHWTestMain supportInterpreter := true lean_exe «secp256k1-mul-hw-test» where root := `Tests.Drivers.Secp256k1FieldHWTestMain supportInterpreter := true lean_exe «secp256k1-pointop-hw-test» where root := `Tests.Drivers.Secp256k1PointOpHWTestMain supportInterpreter := true lean_exe «secp256k1-scalarmul-hw-test» where root := `Tests.Drivers.Secp256k1ScalarMulHWTestMain supportInterpreter := true lean_exe «modinv-hw-test» where root := `Tests.Drivers.ModInvHWTestMain supportInterpreter := true lean_exe «secp256k1-ordermul-hw-test» where root := `Tests.Drivers.Secp256k1OrderHWTestMain supportInterpreter := true lean_exe «secp256k1-ecdsa-hw-test» where root := `Tests.Drivers.Secp256k1ECDSAHWTestMain supportInterpreter := true lean_exe «ecdsa-sign-demo-test» where root := `Tests.Drivers.EcdsaSignDemoTestMain supportInterpreter := true -- JIT co-sim of the generated signCore hardware vs the pure-data -- `Secp256k1ECDSA.sign` (~1.8 M cycles per signature). lean_exe «ecdsa-sign-hw-jit-test» where root := `Tests.Drivers.EcdsaSignHWJITTestMain supportInterpreter := true -- JIT co-sim of the UART top `ecdsaSignDemo`: 96 request bytes in, 64 reply bytes out. -- Needs the map-lambda `!(c == k)` fix (before it, the TX streamer stopped after two bytes). lean_exe «ecdsa-sign-demo-hw-jit-test» where root := `Tests.Drivers.EcdsaSignDemoHWJITTestMain supportInterpreter := true -- Controls for the UART checker used by the UART-top JIT co-sims (synthetic -- traces, no JIT): each framing / reply / strobe check rejects its defect. lean_exe «uart-hw-jit-harness-test» where root := `Tests.Drivers.UartHWJITHarnessTestMain supportInterpreter := true -- JIT co-sim of the UART top `policySignDemo` (M1): accept path and policy -- refusals (0xEE reply + `rejected` strobe); checks start/stop bits and that -- no extra reply bytes appear. lean_exe «policy-sign-demo-hw-jit-test» where root := `Tests.Drivers.PolicySignDemoHWJITTestMain supportInterpreter := true -- JIT co-sim of the UART top `policySignDemoM2` (real EIP-1559 preimage): same -- checks as above. lean_exe «policy-sign-demo-m2-hw-jit-test» where root := `Tests.Drivers.PolicySignDemoM2HWJITTestMain supportInterpreter := true -- JIT co-sim of the UART top `fido2Demo` (getAssertion, 133-byte frame → r‖s), -- same serial-line checks. lean_exe «fido2-demo-hw-jit-test» where root := `Tests.Drivers.Fido2DemoHWJITTestMain supportInterpreter := true lean_exe «tx-policy-test» where root := `Tests.Drivers.TxPolicyTestMain supportInterpreter := true lean_exe «keccak256-sponge-test» where root := `Tests.Drivers.Keccak256SpongeTestMain supportInterpreter := true -- JIT co-sim: real-cycle validation of the sponge FSM (the block-loop -- handshake timing the pure-Lean Signal.val interpreter can't reach — -- see issue #95). Lowers via #sim → CSim.toCJIT → native, then drives -- the actual hardware cycle-by-cycle and reads the digest out. lean_exe «keccak256-sponge-jit-test» where root := `Tests.Drivers.Keccak256SpongeJITTestMain supportInterpreter := true -- JIT co-sim of the SHA-256 block core (`sha256Block`): known digests of -- "abc" and multi-block messages, ports addressed by name. lean_exe «sha256-jit-test» where root := `Tests.Drivers.SHA256JITTestMain supportInterpreter := true -- JIT co-sim of the multi-block streaming wrapper (`sha256StreamHW`): -- FIPS 180-4 vectors incl. the 448/896-bit two-block messages. lean_exe «sha256-stream-jit-test» where root := `Tests.Drivers.SHA256StreamJITTestMain supportInterpreter := true -- JIT co-sim of the HMAC-SHA256 FSM (`hmacSha256`): RFC 4231 cases 1-6. lean_exe «hmac-sha256-jit-test» where root := `Tests.Drivers.HMACSHA256JITTestMain supportInterpreter := true -- JIT co-sim of the RFC 6979 nonce FSM (`rfc6979HW`, secp256k1 + SHA-256). lean_exe «rfc6979-jit-test» where root := `Tests.Drivers.Rfc6979JITTestMain supportInterpreter := true -- Fixed-point control datapaths (IIR biquad / PID / LQR). Each driver runs the -- cycle-by-cycle sim; the `#synthesizeVerilog` checks live in the test modules -- and run at `lake build` time. lean_exe «control-iir-test» where root := `Tests.Drivers.ControlIIRBiquadTestMain supportInterpreter := true lean_exe «control-pid-test» where root := `Tests.Drivers.ControlPIDTestMain supportInterpreter := true lean_exe «control-lqr-test» where root := `Tests.Drivers.ControlLQRTestMain supportInterpreter := true lean_exe «control-precision-sweep» where root := `Tests.Drivers.ControlPrecisionSweepTestMain supportInterpreter := true lean_exe «control-observer-test» where root := `Tests.Drivers.ControlObserverTestMain supportInterpreter := true lean_exe «control-jit-test» where root := `Tests.Drivers.ControlJITTestMain supportInterpreter := true -- Structural lint over emitted RTL (undeclared wires, pinned register / -- instance counts). Guards the miscompile class that Lean-side checks and -- `#synthesizeVerilog` both miss; the run_meta checks fail `lake build`. lean_exe «rtl-structure-test» where root := `Tests.Drivers.RtlStructureTestMain supportInterpreter := true -- Concat lambda argument order: source value vs evaluated synthesised IR. lean_exe «concat-lambda-order-test» where root := `Tests.Drivers.ConcatLambdaOrderTestMain supportInterpreter := true -- Unary `<$>` lambdas with `!` over a compound term (`!(c == 0#7)`): -- source value vs evaluated synthesised IR. lean_exe «map-not-eq-test» where root := `Tests.Drivers.MapNotEqTestMain supportInterpreter := true lean_exe «policy-sign-demo-test» where root := `Tests.Drivers.PolicySignDemoTestMain supportInterpreter := true lean_exe «ecdsa-sign-small-sim» where root := `Tests.Drivers.EcdsaSignSmallSim supportInterpreter := true lean_exe «ecdsa-sign-small-jit» where root := `Tests.Drivers.EcdsaSignSmallJIT supportInterpreter := true lean_exe «policy-sign-demo-m2-test» where root := `Tests.Drivers.PolicySignDemoM2TestMain supportInterpreter := true lean_exe «ctap2-data-test» where root := `Tests.Drivers.CTAP2DataTestMain supportInterpreter := true lean_exe «fido2-demo-test» where root := `Tests.Drivers.Fido2DemoTestMain supportInterpreter := true lean_exe «p256-point-jac-test» where root := `Tests.Drivers.P256PointJacTestMain supportInterpreter := true lean_exe «p256-point-op-hw-test» where root := `Tests.Drivers.P256PointOpHWTestMain supportInterpreter := true lean_exe «p256-scalar-mul-hw-test» where root := `Tests.Drivers.P256ScalarMulHWTestMain supportInterpreter := true lean_exe «p256-order-hw-test» where root := `Tests.Drivers.P256OrderHWTestMain supportInterpreter := true lean_exe «p256-ecdsa-hw-test» where root := `Tests.Drivers.P256ECDSAHWTestMain supportInterpreter := true lean_exe «p256-sign-core-test» where root := `Tests.Drivers.P256SignDemoTestMain supportInterpreter := true -- JIT co-sim of the generated p256SignCore hardware vs `P256ECDSA.sign`. lean_exe «p256-sign-hw-jit-test» where root := `Tests.Drivers.P256SignHWJITTestMain supportInterpreter := true lean_exe «sha256-stream-test» where root := `Tests.Drivers.SHA256StreamTestMain supportInterpreter := true lean_exe «sha512-block-hw-test» where root := `Tests.Drivers.SHA512BlockHWTestMain supportInterpreter := true lean_exe «hmac-sha512-hw-test» where root := `Tests.Drivers.HMACSHA512HWTestMain supportInterpreter := true lean_exe «bip32-ckd-hw-test» where root := `Tests.Drivers.BIP32CKDHWTestMain supportInterpreter := true lean_exe «eip1559-envelope-hw-test» where root := `Tests.Drivers.Eip1559EnvelopeHWTestMain supportInterpreter := true lean_exe «p256-mul-hw-test» where root := `Tests.Drivers.P256FieldHWTestMain supportInterpreter := true lean_exe «ed25519-mul-hw-test» where root := `Tests.Drivers.Ed25519FieldHWTestMain supportInterpreter := true lean_exe «ed25519-pointop-hw-test» where root := `Tests.Drivers.Ed25519PointOpHWTestMain supportInterpreter := true lean_exe «ed25519-scalarmul-hw-test» where root := `Tests.Drivers.Ed25519ScalarMulHWTestMain supportInterpreter := true lean_exe «ed25519-sign-hw-test» where root := `Tests.Drivers.Ed25519SignHWTestMain supportInterpreter := true lean_exe «bls12381-test» where root := `Tests.Drivers.BLS12381TestMain supportInterpreter := true lean_exe «fp381-montmul-hw-test» where root := `Tests.Drivers.Fp381MontMulHWTestMain supportInterpreter := true lean_exe «fp2-mul-hw-test» where root := `Tests.Drivers.Fp2MulHWTestMain supportInterpreter := true lean_exe «fp6-mul-hw-test» where root := `Tests.Drivers.Fp6MulHWTestMain supportInterpreter := true lean_exe «fp12-mul-hw-test» where root := `Tests.Drivers.Fp12MulHWTestMain supportInterpreter := true lean_exe «bls12-miller-proj-test» where root := `Tests.Drivers.BLS12MillerProjTestMain supportInterpreter := true lean_exe «bls12-miller-hw-test» where root := `Tests.Drivers.BLS12MillerHWTestMain supportInterpreter := true lean_exe «g2-pointop-hw-test» where root := `Tests.Drivers.G2PointOpHWTestMain supportInterpreter := true lean_exe «g2-scalarmul-hw-test» where root := `Tests.Drivers.G2ScalarMulHWTestMain supportInterpreter := true lean_exe «merkle-test» where root := `Tests.Drivers.MerkleTestMain supportInterpreter := true lean_exe «polynomial-test» where root := `Tests.Drivers.PolynomialTestMain supportInterpreter := true lean_exe «mini-stark-test» where root := `Tests.Drivers.MiniSTARKTestMain supportInterpreter := true lean_exe «pcie-test» where root := `Tests.Drivers.PCIeTestMain supportInterpreter := true lean_exe «pcie-hft-test» where root := `Tests.Drivers.PCIeHFTTestMain supportInterpreter := true lean_exe «sim-cost» where root := `Tests.Drivers.SimCostMain supportInterpreter := true lean_exe «sparkle-bitnet-verilog-dump» where root := `Tests.BitNet.SparkleBitNetVerilogDump lean_exe «sparkle-rv32-sim» where root := `Tests.RV32.SimTest lean_exe «sparkle-rv32-min» where root := `Tests.RV32.MinTest lean_exe «rv32-flow-test» where root := `Tests.RV32.TestFlowMain lean_exe «rv32-lean-sim-runner» where root := `Tests.RV32.LeanSimRunner lean_exe «rv32-jit-test» where root := `Tests.RV32.JITTest lean_exe «rv32-jit-loop-test» where root := `Tests.RV32.JITLoopTest lean_exe «rv32-jit-cycle-skip-test» where root := `Tests.RV32.JITCycleSkipTest supportInterpreter := true lean_exe «rv32-jit-oracle-test» where root := `Tests.RV32.JITOracleTest supportInterpreter := true lean_exe «rv32-jit-dynamic-warp-test» where root := `Tests.RV32.JITDynamicWarpTest supportInterpreter := true lean_exe «rv32-jit-speculative-warp-test» where root := `Tests.RV32.JITSpeculativeWarpTest supportInterpreter := true lean_exe «rv32-jit-boot-oracle-test» where root := `Tests.RV32.JITBootOracleTest supportInterpreter := true lean_exe «oracle-accuracy-test» where root := `Tests.RV32.OracleAccuracyTest supportInterpreter := true lean_exe «rv32-jit-linux-boot-test» where root := `Tests.RV32.JITLinuxBootTest supportInterpreter := true lean_exe «bitnet-mmio-probe» where root := `Tests.RV32.BitNetMmioProbe supportInterpreter := true -- End-to-end Linux driver test: boots a kernel image patched with the -- in-tree sparkle-bitnet driver and an initramfs /init that exercises -- /dev/bitnet0 against 8 golden vectors. Asserts on UART markers -- "sparkle-bitnet … registered" + "BITNET PASS". lean_exe «bitnet-linux-test» where root := `Tests.Integration.BitNetLinuxTest supportInterpreter := true lean_exe «h264-jit-test» where root := `Tests.Video.H264JITTest supportInterpreter := true lean_exe «h264-jit-pipeline-test» where root := `Tests.Video.H264JITPipelineTest supportInterpreter := true lean_exe «h264-bitstream-test» where root := `Tests.Video.H264BitstreamTest supportInterpreter := true lean_exe «h264-playable-test» where root := `Tests.Video.H264PlayableTest supportInterpreter := true lean_exe «h264-frame-encoder-test» where root := `Tests.Video.H264FrameEncoderTest supportInterpreter := true lean_exe «h264-mp4-encoder-test» where root := `Tests.Video.H264MP4EncoderTest supportInterpreter := true lean_exe «cdc-multi-clock-test» where root := `Tests.CDC.MultiClockTest supportInterpreter := true lean_exe «sim-runner-test» where root := `Tests.Sim.SimRunnerTest supportInterpreter := true lean_exe «bitnet-soc-test» where root := `Tests.Integration.BitNetSoCTest supportInterpreter := true lean_exe «timemux-sim-test» where root := `Tests.Synthesis.TimeMuxSim supportInterpreter := true lean_exe «golden-compare-test» where root := `Tests.Synthesis.GoldenCompare supportInterpreter := true lean_exe «ffn-golden-test» where root := `Tests.Synthesis.FFNGolden supportInterpreter := true lean_exe «toplevel-sim-test» where root := `Tests.Synthesis.TopLevelSim supportInterpreter := true lean_exe «shl-width-test» where root := `Tests.Drivers.ShlWidthTestMain supportInterpreter := true lean_exe «svparser-test» where root := `Tests.SVParser.ParserTest supportInterpreter := true lean_exe «verilog-sim-le» where root := `Examples.SVParser.VerilogSim supportInterpreter := true lean_exe «generate-verify» where root := `Tools.SVParser.GenerateVerify supportInterpreter := true lean_exe «circuit-sim-test» where root := `Tests.Circuit.SimTest supportInterpreter := true lean_exe «mext-rv32i-test» where root := `Tests.SVParser.MExtRv32iTest supportInterpreter := true lean_exe «mul-oracle-test» where root := `Tests.RV32.MulOracleTest supportInterpreter := true lean_exe «litex-test» where root := `Tests.SVParser.LiteXTest supportInterpreter := true lean_exe «drone-closed-loop-test» where root := `Tests.Integration.DroneClosedLoopSim supportInterpreter := true lean_exe «iverilog-roundtrip-test» where root := `Tests.Drivers.IVerilogSimMain supportInterpreter := true @[test_driver] lean_exe «test» where root := `Tests.AllTests supportInterpreter := true lean_exe «ecdsa-sign-small-jit-dbg» where root := `Tests.Drivers.EcdsaSignSmallJITDbg supportInterpreter := true lean_exe «mem-jit-test» where root := `Tests.Drivers.MemJITTest supportInterpreter := true lean_exe «rf-jit-test» where root := `Tests.Drivers.RfJITTest supportInterpreter := true lean_exe «alu-lite-jit» where root := `Tests.Drivers.AluLiteJIT supportInterpreter := true lean_exe «add-jit» where root := `Tests.Drivers.AddJIT supportInterpreter := true lean_exe «mul-jit» where root := `Tests.Drivers.MulJIT supportInterpreter := true lean_exe «pd-jit» where root := `Tests.Drivers.PdJIT supportInterpreter := true lean_exe «addpt-jit» where root := `Tests.Drivers.AddPtJIT supportInterpreter := true lean_exe «ladder-jit» where root := `Tests.Drivers.LadderJIT supportInterpreter := true lean_exe «dblip-jit» where root := `Tests.Drivers.DblIPJIT supportInterpreter := true lean_exe «addip-jit» where root := `Tests.Drivers.AddIPJIT supportInterpreter := true lean_exe «exp-jit» where root := `Tests.Drivers.ExpJIT supportInterpreter := true lean_exe «sign-jit» where root := `Tests.Drivers.SignJIT supportInterpreter := true lean_exe «signcore-jit» where root := `Tests.Drivers.SignCoreJIT supportInterpreter := true lean_exe «signdemo-jit» where root := `Tests.Drivers.SignDemoJIT supportInterpreter := true lean_exe «keccak-sponge-jit» where root := `Tests.Drivers.KeccakSpongeJIT supportInterpreter := true lean_exe «keccakf-jit» where root := `Tests.Drivers.KeccakFJIT supportInterpreter := true lean_exe «signz-small-jit» where root := `Tests.Drivers.SignZSmallJIT supportInterpreter := true lean_exe «signmsg-small-jit» where root := `Tests.Drivers.SignMsgSmallJIT supportInterpreter := true lean_exe «signmsg-demo-jit» where root := `Tests.Drivers.SignMsgDemoJIT supportInterpreter := true lean_exe «signz-demo-jit» where root := `Tests.Drivers.SignZDemoJIT supportInterpreter := true lean_exe «mulmodser-jit» where root := `Tests.Drivers.MulModSerJIT supportInterpreter := true lean_lib «Tests.Ved.U1StageCheck» where roots := #[`Tests.Ved.U1StageCheck] lean_lib «Tools.VedU2HierSem» where roots := #[`Tools.VedU2HierSem] lean_lib «Tools.VedU2HierProj» where roots := #[`Tools.VedU2HierProj] lean_lib «Tools.VedU2HierOrder» where roots := #[`Tools.VedU2HierOrder] lean_lib «Tools.VedU2HierStmt» where roots := #[`Tools.VedU2HierStmt] lean_lib «Tools.VedU2HierKid» where roots := #[`Tools.VedU2HierKid] lean_lib «Tools.VedU2HierReg» where roots := #[`Tools.VedU2HierReg] lean_lib «Tools.VedU2HierStep» where roots := #[`Tools.VedU2HierStep] lean_lib «Tools.VedU2HierState» where roots := #[`Tools.VedU2HierState] lean_lib «Tools.VedU2HierNet» where roots := #[`Tools.VedU2HierNet] lean_lib «Tools.VedU2HierEntry» where roots := #[`Tools.VedU2HierEntry] lean_lib «Tools.VedU2HierStGen» where roots := #[`Tools.VedU2HierStGen] lean_lib «Tools.VedU2HierRegEntry» where roots := #[`Tools.VedU2HierRegEntry] lean_lib «Tests.Ved.U2HierSemCheck» where roots := #[`Tests.Ved.U2HierSemCheck] lean_lib «Tests.Ved.H2OpenParentProbe» where roots := #[`Tests.Ved.H2OpenParentProbe] lean_lib «Tests.Ved.U2HierRegCheck» where roots := #[`Tests.Ved.U2HierRegCheck] lean_lib «Tests.IP.Net.HTTPTest» where roots := #[`Tests.IP.Net.HTTPTest] lean_lib «Tests.Ved.U2HierStateCallCheck» where roots := #[`Tests.Ved.U2HierStateCallCheck] lean_lib «Tests.Ved.U2HierMultiCheck» where roots := #[`Tests.Ved.U2HierMultiCheck] lean_lib «Tests.Ved.ComposeCheckUtil» where roots := #[`Tests.Ved.ComposeCheckUtil] lean_lib «Tests.Ved.ComposeStepCheck» where roots := #[`Tests.Ved.ComposeStepCheck] lean_lib «Tests.Ved.U2HierPartialDeepCheck» where roots := #[`Tests.Ved.U2HierPartialDeepCheck] lean_lib «Tests.Ved.U2HierOpenDeepCheck» where roots := #[`Tests.Ved.U2HierOpenDeepCheck] lean_lib «Tests.Ved.U2HierOpenDeep2Check» where roots := #[`Tests.Ved.U2HierOpenDeep2Check] lean_lib «Tests.Ved.U2HierOpenDeep3Check» where roots := #[`Tests.Ved.U2HierOpenDeep3Check] lean_lib «Tests.Ved.U2HierNestedInlineCheck» where roots := #[`Tests.Ved.U2HierNestedInlineCheck] lean_lib «Tests.Ved.U2HierWireCheck» where roots := #[`Tests.Ved.U2HierWireCheck] lean_lib «Tests.Ved.U2HierCheck» where roots := #[`Tests.Ved.U2HierCheck] lean_lib «Tests.Ved.U2HierPin» where roots := #[`Tests.Ved.U2HierPin] lean_lib «Tools.VedInvocationDom» where roots := #[`Tools.VedInvocationDom] lean_lib «Tools.VedInvocation» where roots := #[`Tools.VedInvocation] lean_lib «Tests.Ved.InvocationCheck» where roots := #[`Tests.Ved.InvocationCheck] lean_lib «Tests.Ved.U1StructOutCheck» where roots := #[`Tests.Ved.U1StructOutCheck] lean_lib «Tests.Ved.U1StructSeqCheck» where roots := #[`Tests.Ved.U1StructSeqCheck] lean_lib «Tools.VedWriteForms» where roots := #[`Tools.VedWriteForms] lean_lib «Tests.Ved.WriteFormsCheck» where roots := #[`Tests.Ved.WriteFormsCheck] lean_lib «Tools.VedWriteChecked» where roots := #[`Tools.VedWriteChecked] lean_lib «Tests.Ved.WriteCheckedCheck» where roots := #[`Tests.Ved.WriteCheckedCheck] lean_lib «Tools.VedMemClassify» where roots := #[`Tools.VedMemClassify] lean_lib «Tools.VedMem» where roots := #[`Tools.VedMem] lean_lib «Tools.VedMemEntry» where roots := #[`Tools.VedMemEntry] lean_lib «Tools.VedSupplement» where roots := #[`Tools.VedSupplement] lean_lib «Tools.VedMemLoop» where roots := #[`Tools.VedMemLoop] lean_lib «Tools.VedMemS94Diag» where roots := #[`Tools.VedMemS94Diag] lean_lib «Tools.VedMemCausalProbe» where roots := #[`Tools.VedMemCausalProbe] lean_lib «Tools.VedMemPack» where roots := #[`Tools.VedMemPack] lean_lib «Tools.VedMemShape» where roots := #[`Tools.VedMemShape] lean_lib «Tools.VedMemNest» where roots := #[`Tools.VedMemNest] lean_lib «Tools.VedMemOrder» where roots := #[`Tools.VedMemOrder] lean_lib «Tools.VedU1OrderFast» where roots := #[`Tools.VedU1OrderFast] lean_lib «Tools.VedMemWidth» where roots := #[`Tools.VedMemWidth] lean_lib «Tests.Ved.ComposeConnectCheck» where roots := #[`Tests.Ved.ComposeConnectCheck] lean_lib «Tests.Ved.ComposeDeadSlotCheck» where roots := #[`Tests.Ved.ComposeDeadSlotCheck] lean_lib «Tools.VedComposeMultiOut» where roots := #[`Tools.VedComposeMultiOut] lean_lib «Tools.VedH3ChildChainLemmas» where roots := #[`Tools.VedH3ChildChainLemmas] lean_lib «Tools.VedU2HierMultiOut» where roots := #[`Tools.VedU2HierMultiOut] lean_lib «Tests.Ved.MultiOutCheck» where roots := #[`Tests.Ved.MultiOutCheck] lean_lib «Tests.Ved.MultiOutProbe» where roots := #[`Tests.Ved.MultiOutProbe] lean_lib «Tools.VedU2HierMultiOutH» where roots := #[`Tools.VedU2HierMultiOutH] lean_lib «Tests.Ved.VedCtrlAsyncCheck» where roots := #[`Tests.Ved.VedCtrlAsyncCheck] lean_lib «Tests.Ved.VedSharedRefsCheck» where roots := #[`Tests.Ved.VedSharedRefsCheck] lean_lib «Tests.Ved.VedSharedRefsEnvCheck» where roots := #[`Tests.Ved.VedSharedRefsEnvCheck] -- JIT co-sim of the plain UART blocks `uartTxHW` / `uartRxHW`: frame -- bit slots, txReady busy window per frame, one 1-cycle rxValid per frame in -- its stop window with the right byte; synthetic controls for both checkers. lean_exe «uart-hw-jit-test» where root := `Tests.Drivers.UartHWJITTestMain supportInterpreter := true -- CI (group usb-webserver): after a frame with a low stop bit, `uartRxHW` must report no byte for it, -- no phantom byte, and the next frame intact (regression for the framing-error fix). lean_exe «uart-rx-framing-error-hw-jit-test» where root := `Tests.Drivers.UartRxFramingErrorHWJITTestMain supportInterpreter := true -- JIT co-sim of the SPI master `spiMasterHW`: cs / done per transfer, 16 SCLK -- toggles, MOSI at the sampling edge, misoByte vs a slave model, modes 0-3, -- bitDiv 0/1/3, starts on arbitrary cycles; checker + live negative controls. lean_exe «spi-hw-jit-test» where root := `Tests.Drivers.SpiHWJITTestMain supportInterpreter := true -- JIT co-sim of the SLIP framer / deframer: per-cycle txValid/txByte/txReady and -- outValid/outByte/frameDone against the pure encoder/decoder; checker controls. lean_exe «slip-hw-jit-test» where root := `Tests.Drivers.SlipHWJITTestMain supportInterpreter := true -- JIT co-sim of the I2C master `i2cMasterHW`: busy exactly once per start (rise at -- start+1, width 39 half-periods, start pulse on any idle cycle), per-half-slot -- state / SCL / SDA against the documented FSM plus the I2C bus view (START, bits at -- SCL rises, SDA stable while SCL high, STOP); extra start while busy ignored; -- checker + live negative controls. lean_exe «i2c-hw-jit-test» where root := `Tests.Drivers.I2CHWJITTestMain supportInterpreter := true -- JIT co-sim of the memcached KV engine `kvHw`: replyValid exactly once per command -- at the slot-dependent cycle, busy window, reply kind / VALUE fields vs the pure -- oracle over a 63-command script (FIFO wrap); checker + live negative controls. lean_exe «memcached-hw-jit-test» where root := `Tests.Drivers.MemcachedHWJITTestMain supportInterpreter := true -- A start pulse while busy must be ignored: the in-flight get still replies VALUE. lean_exe «memcached-hw-busy-start-probe» where root := `Tests.Drivers.MemcachedHWBusyStartProbeMain supportInterpreter := true -- JIT co-sim of the CAN-family HW blocks: crc15HW (start/valid/hold vs crc15Step, real -- frames incl. residue), nmtStateFsmHW (vs the NmtCommand table) and the DroneCAN -- transferIdTrackerHW error strobe (by-construction timeline); controls for each. lean_exe «can-family-hw-jit-test» where root := `Tests.Drivers.CanFamilyHWJITTestMain supportInterpreter := true -- Controls for the generic done-once-per-request checker used by the crypto core -- JIT co-sims (synthetic traces, no JIT). lean_exe «done-hw-jit-harness-test» where root := `Tests.Drivers.DoneHWJITHarnessTestMain supportInterpreter := true -- Done-once-per-request JIT co-sim of `sha256Block` (generic DoneHWJITHarness). lean_exe «sha256-block-done-hw-jit-test» where root := `Tests.Drivers.Sha256BlockDoneHWJITTestMain supportInterpreter := true lean_exe «sha256-stream-done-hw-jit-test» where root := `Tests.Drivers.Sha256StreamDoneHWJITTestMain supportInterpreter := true lean_exe «hmac-sha256-done-hw-jit-test» where root := `Tests.Drivers.HmacSha256DoneHWJITTestMain supportInterpreter := true lean_exe «keccak256-sponge-done-hw-jit-test» where root := `Tests.Drivers.Keccak256SpongeDoneHWJITTestMain supportInterpreter := true lean_exe «rfc6979-done-hw-jit-test» where root := `Tests.Drivers.Rfc6979DoneHWJITTestMain supportInterpreter := true -- JIT co-sim of the framing blocks of LIN (checksumHW, pidParityHW), CRSF (crc8HW), -- S.BUS (frameAccumulatorHW) and MIL-STD-1553 (oddParityHW, manchesterEncoderHW): -- per-cycle models, frame-level done / error indications (footerOk once per good frame, -- checksum / CRC residue, parity), controls. lean_exe «bus-framing-hw-jit-test» where root := `Tests.Drivers.BusFramingHWJITTestMain supportInterpreter := true -- JIT co-sim of the ARP parser / responder / requester: per packet one `done` -- one cycle after the last byte, 28-byte reply / request bursts, cache capture, -- plus every output of every cycle against a cycle model (directed + random). lean_exe «arp-hw-jit-test» where root := `Tests.Drivers.ArpHWJITTestMain supportInterpreter := true -- JIT co-sim of the ICMP echo parser / responder / requester: one `done` per packet, -- 8-cycle reply / request bursts, replyOk only for the matching reply, every output of -- every cycle against a cycle model (directed + random). lean_exe «icmp-hw-jit-test» where root := `Tests.Drivers.IcmpHWJITTestMain supportInterpreter := true -- JIT co-sim of the Ethernet RX / TX framers: hdrDone once per frame, header fields and -- payload beats, TX wire stream / sop / eop / valid, every output of every cycle against -- a cycle model (directed + random). lean_exe «ethernet-hw-jit-test» where root := `Tests.Drivers.EthernetHWJITTestMain supportInterpreter := true -- PROBE, NOT IN CI (expected rc=1 until fixed): rxFramer reports a phantom payload beat -- (payloadValid with the new frame's first DMAC byte) in the sop cycle of every frame after -- the first, because the payload state is sticky. lean_exe «ethernet-rx-sop-payload-hw-jit-probe» where root := `Tests.Drivers.EthernetRxSopPayloadHWJITProbeMain supportInterpreter := true -- JIT co-sim of the IPv4 checksum / TX header builder / RX parser: checksum vs the pure -- function, 20-cycle header bursts, done once per packet, headerOk timing, every output of -- every cycle against a cycle model (directed + random). lean_exe «ipv4-hw-jit-test» where root := `Tests.Drivers.Ipv4HWJITTestMain supportInterpreter := true -- PROBE, NOT IN CI (expected rc=1 until fixed): ipv4RxParser.headerOk lags `done` by one -- cycle (documented as sampled together with done) and rejects a valid header with TTL != 64. lean_exe «ipv4-rx-headerok-hw-jit-probe» where root := `Tests.Drivers.Ipv4RxHeaderOkHWJITProbeMain supportInterpreter := true -- JIT co-sim of the TCP checksum / header byte mux / RX parser: checksum and every header -- byte vs the pure layout, one `done` per segment, every output of every cycle against a -- cycle model (directed + random). (TCP.lean has no TX burst wrapper.) lean_exe «tcp-hw-jit-test» where root := `Tests.Drivers.TcpHWJITTestMain supportInterpreter := true -- JIT co-sim of the HTTP burst emitters / request parser / status parser: 18- and 34-byte -- bursts, 'GET ' pulse timing and near misses, status digits and done, every output of every -- cycle against a cycle model (directed + random). lean_exe «http-hw-jit-test» where root := `Tests.Drivers.HttpHWJITTestMain supportInterpreter := true -- PROBE, NOT IN CI (expected rc=1 until fixed): httpRequestParser skips the byte after a -- recognised "GET ", so an immediately following "GET " is missed. lean_exe «http-request-parser-hw-jit-probe» where root := `Tests.Drivers.HttpRequestParserHWJITProbeMain supportInterpreter := true -- PROBE, NOT IN CI (expected rc=1 until fixed): parser counters wrap on trailing valid bytes -- (second `done` / echo reply) and builders accept a new start while a burst is in flight -- (burst cut, no `last`). lean_exe «net-hazards-hw-jit-probe» where root := `Tests.Drivers.NetHazardsHWJITProbeMain supportInterpreter := true -- Cycle-accurate JIT co-sim of the memcached byte-stream server: outValid runs (length, start -- cycle, bytes) vs the pure oracle + T1 wire format, and every cycle vs an FSM model -- (directed schedules, junk, dropped commands, random streams). lean_exe «memcached-server-hw-jit-test» where root := `Tests.Drivers.MemcachedServerHWJITTestMain supportInterpreter := true -- PROBE, NOT IN CI (expected rc=1 until fixed): a command line terminated by a bare LF is -- never executed by memcachedServer (state KEY ignores LF). lean_exe «memcached-server-hw-jit-probe» where root := `Tests.Drivers.MemcachedServerHWJITProbeMain supportInterpreter := true -- Cycle-level JIT co-sim of the USB web server: txSequencer `valid` / byte / frameEnd, sopPulse, -- and the real `usbWebServer` end to end on its serial pins (reply bytes, framing, no extra frames). lean_exe «usb-webserver-hw-jit-test» where root := `Tests.Drivers.UsbWebServerHWJITTestMain supportInterpreter := true -- PROBE, NOT IN CI (expected rc=1 until fixed): usbWebServer sends only the first byte of its -- response (txSequencer streams 1 byte/cycle into the UART with no flow control). lean_exe «usb-webserver-e2e-hw-jit-probe» where root := `Tests.Drivers.UsbWebServerE2EHWJITProbeMain supportInterpreter := true -- Cycle-accurate JIT co-sim of `rlpHeaderHW` (byte stream, valid, done per cycle). lean_exe «rlp-hw-jit-test» where root := `Tests.Drivers.RLPHWJITTestMain supportInterpreter := true -- Probe: `rlpHeaderHW` start pulse while a header is being emitted. lean_exe «rlp-hw-busy-start-probe» where root := `Tests.Drivers.RLPHWBusyStartProbeMain supportInterpreter := true -- Cycle-accurate JIT co-sim of `eip1559EnvelopeHW` (byte stream, valid, done per cycle). lean_exe «eip1559-envelope-hw-jit-test» where root := `Tests.Drivers.Eip1559EnvelopeHWJITTestMain supportInterpreter := true -- Probe: `eip1559EnvelopeHW` start pulse while a header is being emitted. lean_exe «eip1559-envelope-hw-busy-start-probe» where root := `Tests.Drivers.Eip1559EnvelopeHWBusyStartProbeMain supportInterpreter := true -- Done-once-per-request JIT co-sim of `GoldilocksHW.mulHW` (generic DoneHWJITHarness). lean_exe «goldilocks-hw-jit-test» where root := `Tests.Drivers.GoldilocksHWJITTestMain supportInterpreter := true -- Probe: `mulHW` start pulse while a multiply is running. lean_exe «goldilocks-hw-busy-start-probe» where root := `Tests.Drivers.GoldilocksHWBusyStartProbeMain supportInterpreter := true -- Done-once-per-request JIT co-sim (generic DoneHWJITHarness): GmulHWJITTest. lean_exe «gmul-hw-jit-test» where root := `Tests.Drivers.GmulJITTestMain supportInterpreter := true -- Probe: start pulse while the core is busy (GmulHWJITTest). lean_exe «gmul-hw-busy-start-probe» where root := `Tests.Drivers.GmulBusyStartProbeMain supportInterpreter := true -- Done-once-per-request JIT co-sim (generic DoneHWJITHarness): SHA512BlockHWJITTest. lean_exe «sha512-block-hw-jit-test» where root := `Tests.Drivers.SHA512BlockHWJITTestMain supportInterpreter := true -- Probe: start pulse while the core is busy (SHA512BlockHWJITTest). lean_exe «sha512-block-hw-busy-start-probe» where root := `Tests.Drivers.SHA512BlockHWBusyStartProbeMain supportInterpreter := true -- Done-once-per-request JIT co-sim (generic DoneHWJITHarness): KeccakFHWJITTest. lean_exe «keccakf-hw-jit-test» where root := `Tests.Drivers.KeccakFHWJITTestMain supportInterpreter := true -- Probe: start pulse while the core is busy (KeccakFHWJITTest). lean_exe «keccakf-hw-busy-start-probe» where root := `Tests.Drivers.KeccakFHWBusyStartProbeMain supportInterpreter := true -- Closed-loop JIT co-sim of the `hmacSha512HW` controller (block engine modelled in the testbench). lean_exe «hmac-sha512-hw-jit-test» where root := `Tests.Drivers.HMACSHA512HWJITTestMain supportInterpreter := true -- Closed-loop JIT co-sim of `ckdPrivHW` (block engine modelled in the testbench). lean_exe «bip32-ckd-hw-jit-test» where root := `Tests.Drivers.BIP32CKDHWJITTestMain supportInterpreter := true -- Cycle-accurate JIT co-sim of `merkleRootHW` (SHA-256 combiner modelled in the testbench). lean_exe «merkle-hw-jit-test» where root := `Tests.Drivers.MerkleHWJITTestMain supportInterpreter := true -- Closed-loop JIT co-sim of the `modInvHW` controller (field multiplier modelled in the testbench). lean_exe «mod-inv-hw-jit-test» where root := `Tests.Drivers.ModInvHWJITTestMain supportInterpreter := true -- Probe: `modInvHW` start pulse while an inverse is running. lean_exe «mod-inv-hw-busy-start-probe» where root := `Tests.Drivers.ModInvHWBusyStartProbeMain supportInterpreter := true -- Cycle-accurate JIT co-sim of `hkdfExpandHW` (HMAC round modelled in the testbench). lean_exe «hkdf-hw-jit-test» where root := `Tests.Drivers.HKDFHWJITTestMain supportInterpreter := true -- Cycle-accurate JIT co-sim of `ghashFullHW` (ready / result / acceptance per cycle, even-operand blocks). lean_exe «ghash-full-hw-jit-test» where root := `Tests.Drivers.GHashFullHWJITTestMain supportInterpreter := true -- Probe: `ghashFullHW` over natural blocks (exposes the gmulHW dropped-bit defect). lean_exe «ghash-hw-natural-blocks-probe» where root := `Tests.Drivers.GHashFullNaturalProbeMain supportInterpreter := true -- Probe: `ghashFullHW` start while busy / together with blockValid. lean_exe «ghash-hw-start-busy-probe» where root := `Tests.Drivers.GHashFullStartBusyProbeMain supportInterpreter := true -- Cycle-accurate JIT co-sim of the AES-GCM glue (`gcmCounterHW`, `gcmTagAccumulatorHW`). lean_exe «aes-gcm-hw-jit-test» where root := `Tests.Drivers.AESGCMHWJITTestMain supportInterpreter := true -- Probe: `gcmTagAccumulatorHW` mulDone while idle. lean_exe «gcm-tag-acc-stale-done-probe» where root := `Tests.Drivers.GcmTagAccStaleDoneProbeMain supportInterpreter := true -- Done-once-per-request JIT co-sim of the curve-core modular multipliers (secp256k1, P-256, Ed25519 field and order, BLS12-381 Fp Montgomery). lean_exe «curve-mul-hw-jit-test» where root := `Tests.Drivers.FieldMulHWJITTestMain supportInterpreter := true -- Probe: start pulse while a curve-core multiplier is running. lean_exe «curve-mul-busy-start-probe» where root := `Tests.Drivers.CurveMulBusyStartProbeMain supportInterpreter := true -- Probe: `merkleRootHW` 16th leaf (the root of a full 4-level tree has no slot). lean_exe «merkle-hw-overflow-probe» where root := `Tests.Drivers.MerkleHWOverflowProbeMain supportInterpreter := true -- Closed-loop JIT co-sim of the secp256k1 / P-256 point-op and ladder scalar-mul FSMs (engines modelled in the testbench). lean_exe «secp256k1-jac-hw-jit-test» where root := `Tests.Drivers.CurveJacHWJITTestMain supportInterpreter := true lean_exe «p256-jac-hw-jit-test» where root := `Tests.Drivers.P256JacHWJITTestMain supportInterpreter := true -- Closed-loop JIT co-sim of the Ed25519 point-op and scalar-mul FSMs (engines modelled in the testbench). lean_exe «ed25519-point-hw-jit-test» where root := `Tests.Drivers.Ed25519PointHWJITTestMain supportInterpreter := true -- Closed-loop JIT co-sim of the BLS12-381 G2 point-op and scalar-mul FSMs (engines modelled in the testbench). lean_exe «g2-point-hw-jit-test» where root := `Tests.Drivers.G2PointHWJITTestMain supportInterpreter := true -- Probe: BLS12-381 Fp Montgomery multiplier through the JIT (fails: the C backend's wide multiply is truncated). lean_exe «fp381-mont-hw-jit-probe» where root := `Tests.Drivers.Fp381MontHWJitProbeMain supportInterpreter := true -- Probe: `hmacSha512HW` start pulse while a request is in flight. lean_exe «hmac-sha512-hw-busy-start-probe» where root := `Tests.Drivers.HMACSHA512HWBusyStartProbeMain supportInterpreter := true -- Probes: start pulse while a point-op / scalar-mul FSM is in flight. lean_exe «curve-jac-busy-start-probe» where root := `Tests.Drivers.CurveJacHWBusyStartProbeMain supportInterpreter := true lean_exe «ed25519-point-hw-busy-start-probe» where root := `Tests.Drivers.Ed25519PointHWBusyStartProbeMain supportInterpreter := true lean_exe «g2-point-hw-busy-start-probe» where root := `Tests.Drivers.G2PointHWBusyStartProbeMain supportInterpreter := true