Skip to content

S5: search proof trees over exact-dust (default-Φ) layouts - #132

Merged
rollrat merged 5 commits into
masterfrom
claude/fastopt-s5-exact-search
Dec 6, 2026
Merged

rollrat merged 5 commits into
masterfrom
claude/fastopt-s5-exact-search

Conversation

@rollrat

@rollrat rollrat commented Dec 6, 2026

Copy link
Copy Markdown
Member

Physical-layout trees (S0–S4) cannot refute XOR2 above 14, because a physical 14-block layout exists. S5 therefore restricts the search to ExactLayout (Realizes ∧ DustExact, the default-Φ dust rule from #126).

  • Lean (SearchCheckS5.lean):
    • exactLayout_of_phi.
    • Leaves xsem, xcomp and xdrv. xdrv is a partial-assignment leaf: forced-lit lever/dust walks plus a pigeonhole argument.
    • checkS5_sound : … → NoExactLayoutWithin I b.
    • phiOpt_default_of_checkS5.
    • Kernel examples.
  • Rust: Leaves::Exact and Leaves::QuotaExact, plus exact/s5_exact.rs.
  • Measured:
    • A tier and or2-1x3x2: VERIFIED.
    • NAND2 b7, without the static bound: VERIFIED (268.7 s Lean check).
    • Default NAND2 b8 (optimum 9) closes in Rust: 75.7 M nodes, 70.5 s. The 3.56 GB JSON certificate was not Lean-checked.
    • XOR2 b12 and b15–19: node cap. Exact leaves fire on about 0.05% of nodes.
  • mref is dropped because DustExact mirror invariance is not proved.
  • Combining with the G track is not yet sound: the class bound is proved only for Φ solutions, and enumeration completeness is only argued.

Docs: docs/search_driver.md §9. No sorry or native_decide.

🤖 Generated with Claude Code

rollrat and others added 5 commits December 6, 2026 19:33
…to claude/fastopt-s5-exact-search

# Conflicts:
#	formal/RedstoneFormal.lean
#	src/transform/place_and_route/local_placer/exact/mod.rs
…xact-search

# Conflicts:
#	formal/RedstoneFormal.lean
#	formal/RedstoneFormal/Audit.lean
#	src/transform/place_and_route/local_placer/exact/mod.rs
Physical search trees (S0-S4) refute every Realizes layout, so they can
never certify a default-Phi optimum that is above the physical optimum
(NAND2 2x4x3: physical 8, default Phi 9; XOR2 2x6x4: physical witness at
14, default Phi 20). S5 refutes only ExactLayout = Realizes /\ DustExact,
the class that every default-Phi solution decodes into (L2b), and connects
the result to PhiOpt through phiOpt_default_of_exact. No SAT is used.

Lean (no sorry/native_decide, Audit guards): SearchCheckS5.lean with
leaves xsem (settled state with an undelivered feed into lit dust), xcomp
(same check in a closed S4 component, transferred by mergeB) and xdrv
(partial-assignment drive leaf: lever, dust walk forced lit by DustExact,
ends at a second lever / weakly or strongly powered torch, with the
pigeonhole bits_distinct under allRel), checkT5_sound, checkS5_sound,
phiOpt_default_of_checkS5, and the s5-search-tree/1 format in
search-check. mref is dropped because mirror invariance of DustExact is
not proved.

Rust: exact_* twins in s3_sem.rs, xcomp_leaf, s5_exact.rs (xdrv), the
Exact/QuotaExact leaf sets and tests in fast_opt_s2.rs.

Measured: A tier at default-Phi opt-1 VERIFIED; NAND2 budget 7 exact
VERIFIED (1.77M nodes, 836 xdrv leaves agreed by Lean); NAND2 budget 8
(default Phi 9) closed in Rust at 75.7M nodes but the 3.56 GB JSON was not
Lean-checked; XOR2 budgets 12-19 hit the 5M cap. Analysis in
docs/search_driver.md section 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
Intent: keeping both sides of mod.rs declared s4_comp twice; cnf_grounding keeps its
cfg(test) as on master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rollrat
rollrat merged commit 85cc018 into master Dec 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant