← 520fe6e64fb6 · 528bbb532b67 →

521473faec65

A black grid contains two or three separated solid monochrome rectangles in distinct nonzero colours. For each rectangle independently, start a checkerboard at its own top-left cell: retain the rectangle colour where (row - top + column - left) is even and clear the alternating cells to 0. A four-sample teaching schedule alternates two/three rectangles and even/odd rectangle anchors to rule out first-two-only and global-origin checkerboard shortcuts.

checkerize_bboxsolid_rectangle_detect

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!
  (for/fold ([out (empty-grid (rows g) (cols g) 0)])
            ([obj (in-list (filter filled? (objects g 0)))])
    (for*/fold ([acc out])
               ([r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1))]
                [c (in-range (obj-c1 obj) (+ (obj-c2 obj) 1))])
      (if (= (modulo (+ (- r (obj-r1 obj)) (- c (obj-c1 obj))) 2) 0)
          (set-cell acc r c (obj-color obj))
          acc))))

Provenance

Generator
generators/521473faec65/generator.py
Notes and decisions
generators/521473faec65/notes.md
Review label
reviewed_safe
Generator SHA-256
2a22bb7df0d652c6e2ca7b9de2bf23dd9a1dc540f44da6a20ee34032815744b1
Rule hash
4409288b0253
Sources
bank:f4425e302da7
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 521473faec65 --count 1 --seed 20261108 --test 1