Skip to content

refactor: simplify mixed relation analysis using map evidence - #150

Merged
ViktorMikhalkin merged 35 commits into
mainfrom
loop/issue-94
Dec 3, 2026
Merged

ViktorMikhalkin merged 35 commits into
mainfrom
loop/issue-94

Conversation

@ViktorMikhalkin

Copy link
Copy Markdown
Contributor

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:

Retained search Changed classifications
Rational feasibility projection 345
Contradiction projection 55
Fixed-coordinate proofs 4
Coupled motion cones 341
Nearby integer search 66

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-94 at 0d92b63f; 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.
  • All 19 report writers pass in the documented prerequisite order; all ten remaining diagnostic check scripts pass.
  • node scripts/mixed-relations/ablate-grid.mjs, ablate-earlier.mjs and ablate-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

@ViktorMikhalkin
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
@ViktorMikhalkin
ViktorMikhalkin merged commit ffadb34 into main Dec 3, 2026
7 checks passed
@ViktorMikhalkin
ViktorMikhalkin deleted the loop/issue-94 branch December 3, 2026 00:16
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