← f41ae450c30b · f4725b891d89 →
f44596002946
For every nonzero color appearing exactly twice, connect the two cells when they share a row or column. Process colors in ascending order, so the numerically larger color wins at a segment crossing. Diagonal pairs and colors appearing three or more times remain unchanged.
line drawingpair matching
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).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule!
;; Every color that appears EXACTLY TWICE with its two cells sharing a row
;; or a column gets the pair CONNECTED by a straight line of that color
;; (colors processed in ascending order; diagonal pairs stay untouched).
(let ()
(define (connect out color)
(let ((cells (find-color g color)))
(if (and (= (length cells) 2)
(or (= (first (first cells)) (first (second cells)))
(= (second (first cells)) (second (second cells)))))
(draw-line out
(first (first cells)) (second (first cells))
(first (second cells)) (second (second cells))
color)
out)))
(for/fold ((out g)) ((color (in-list (sort (grid-colors g) <))))
(if (= color 0) out (connect out color)))))Provenance
- Generator
- generators/f44596002946/generator.py
- Notes and decisions
- generators/f44596002946/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5969542bb1466afceb896685f46ee5dd226d34d1ae97344b57a3cf4c245b44a6
- Rule hash
- 61e6c49f5645
- Sources
- bank:05f1b1c78907
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f44596002946 --count 1 --seed 20261108 --test 1