← 4c4f94e7d611 · 4ca8a7b38652 →

4c93dc1552b3

On a zero-background grid, find each blue(1) four-connected component that is a solid filled rectangle at least 2x2. Recolor exactly that rectangle's four corner cells red(2). Leave its non-corner blue cells, irregular blue components, and all non-blue distractors 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!
  (let ((dummy 0))
    (define (filled-rect? obj)
      (= (obj-size obj) (* (obj-h obj) (obj-w obj))))
    (for/fold ([out g]) ([obj (filter (lambda (o) (= (obj-color o) 1)) (objects g 0))])
      (if (and (filled-rect? obj) (>= (obj-h obj) 2) (>= (obj-w obj) 2))
          (paint-cells out (list (list (obj-r1 obj) (obj-c1 obj)) (list (obj-r1 obj) (obj-c2 obj)) (list (obj-r2 obj) (obj-c1 obj)) (list (obj-r2 obj) (obj-c2 obj))) 2)
          out))))

Provenance

Generator
generators/4c93dc1552b3/generator.py
Notes and decisions
generators/4c93dc1552b3/notes.md
Review label
reviewed_safe
Generator SHA-256
38ab04b8a77b336ccbf3411a31026607da6f9f516b3de023a5f1743a99981c0a
Rule hash
3b0c50f6c708
Sources
bank:e00836ab832d
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 4c93dc1552b3 --count 1 --seed 20261108 --test 1