← 5bb29951ab1a · 5bcc776c32fb →

5bba6e671cec

An 8x8 color-4/color-7 frame partitions two to four large color regions. Treat every non-{4,7} color, including zero when present, as a region. Sort whole-color centroids clockwise around the grid center and move each color one clockwise position while preserving every cell and both frame colors. Four scheduled profiles redundantly expose row-order, first-cell, quadrant, zero-background, and two-region cases so every three-demo query rotation still identifies the intended rule.

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 4) (!= c 7))) (grid-colors g)))
                  (centroid (lambda (col)
                              (let* ((cells (find-color g col))
                                     (rs (map first cells))
                                     (cs (map second cells))
                                     (mr (/ (+ 0.0 (apply + rs)) (length cells)))
                                     (mc (/ (+ 0.0 (apply + cs)) (length cells))))
                                (list mr mc))))
                  (gcr (/ (+ 0.0 (- h 1)) 2.0))
                  (gcc (/ (+ 0.0 (- w 1)) 2.0))
                  (angle-of (lambda (col)
                              (let* ((cent (centroid col))
                                     (mr (first cent))
                                     (mc (second cent))
                                     (dr (- mr gcr))
                                     (dc (- mc gcc))
                                     (a (atan dc (- 0 dr))))
                                (if (< a 0) (+ a (* 2 3.141592653589793)) a))))
                  (color-angles (map (lambda (col) (list col (angle-of col))) colors))
                  (sorted (sort-by color-angles (lambda (p) (second p))))
                  (sorted-colors (map first sorted))
                  (n (length sorted-colors))
                  (color-map (map (lambda (i)
                                    (list (nth sorted-colors (modulo (+ i 1) n))
                                          (nth sorted-colors i)))
                                  (range 0 n))))
             (cellmap g
                      (r c v)
                      (let* ((v v)
                             (mapped (filter (lambda (m) (= (first m) v)) color-map)))
                        (if (null? mapped) v (second (first mapped)))))))))

Provenance

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