← 5a8d42591332 · 5b3c69ad7276 →

5b18a320e97b

Ignore the gray square, order visible line colors along their common orientation, and emit the ordered colors as an N x N stripe grid.

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* ((colors (filter (lambda (c) (and (!= c 0) (!= c 5))) (grid-colors g)))
                  (color-first-cell (lambda (col) (first (find-color g col))))
                  (color-all-cells (lambda (col) (find-color g col)))
                  (horizontal (andmap (lambda (col)
                                        (let* ((cells (color-all-cells col))
                                               (rs (map first cells)))
                                          (= 1 (length (unique rs)))))
                                      colors))
                  (sorted-colors (if horizontal
                                     (sort-by colors
                                              (lambda (col)
                                                (first (color-first-cell col))))
                                     (sort-by colors
                                              (lambda (col)
                                                (second (color-first-cell col))))))
                  (n (length sorted-colors)))
             (if horizontal
                 (build-grid n n (r c) (nth sorted-colors r))
                 (build-grid n n (r c) (nth sorted-colors c)))))))

Provenance

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