Repository navigation
Fast S3 certificate checker: checkFast_sound, binary trees, NAND2 b7 33.8 s → ~1 s - #124
Merged
Merged
Conversation
…aves) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c leaf Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record why the S3 checker was slow (list access, GMP pow/shift, atomic refcounts on Task-shared objects), what checkFast changes and proves, the binary tree format, measured timings (NAND2 b7 33.8 s -> ~1 s wall) and mutation checks, so the S4/L2 tracks can extend it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-checker # Conflicts: # formal/RedstoneFormal.lean # formal/RedstoneFormal/Audit.lean
…-checker # Conflicts: # formal/RedstoneFormal.lean # formal/lakefile.toml # src/transform/place_and_route/local_placer/exact/mod.rs
…-checker # Conflicts: # src/transform/place_and_route/local_placer/exact/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Search.Fast.checkFastwith direct soundnesscheckFast_sound : checkFast … = true → NoLayoutWithin I b(proved; no sorry/native_decide; Audit guards added).Tasks (each against the full table with limitlim = i, strong inductionlemmas_refuted); root splits spawn theirnoside up to depthpar.propagateA_eq,quotaA_eq,detOkA_eq,semA_eq, …).pows/needWallFtables, proved bydecide); per-lemmaInstancecopies to avoid atomic refcount contention.s3-search-tree-bin/1(trusted readerSearchTreeFormat.parseBin, Rust converterexact/s3_bin.rs), new exessearch-check-fastandsearch-profile.docs/search_driver.md§8; AGENTS.md entry.SearchCheckS3/S2.lean,fast_opt_s2.rs,s3_sem.rsuntouched.Measured (NAND2 2x4x3 budget 7, 2.0 M nodes, machine under load avg 13–20)
search-check(S3)search-check-fastsearch-check-fastAll 12 A-tier trees VERIFIED by both checkers; mutation tests (budget+1, ref+1, wrong outputs) REJECTED by both.
Trusted base
JSON/binary readers and
maskFn, the Rust JSON→binary converter, and the Lean runtime'sTask(same compiler/runtime trust assearch-check).Test plan
cd formal && lake build(incl. Audit) after merging current mastercargo test --release --lib s3_bin -- --ignored(conversion byte-identical to a Python twin)🤖 Generated with Claude Code