← 5666b68dd4b9 · 56a06c9b29a3 →

569aa05e004d

On a color-0 grid, inspect each row independently and count each non-zero color separately. If a color occurs exactly twice in that row, paint its inclusive horizontal interval in that color on a fresh zero output. Other marks vanish. Multiple disjoint exact-pair colors may fill in one row; blockers inside a qualifying span are overwritten; singleton and triple controls are erased.

parametric familyinterval fillpair matchingrow-wise reasoning

Generated by the released generator before publication; every output was computed by its Racket reference rule. White outlines mark the cells the rule changed. Lesson check:

refuted: a demonstration contradicts the rival. survived_all: it fits every demonstration and also gives the intended answer, so it cannot mislead here. ambiguous: it fits every demonstration but answers the query differently. Names are as declared by the generator; a declared shortcut is not guaranteed to fit the original pairs (see the paper’s Limitations).

Reference rule (Racket)

(rule! (let ((dummy 0)) (for*/fold ((out (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g))) (color (in-list (grid-colors g 0)))) (let ((cols-list (map second (filter (lambda (p) (= (first p) r)) (find-color g color))))) (if (= (length cols-list) 2) (for/fold ((acc out)) ((c (in-range (apply min cols-list) (+ (apply max cols-list) 1)))) (set-cell acc r c color)) out)))))

Provenance

Generator
generators/569aa05e004d/generator.py
Notes and decisions
generators/569aa05e004d/notes.md
Review label
reviewed_safe
Generator SHA-256
63db6584c4b139ae2782cff7323d2852b509744be5699cbcb563f2789ae009dd
Rule hash
2e54f71e3122
Sources
bank:647beeb937e1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 569aa05e004d --count 1 --seed 20261108 --test 1