← ad5998ad11d6 · ad8f72a318b2 →

ad5a6c1521b3

Use the unique modal background. For each other color independently, leave a single connected component unchanged; when the color is split, keep its largest component (equal sizes choose the lower/right top-left corner), erase its other components, and fill the winner's bounding rectangle together with one column on the left.

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 ((bg (mode g -1)))
         (define (components-of color)
           (filter (lambda (obj) (= (obj-color obj) color)) (objects g bg)))
         (define (bigger-first a b)
           (if (= (obj-size a) (obj-size b))
               (> (+ (obj-r1 a) (obj-c1 a)) (+ (obj-r1 b) (obj-c1 b)))
               (> (obj-size a) (obj-size b))))
         (define (largest objs) (fst (sort objs bigger-first)))
         (define (paint-expanded acc color obj)
           (let* ((bb (obj-bbox obj))
                  (r0 (fst bb))
                  (c0 (max 0 (- (snd bb) 1)))
                  (r1 (nth bb 2))
                  (c1 (nth bb 3))
                  (cleared (paint-cells acc (find-color g color) bg)))
             (for*/fold ((out cleared))
                        ((r (range r0 (+ r1 1))) (c (range c0 (+ c1 1))))
                        (set-cell out r c color))))
         (foldl (lambda (color acc)
                  (if (= color bg)
                      acc
                      (let ((objs (components-of color)))
                        (if (< (length objs) 2)
                            acc
                            (paint-expanded acc color (largest objs))))))
                g
                (range 0 10))))

Provenance

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