← 4238cc89338a · 4295e17d5995 →

424c822d69f3

Distinct colored markers in row 0 label solid color-5 rectangles below: paint every rectangle by the uniquely nearest marker to its floored bbox midpoint.

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* ((markers (filter (lambda (m) (!= 0 (snd m)))
                                   (map (lambda (c) (list c (at g 0 c))) (range 0 w))))
                  (objs (filter (lambda (obj) (= 5 (obj-color obj))) (objects g 0))))
             (paint-objects-by g
                               objs
                               (lambda (obj)
                                 (let* ((bb (obj-bbox obj))
                                        (center (/ (+ (second bb) (fourth bb)) 2))
                                        (marker (argmin (lambda (m)
                                                          (abs (- (fst m) center)))
                                                        markers))
                                        (new-color (snd marker)))
                                   new-color)))))))

Provenance

Generator
generators/424c822d69f3/generator.py
Notes and decisions
generators/424c822d69f3/notes.md
Review label
reviewed_safe
Generator SHA-256
6f2a8be446d2bb9e96302063bcb891fbe1459f128607995ffbdef49487e3825a
Rule hash
5abbdbb61293
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 424c822d69f3 --count 1 --seed 20261108 --test 1