← a2ad2da63297 · a2b78ff2c2e0 →
a2b749aefc65
Use the four uniform non-corner border sides as a color-to-direction key. Clear the interior to its modal background, then move every interior cell matching the top, bottom, left, or right side exactly one cell toward that side. A matching cell already adjacent to its side remains in place, and interior colors matching no side are stationary distractors.
parametric family
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)
;; The interior mode is background; side midpoint colors define directions.
;; Preserve the border and clear the interior before moving original cells.
;; Matching side colors step once inward; blocked or unmatched cells stay put.
(rule! (lambda (g)
(let ((h (rows g)) (w (cols g)))
(let ((bg (first (sort-by (unique (reduce append (list)
(map (lambda (r) (map (lambda (c) (at g r c)) (range 1 (- w 1)))) (range 1 (- h 1)))))
(lambda (v) (- 0 (for/sum ((r (range 1 (- h 1))))
(for/sum ((c (range 1 (- w 1))))
(if (= (at g r c) v) 1 0)))))))))
(let ((top-c (at g 0 (/ w 2)))
(bot-c (at g (- h 1) (/ w 2)))
(left-c (at g (/ h 2) 0))
(right-c (at g (/ h 2) (- w 1))))
(let ((base (grid-from-fn h w (lambda (r c)
(if (or (zero? r) (= r (- h 1)) (zero? c) (= c (- w 1)))
(at g r c) bg)))))
(reduce (lambda (acc r)
(reduce (lambda (acc2 c)
(let ((v (at g r c)))
(if (= v bg) acc2
(let ((dr (if (= v top-c) -1 (if (= v bot-c) 1 (if (= v left-c) 0 (if (= v right-c) 0 0)))))
(dc (if (= v left-c) -1 (if (= v right-c) 1 (if (= v top-c) 0 (if (= v bot-c) 0 0))))))
(let ((nr (+ r dr)) (nc (+ c dc)))
(if (and (>= nr 1) (<= nr (- h 2)) (>= nc 1) (<= nc (- w 2)))
(set-cell acc2 nr nc v)
(if (or (not (zero? dr)) (not (zero? dc)))
(set-cell acc2 r c v)
(set-cell acc2 r c v))))))))
acc (range 1 (- w 1))))
base (range 1 (- h 1)))))))))Provenance
- Generator
- generators/a2b749aefc65/generator.py
- Notes and decisions
- generators/a2b749aefc65/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 884fc310233acb63fc20e27524007b19ffbeb3cb34766833bce078a3b2577050
- Rule hash
- d151397a0cab
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a2b749aefc65 --count 1 --seed 20261108 --test 1