← 784b131b3b93 · 78645c33b002 →
7860069b4149
One connected monochrome component and one color-9 anchor immediately outside its bounding box; sweep the whole component away from the anchor to the wall, preserving holes and concavities.
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)
(rule! (let ((dummy 0)) (let* ((cells (filter (lambda (p) (let ((v (at g (first p) (second p)))) (and (not (= v 0)) (not (= v 9))))) (grid-positions g))) (bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (anchor (first (find-color g 9))) (ar (first anchor)) (ac (second anchor)) (color (at g (first (first cells)) (second (first cells)))) (dir (cond ((< ac c0) (list 0 1)) ((> ac c1) (list 0 -1)) ((< ar r0) (list 1 0)) (else (list -1 0))))) (let loop ((k 1) (out g)) (let ((shifted (map (lambda (p) (list (+ (first p) (* (first dir) k)) (+ (second p) (* (second dir) k)))) cells))) (if (any? (lambda (p) (not (in-bounds? (first p) (second p) (rows g) (cols g)))) shifted) out (loop (+ k 1) (paint-cells out shifted color))))))))
Provenance
- Generator
- generators/7860069b4149/generator.py
- Notes and decisions
- generators/7860069b4149/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cd7a123aca146df4e4325dce77cd4036d7813259967842ff087ba4f3b7601b0c
- Rule hash
- a527b7e705e3
- Sources
- bank:22a17f7a0399
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 7860069b4149 --count 1 --seed 20261108 --test 1