← fa3550d200a0 · fa55db418c9d →

fa3e0c305476

Find every cyan object. Within that object's bounding box, count the connected regions whose cells are not cyan. Recolor the whole object by that count: 1->blue(1), 2->red(2), 3->green(3), 4->orange(7); any other count leaves the object cyan. Sequential sample indices form a linked lesson: demonstrations cover 0,1,2 then 3,4 then 1,5,6; the next query uses only the already-demonstrated 2,3,4 branches.

parametric family

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)
  (paint-objects-by g (objects g 0)
    (lambda (obj)
      (with-bbox obj (r1 c1 r2 c2)
        (let* ((sub (subgrid g r1 c1 r2 c2))
               (n-holes (length (objects sub 8))))
          (casev n-holes {1 1 2 2 3 3 4 7} (obj-color obj))))))))

Provenance

Generator
generators/fa3e0c305476/generator.py
Notes and decisions
generators/fa3e0c305476/notes.md
Review label
reviewed_safe
Generator SHA-256
4781f62f5d6a0a4ef48a7062e5e71f20a70cbe98e396aaa831ad241b403e10a7
Rule hash
c89e9c00a1d3
Sources
custom
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate fa3e0c305476 --count 1 --seed 20261108 --test 1