Repository navigation
Phase 8: the edge-to-edge assumption, and cor1 in the corpus - #10
Merged
Merged
Conversation
Tropical puzzles are cut from a polyhedral complex, so by the balancing condition their pieces meet edge to edge: no T inside the tray. The search did not use this. It is added as an assumption, separate from the regime: it narrows what a whole search finds, so a result records it, names its own candidate set (corner-contact[-relief]-edge-to-edge/1) and is compared only with results under the same assumption. - tiling-geometry: Meeting; Assembly refuses a placement that makes a T (rejected_junction). Two rules follow, each a switch: equal_edges (arcs of the edge graph need equal lengths and end heights) and wall_edges (an edge with no partner stays on the tray, rejected_wall). - rust.contact_dfs declares the assumption; the prototype and cp_sat.placements refuse it. maxplus-solve --assume, `assume` in manifests, an `assumes` column, proxies.static(..., edge_to_edge=True). - Exit test: on every corpus fixture, the assumed search finds exactly the plain search's assemblies that an independent twin-edge check calls edge to edge, rules on and off, the key among them. Proptests on chord-cut and line-arrangement tilings. - benchmarks/manifests/edge_to_edge.toml and results/edge_to_edge.md. Findings: the footprints take 14 to 80 nodes instead of 45 to 1 064 878, fewer than the relief searches assuming nothing; of rat1-flat's 101 assemblies and rat2-flat's 2, only the answer has no T. cor1 is re-imported from tropical-puzzle-lab main (b1a1792); the other 16 fixtures change only in source commit and hashes. Its plain footprint search does not end, so the corpus and edge-to-edge manifests stop searches that assume nothing at 1 500 000 nodes (new1-flat needs 1 064 878), and tests that need the end of that search leave cor1-flat out by name (support.corpus.UNFINISHED) and test it apart. corpus.md moves because of the two cor1 rows each for rust.contact_dfs and cp_sat.placements and the node_limit column, regenerated with the command; no existing count changed. With roofs cor1 takes 1 529 nodes, 967 assuming edge to edge; without, 48 edge-to-edge assemblies in 44 539 nodes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jfg9fgTR9LYn4D2rTtfifs
Member
Author
|
I added a new section to the artifact as well - interesting findings! :-) |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jfg9fgTR9LYn4D2rTtfifs
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.
Tropical puzzles are cut from a polyhedral complex, so by the balancing condition their pieces meet edge to edge: no T inside the tray.
rust.contact_dfscan now be told to assume this. It is an assumption, separate from the regime, not a pruning rule: it narrows what a whole search finds, so a result records it, names its own candidate set (corner-contact[-relief]-edge-to-edge/1), and is compared only with results under the same assumption.What it adds
tiling-geometry:Meeting;Assemblyrefuses a placement that makes a T (rejected_junction). Two rules follow from the assumption, each a switch tested not to change what the assumed search finds:equal_edges(edge-graph arcs need equal lengths and end heights) andwall_edges(an edge with no partner stays on the tray,rejected_wall).Assumption.EDGE_TO_EDGEin the models; solvers declare what they can assume (python.contact_dfsandcp_sat.placementsrefuse it);maxplus-solve --assume,assumein manifests, anassumescolumn,proxies.static(..., edge_to_edge=True).benchmarks/manifests/edge_to_edge.tomland the committedbenchmarks/results/edge_to_edge.md.Exit test:
tests/corpus/test_edge_to_edge.py::test_the_assumption_finds_exactly_the_edge_to_edge_assemblies: on every corpus fixture, the assumed search finds exactly the plain search's assemblies that an independent twin-edge check (support.geometry.is_edge_to_edge) calls edge to edge, both rules on and off, the answer key among them. Rust proptests on chord-cut tilings (which have T's) and line-arrangement tilings (which don't).Findings
new1-flat: 1 064 878 → 49.rat1-flat's 101 assemblies andrat2-flat's 2, only the answer has no T.wall_edgessaves nodes (up to 1.7×);equal_edgesonly saves candidate work.cor1stays hard: 1 529 → 967 nodes with roofs; without roofs, 48 edge-to-edge assemblies in 44 539 nodes.cor1 joins the corpus
Re-imported from tropical-puzzle-lab
main(b1a1792); the other 16 fixtures change only in source commit and hashes (completion rules upstream only had a refactor plus the glue assist).cor1-flatis the first corpus puzzle whose plain search does not end, so:new1-flat's 1 064 878), so the tables are machine-independent;corpus.mdgains thecor1rows and anode_limitcolumn, no existing count moves;support.corpus.UNFINISHED) and test it apart: stopped, it returns nothing; assuming edge to edge, all 48 assemblies are valid and edge to edge, the key among them.Found along the way: CP-SAT's listing search takes candidates in generated order, so where it is stopped at a limit its counts differ from
rust.contact_dfs's (they agree wherever both finish). experiments.md now says so.Checks
Locally on Windows:
HYPOTHESIS_PROFILE=ci uv run pytest1618 passed (slow and source included); cargo tests 137 passed; ruff, pyright, cargo fmt and clippy clean. Phase 8 is ticked only after CI passes on Linux and Windows.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jfg9fgTR9LYn4D2rTtfifs