← 51db77fe24c5 · 520fe6e64fb6 →

51e59bb53cac

Swap the two nonzero colors inside the sole gray frame; preserve the same colors outside it.

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* ((five-cells (find-color g 5))
                  (fr1 (min-of first five-cells))
                  (fr2 (max-of first five-cells))
                  (fc1 (min-of second five-cells))
                  (fc2 (max-of second five-cells))
                  (interior-cells (for*/list ((r (range (+ fr1 1) fr2)) (c (range (+ fc1 1) fc2))
                                      #:when
                                      (and (!= (at g r c) 0) (!= (at g r c) 5)))
                                    (at g r c)))
                  (colors (remove-duplicates interior-cells))
                  (c1 (first colors))
                  (c2 (cond ((>= (length colors) 2) (second colors)) (else c1))))
             (cellmap g
                      (r c v)
                      (let ((v v))
                        (cond
                          ((and (> r fr1) (< r fr2) (> c fc1) (< c fc2)) (cond ((= v c1) c2) ((= v c2) c1) (else v)))
                          (else v))))))))

Provenance

Generator
generators/51e59bb53cac/generator.py
Notes and decisions
generators/51e59bb53cac/notes.md
Review label
reviewed_safe
Generator SHA-256
08b4b873024c61e19e2ca44712559069050ca1493b88d76ab19b8c1b72346d36
Rule hash
6efb83adf2b2
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 51e59bb53cac --count 1 --seed 20261108 --test 1