Repository navigation
refactor: simplify mixed relation analysis using map evidence - #150
Merged
Merged
Conversation
ViktorMikhalkin
marked this pull request as ready for review
December 2, 2026 23:50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CEu3FJNYjbZ19DyaMxzVhb
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.
What changes for users
Mixed difference and linear-equality analysis now has checked internal results for all 396 systems built from the book maps and examples: 4 determined, 341 underdetermined, 51 contradictory and none undecided. The results include 686 independently checked integer points.
There is no change to public exports, map syntax, placement or drawings. This is internal research and cleanup, so the change uses
refactor.Why
Solving differences first and substituting only fixed coordinates leaves useful mixed constraints unresolved. The corpus combines midpoint and equal-spacing probes with same-rank groups, lanes and pins. It includes 43 initial contradictions, 35 missed by substitution, and eight further contradictions needing multiple bounds.
Each retained proof search changes at least three real-map classifications when disabled:
These dependencies overlap: contradiction projection supports the 51 contradictory systems and the four determined systems' fixedness proofs.
Ablation removed fourteen shortcuts and fallbacks that changed no corpus classifications, together with their dedicated synthetic controls. This includes line and plane searches, greedy coordinate retention, direct equality and single-bound contradiction searches, unused motion and grid seeds, and divisibility searches. The independent proof checkers remain.
The evidence is now one counted README. Historical raw reports are preserved on
archive/mixed-relations-94at0d92b63f; reproduction scripts write to ignored.cache/mixed-relations/directories.Evidence
npm run verify: passes, including 181 unit test files / 1,467 tests, architecture guards, formatting, lint, types, API and schema checks, contracts, size budgets, packaging and demo build. No architecture tests were deferred.npm run test:browser -- --project=chromium: all 176 tests pass.node scripts/mixed-relations/ablate-grid.mjs,ablate-earlier.mjsandablate-diagnostics.mjs: pass. Removed mechanisms individually and together preserve the corpus classifications; the retained searches meet the three-system minimum.node scripts/mixed-relations/bounded-grid-system.mjs: before and after summaries are byte-identical, with 396 checked systems and 686 integer points.node scripts/benchmark-relations.mjs: unchanged coverage of 46 book-axis systems / 890 relations. No runtime performance gain is claimed.git diff --check: passes. This final cleanup changes only diagnostic scripts and documentation; no drawing code changed and no screenshots were needed.Not done
General integer solving and grid-only uniqueness remain known gaps. Placement integration belongs to the later stated-relations work after the source format is approved. A failed bounded search remains undecided and never becomes a mathematical conclusion.
Firefox and WebKit were not run locally because this is not a browser-specific change. CI must pass across all three browsers before merge readiness.
Changelog
BEGIN_COMMIT_OVERRIDE
refactor: simplify mixed relation analysis using map evidence
END_COMMIT_OVERRIDE