← 1bc09b475319 · 1bf52c06eae6 →

1bc816e1eb99

A 0-background grid contains two to four separated yellow components. Components include filled rectangles, one-cell-thick rectangular frames, and scheduled concave zero-hole counterexamples. Recolor each component red when it encloses no hole and cyan when it encloses exactly one hole.

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* ((out0 (grid-from-fn (rows g) (cols g) (lambda (r c) (if (= (at g r c) 4) 0 (at g r c))))))
    (for/fold ([out out0]) ([obj (filter (lambda (o) (= (obj-color o) 4)) (objects g 0))])
      (paint-cells out (obj-cells obj) (if (= (topo-count-holes g obj) 1) 8 2)))))

Provenance

Generator
generators/1bc816e1eb99/generator.py
Notes and decisions
generators/1bc816e1eb99/notes.md
Review label
reviewed_safe
Generator SHA-256
ef86b752494b893b953a714ac139f715ae6521c07471f82f316ff0fb8f914f3f
Rule hash
0c3f64fb33c3
Sources
bank:ce088a50599a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 1bc816e1eb99 --count 1 --seed 20261108 --test 1