← bf5bed969a6d · bf9e0959b8ce →

bf8910eef99b

Four distinct colors form a 2x2 source. Each color paints a clipped 2x2 patch in the diagonally opposite quadrant, measured from the source block.

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* ((nz (find-first (lambda (rc) (!= (at g (fst rc) (snd rc)) 0))
                                  (flatmap (lambda (r)
                                             (map (lambda (c) (cons r c)) (range 0 w)))
                                           (range 0 h))))
                  (br (fst nz))
                  (bc (snd nz))
                  (tl (at g br bc))
                  (tr (at g br (+ bc 1)))
                  (bl (at g (+ br 1) bc))
                  (brr (at g (+ br 1) (+ bc 1))))
             (cellmap g
                      (r c v)
                      (let ((v v))
                        (if (!= v 0)
                            v
                            (cond
                              ((and
                                 (> r (+ br 1))
                                 (> c (+ bc 1))
                                 (<= r (+ br 3))
                                 (<= c (+ bc 3))) tl)
                              ((and
                                 (> r (+ br 1))
                                 (< c bc)
                                 (<= r (+ br 3))
                                 (>= c (- bc 2))) tr)
                              ((and
                                 (< r br)
                                 (> c (+ bc 1))
                                 (>= r (- br 2))
                                 (<= c (+ bc 3))) bl)
                              ((and (< r br) (< c bc) (>= r (- br 2)) (>= c (- bc 2))) brr)
                              (else 0)))))))))

Provenance

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