← 2bb81826c18d · 2c30a4753f6b →

2c1567aea733

A 0-background grid contains colors 1, 2, and 4 in horizontally disjoint regions. Color 1 is the anchor. Translate every cell of each nonzero color vertically, preserving its exact shape and columns, until that color's top row equals color 1's original top row.

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* ((blue-cells (find-color g 1))
                  (blue-top (min-of fst blue-cells))
                  (all-cells (flatmap (lambda (r)
                                        (flatmap (lambda (c)
                                                   (let ((v (at g r c)))
                                                     (if (!= v 0)
                                                         (list (list r c v))
                                                         (list))))
                                                 (range 0 w)))
                                      (range 0 h)))
                  (blank (cellmap g (r c v) 0)))
             (reduce (lambda (grid cell)
                       (let* ((kr (first cell))
                              (kc (second cell))
                              (v (third cell))
                              (color-top (min-of fst (find-color g v)))
                              (shift (- blue-top color-top))
                              (nr (+ kr shift)))
                         (if (and (>= nr 0) (< nr h)) (set-cell grid nr kc v) grid)))
                     blank
                     all-cells)))))

Provenance

Generator
generators/2c1567aea733/generator.py
Notes and decisions
generators/2c1567aea733/notes.md
Review label
reviewed_safe
Generator SHA-256
76f477202fa8cad504e70e865bb6154e1f7ef0a7aad5d2f41e7b5eb65dc0d4a9
Rule hash
837d7987242d
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 2c1567aea733 --count 1 --seed 20261108 --test 1