← 510b12f6a12a · 515cca15a0b7 →

51481963f4a3

Recolor each color-1 object with the color of the uniquely matching non-1 template object's exact normalized shape.

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))
                (objs (objects g 0))
                (templates (filter (lambda (o) (!= (obj-color o) 1)) objs))
                (ones (filter (lambda (o) (= (obj-color o) 1)) objs)))
           (paint-objects-by g
                             ones
                             (lambda (obj)
                               (let* ((hits (filter (lambda (t)
                                                      (cells-equal? (obj-cells obj)
                                                                    (obj-cells t)))
                                                    templates)))
                                 (if (null? hits) #f (obj-color (first hits)))))))))

Provenance

Generator
generators/51481963f4a3/generator.py
Notes and decisions
generators/51481963f4a3/notes.md
Review label
reviewed_safe
Generator SHA-256
3dfa138fe7eea00abd096015c58e7969a90cc91277a6e0df6f051ed8c4da6239
Rule hash
560348b96220
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 51481963f4a3 --count 1 --seed 20261108 --test 1