← 2496d7db1883 · 24b83272f157 →

249b59452da6

On a sparse zero-background grid, inspect every input 2x2 window. When exactly two red (2) cells occupy opposite diagonal corners and both remaining corners are zero, fill those zeros with green (3). Evaluate all windows on the original input, including overlapping windows and boundary windows. Preserve every other cell. Colored distractors, orthogonal red bars, and occupied opposite corners remain unchanged.

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!
  ;; alt: find each diagonal red 2x2, then paint its two zero corners green.
  (let* ((windows
          (filter
            (lambda (p)
              (let* ((r (first p))
                     (c (second p))
                     (a (at g r c))
                     (b (at g r (+ c 1)))
                     (d (at g (+ r 1) c))
                     (e (at g (+ r 1) (+ c 1))))
                (or (and (= a 2) (= e 2) (zero? b) (zero? d))
                    (and (= b 2) (= d 2) (zero? a) (zero? e)))))
            (for*/list ([r (range 0 (- h 1))]
                        [c (range 0 (- w 1))])
              (list r c))))
         (inside-window?
          (lambda (p)
            (any? (lambda (q)
                    (and (>= (first p) (first q))
                         (<= (first p) (+ (first q) 1))
                         (>= (second p) (second q))
                         (<= (second p) (+ (second q) 1))))
                  windows)))
         (missing
          (filter (lambda (p)
                    (and (zero? (at g (first p) (second p)))
                         (inside-window? p)))
                  (grid-positions g))))
    (paint-cells g missing 3)))

Provenance

Generator
generators/249b59452da6/generator.py
Notes and decisions
generators/249b59452da6/notes.md
Review label
reviewed_safe
Generator SHA-256
08004f5c2009ed1721b8c2b8727bd277cc49efd32c5956fca1bfd8b0753a57dc
Rule hash
e42ab715e8c9
Sources
bank:7f8a290afe75
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 249b59452da6 --count 1 --seed 20261108 --test 1