← f1c8ea826b10 · f2818d6c50ce →

f22baf82ea81

0-bg grid (h, w~10-16) with one filled two-color rectangular region. The outer color fills the bbox and the inner color forms a centered solid block, an off-center block, a connected non-solid mask, or a hollow ring, always strictly inside the bbox. Rule: crop the nonzero bbox and swap the outer and inner colors everywhere in the crop.

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* ((cells (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (!= (at g r c) 0))
                           (list r c (at g r c))))
                  (r1 (min-of first cells))
                  (r2 (max-of first cells))
                  (c1 (min-of second cells))
                  (c2 (max-of second cells))
                  (outer-color (at g r1 c1))
                  (inner-color (let find
                                    ((cs cells))
                                    (cond
                                      ((null? cs) 0)
                                      ((!= (third (car cs)) outer-color) (third (car cs)))
                                      (else (find (cdr cs)))))))
             (build-grid (+ 1 (- r2 r1))
                         (+ 1 (- c2 c1))
                         (r c)
                         (let ((v (at g (+ r1 r) (+ c1 c))))
                           (cond
                             ((= v outer-color) inner-color)
                             ((= v inner-color) outer-color)
                             (else v))))))))

Provenance

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