← e99db71ae23d · e9cd770abc01 →

e9be57a9c56d

A largest template shape is anchored by the same-colour singleton among a row/column of markers. Consecutive marker gaps position recoloured template copies. The cyclic curriculum includes interior anchors and non-2 template colours while hitting all four canonical profiles.

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!
 ;; The largest object is a TEMPLATE; the loose dots (one shares its
 ;; color — the anchor) list stamp colors along a row or column. Stamp
 ;; one template copy per dot in that dot's color, chained from the
 ;; anchor edge-to-edge with the dots' own gaps as spacing.
 (lambda (g)
   (let ()
     (define objs (sort (objects-8 g 0)
                        (lambda (a b) (> (obj-size a) (obj-size b)))))
     (define template (first objs))
     (define t-r1 (obj-r1 template))
     (define t-c1 (obj-c1 template))
     (define t-h (obj-h template))
     (define t-w (obj-w template))
     (define pattern (normalize-cells (obj-cells template)))
     (define raw-ms  ;; (color r c) per dot
       (map (lambda (m)
              (let ((c (first (obj-cells m))))
                (list (obj-color m) (first c) (second c))))
            (rest objs)))
     (define horiz?
       (= 1 (length (remove-duplicates (map second raw-ms)))))
     (define ms
       (sort raw-ms (lambda (a b) (if horiz?
                                      (< (third a) (third b))
                                      (< (second a) (second b))))))
     (define n (length ms))
     (define anchor
       (find-first (lambda (i) (= (first (nth ms i))
                                  (obj-color template)))
                   (range 0 n)))
     (define (gap i j)
       (if horiz?
           (- (third (nth ms i)) (third (nth ms j)))
           (- (second (nth ms i)) (second (nth ms j)))))
     (define positions  ;; template corner per dot, chained from anchor
       (let ((fwd (let loop ((i (+ anchor 1)) (prev (list t-r1 t-c1))
                             (acc (list)))
                    (if (>= i n)
                        (reverse acc)
                        (let ((pos (if horiz?
                                       (list t-r1
                                             (+ (second prev) t-w -1
                                                (gap i (- i 1))))
                                       (list (+ (first prev) t-h -1
                                                (gap i (- i 1)))
                                             t-c1))))
                          (loop (+ i 1) pos (cons pos acc))))))
             (bwd (let loop ((i (- anchor 1)) (next (list t-r1 t-c1))
                             (acc (list)))
                    (if (< i 0)
                        acc
                        (let ((pos (if horiz?
                                       (list t-r1
                                             (+ (- (second next)
                                                   (gap (+ i 1) i)
                                                   t-w)
                                                1))
                                       (list (+ (- (first next)
                                                   (gap (+ i 1) i)
                                                   t-h)
                                                1)
                                             t-c1))))
                          (loop (- i 1) pos (cons pos acc)))))))
         (append bwd (list (list t-r1 t-c1)) fwd)))
     (for/fold ((out g)) ((i (range 0 n)))
       (if (= i anchor)
           out
           (paint-cells out
                        (map (lambda (p)
                               (list (+ (first (nth positions i))
                                        (first p))
                                     (+ (second (nth positions i))
                                        (second p))))
                             pattern)
                        (first (nth ms i))))))))

Provenance

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