← ee64b9b0fe20 · ee6ef749efca →

ee6a99e8b7f9

Color-8 scenes contain separated gray (5) and pink (6) rectangles with one or more adjacent exterior color-9 dots. Gray rectangles are erased while their dots are copied to the adjacent inner edge; pink rectangles remain while their dots move to the center row/column and their exterior sources clear. Scheduled 3x3 anchors plus non-3x3 and even-axis witnesses distinguish center/edge geometry, fixed inward steps, and midpoint tie-breaking.

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* ((shapes-raw (objects g 0))
                  (shapes (filter (lambda (o)
                                    (or (= (obj-color o) 5) (= (obj-color o) 6)))
                                  shapes-raw))
                  (shape-infos (map (lambda (o)
                                      (let ((bb (obj-bbox o)))
                                        (list (obj-color o)
                                              (first bb)
                                              (second bb)
                                              (third bb)
                                              (fourth bb)
                                              (obj-cells o))))
                                    shapes))
                  (dots (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (= (at g r c) 9))
                          (list r c)))
                  (g1 (for/fold ((out g))
                        ((si shape-infos))
                        (cond
                          ((= (first si) 5) (for/fold ((gg out))
                              ((cell (sixth si)))
                              (set-cell gg (first cell) (second cell) 8)))
                          (else out))))
                  (g2 (for/fold ((out g1))
                        ((dot dots))
                        (let ((dr (first dot))
                              (dc (second dot)))
                          (let loop
                               ((ss shape-infos))
                               (cond
                                 ((null? ss) out)
                                 (else (let* ((si (car ss))
                                              (color (first si))
                                              (r1 (second si))
                                              (c1 (third si))
                                              (r2 (fourth si))
                                              (c2 (fifth si))
                                              (in-rows (and (>= dr r1) (<= dr r2)))
                                              (in-cols (and (>= dc c1) (<= dc c2)))
                                              (left? (and in-rows (= dc (- c1 1))))
                                              (right? (and in-rows (= dc (+ c2 1))))
                                              (above? (and in-cols (= dr (- r1 1))))
                                              (below? (and in-cols (= dr (+ r2 1))))
                                              (lr? (or left? right?))
                                              (ud? (or above? below?)))
                                         (cond
                                           ((or lr? ud?) (cond
                                               ((= color 6) (let* ((mid-r (quotient (+ r1 r2) 2))
                                                        (mid-c (quotient (+ c1 c2) 2))
                                                        (nr (if lr? dr mid-r))
                                                        (nc (if lr? mid-c dc)))
                                                   (set-cell (set-cell out dr dc 8)
                                                             nr
                                                             nc
                                                             9)))
                                               (else (let* ((ar (cond
                                                                  (left? dr)
                                                                  (right? dr)
                                                                  (above? r1)
                                                                  (below? r2)))
                                                            (ac (cond
                                                                  (left? c1)
                                                                  (right? c2)
                                                                  (above? dc)
                                                                  (below? dc))))
                                                       (set-cell out ar ac 9)))))
                                           (else (loop (cdr ss))))))))))))
             g2))))

Provenance

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