Repository navigation
L2b: library tree entries are Φ optima (Lean bridge Φ ⇄ Realizes) - #126
Merged
Merged
Conversation
# Conflicts: # formal/RedstoneFormal.lean # formal/RedstoneFormal/Audit.lean
Intent: PR #121's search-tree entries proved only the physical optimum (IsOpt over Realizes). Whether that is also the Phi optimum reported by the placer was an assumption (certified_optimum_library.md 8.6). This change proves it without SAT, so opt-check can say "Phi-optimal (mode m)". - TreeLibraryPhi.lean, lower direction: an admissible Lean Phi solution (PhiSol plus G1 hypotheses: mode OK, no given cells, gate-acyclic) realizes the Search.Instance with the same block count (realizes_of_phiAdm). Every instance-shape difference is named. - Upper direction: a finite Phi witness check (phiWitOk, ranks, stages and contributions computed) is sound (phiWitOk_sound). phiOpt_of_treeEntry, phiOptL_of_treeEntry and phiQueryOk3_sound follow. Reach15 is discharged for budgets <= 15 in both Rust default configs. - Default-Phi NAND (physical 8 vs Phi 9): nand8_not_default_phi proves the 8-block layout is not a default-Phi solution. phi_default_exact / NoExactLayoutWithin state what an entry needs to certify 9. - opt-check reports Phi-optimality. The mode comes from the key, with a --phi override. - Both OR 3x5x3 entries had a witness with an interior lever (not a Phi solution). The witness is now or_353(), on the boundary. All 18 entries now report Phi-optimal. - No sorry or native_decide. The Audit guards allow only the standard axioms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # formal/RedstoneFormal.lean # formal/RedstoneFormal/Audit.lean
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.
Closes the "physical optimum vs Φ optimum" assumption of the search-tree library entries (#121).
realizes_of_phi/realizes_of_phiAdmshow a Φ solution with no given cells and a gate-acyclic world realizes the instance with the same block count. From this follownoPhi_of_noLayoutandphi_lower_of_isOpt.phiWitOk_soundgives a finite check that a stored witness is aPhiSol.phiOpt_of_treeEntry;phiOptL_of_treeEntry, with noReach15hypothesis for budget ≤ 15 under a lazy or ranked config;phiQueryOk3_sound.nand8_not_default_phiproves the 8-block layout violatesDustExact.phiOpt_default_of_exactstates that certifying 9 needs a refutation ofNoExactLayoutWithin.opt-checknow reports "Φ-optimal (mode m)". All 18 entries report it (0–8 ms).PhiSolfaithfulness;Reach15above 15;PhiAcyclic;No sorry or native_decide; 78 Audit guards.
🤖 Generated with Claude Code