← b8d6fabb411e · b9058b6ccb82 →

b8e2a07c1b6c

A solid ORANGE(7) rectangle lies in a nonzero 5/8/9 background. Exactly one RED(2) head and a straight MAGENTA(6) tail are embedded in the rectangle. The arrow points away from the adjacent tail cell in any of the eight compass directions. Follow that ray through one or more orange cells and recolor the first non-orange cell to 7; only that single boundary cell changes.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (let* ((head (first (find-color g 2)))
                  (hr (first head))
                  (hc (second head))
                  (deltas (list (list -1 -1)
                                (list -1 0)
                                (list -1 1)
                                (list 0 -1)
                                (list 0 1)
                                (list 1 -1)
                                (list 1 0)
                                (list 1 1)))
                  (mag-dir (find-first (lambda (d)
                                         (let ((nr (+ hr (first d)))
                                               (nc (+ hc (second d))))
                                           (and
                                             (>= nr 0)
                                             (< nr h)
                                             (>= nc 0)
                                             (< nc w)
                                             (= 6 (at g nr nc)))))
                                       deltas))
                  (dr (- 0 (first mag-dir)))
                  (dc (- 0 (second mag-dir))))
             (let loop
                  ((r (+ hr dr)) (c (+ hc dc)) (grid g))
                  (if (or (< r 0) (>= r h) (< c 0) (>= c w))
                      grid
                      (if (= 7 (at grid r c))
                          (loop (+ r dr) (+ c dc) grid)
                          (set-cell grid r c 7))))))))

Provenance

Generator
generators/b8e2a07c1b6c/generator.py
Notes and decisions
generators/b8e2a07c1b6c/notes.md
Review label
reviewed_safe
Generator SHA-256
2907f333bc4fc0323cb05b577b9b149a2540aba3075462ea1d328ad9f3e97528
Rule hash
def70a52d143
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b8e2a07c1b6c --count 1 --seed 20261108 --test 1