Repository navigation
S4: closed-component and reach leaves for search proof trees (Lean-proved; XOR2 still open) - #127
Merged
Merged
Conversation
Intent: the S3 semantic leaf only fires on fully decided worlds, so the XOR2 tree had to reach the bottom of every branch. S4 lifts locality to partial assignments: a closed set of decided cells is physically independent of the rest (proved in Lean without Staged), so an output inside it needs a lever per dependent bit inside it (cut leaf), or the restricted world can be refuted alone (sim leaf). A checked potential bounds how many switch cells can still reach an output within the budget (reach leaf). Branching grows the decided frontier so components close early. Certificates use format s4-search-tree/1 and are checked by the Lean checkS4 (checkS4_sound). XOR2 budget 9 still hits the node cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # formal/RedstoneFormal.lean # formal/RedstoneFormal/Audit.lean
Intent: document what the S4 partial leaves buy and what they do not, so the next step on XOR2 starts from measured numbers. The A tier and NAND2 2x4x3 budget 7 certificates are Lean-VERIFIED. Lookahead plus comp cuts NAND nodes by 15% against S3, but the Lean check is 7x slower. XOR2 2x6x4 stays capped at every budget, including 200M nodes at budget 9. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # AGENTS.md # docs/search_driver.md # formal/RedstoneFormal.lean # formal/RedstoneFormal/Audit.lean # 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.
Adds partial-assignment leaves to the search proof-tree checker.
SearchCheckS4.lean):indep_of_closedanddepCount_le. Neither needsStagedor Φ.worldRefuted_sound_of, the world-refutation lemma withoutStaged.compOk_sound, reach viareachOk_sound.checkS4_sound; formats4-search-tree/1.Leaves::Comp/QuotaComp,Order::Grow, andexact/s4_comp.rs.Docs:
docs/search_driver.md§8. No sorry or native_decide.🤖 Generated with Claude Code