← 204eaaff6c24 · 20b53e0c4957 →

20859a33c80e

A 0-background grid contains 3-4 nonzero connected components whose bounding boxes form one or two containment trees. Recolor every component by inclusive bounding-box depth: depth 1->2, 2->3, 3->4, 4->5, 5->6, and deeper->9. Component shape and source color do not determine the answer.

containmentnestingrecolor

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)) (let* ((objs (objects g 0)) (indexed (enumerate-list objs))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((entry (in-list indexed))) (let* ((idx (first entry)) (obj (second entry)) (depth (+ 1 (count-where (lambda (other) (let ((j (first other)) (o (second other))) (and (not (= idx j)) (<= (obj-r1 o) (obj-r1 obj)) (>= (obj-r2 o) (obj-r2 obj)) (<= (obj-c1 o) (obj-c1 obj)) (>= (obj-c2 o) (obj-c2 obj)) (not (and (= (obj-r1 o) (obj-r1 obj)) (= (obj-r2 o) (obj-r2 obj)) (= (obj-c1 o) (obj-c1 obj)) (= (obj-c2 o) (obj-c2 obj))))))) indexed))) (color (cond ((= depth 1) 2) ((= depth 2) 3) ((= depth 3) 4) ((= depth 4) 5) ((= depth 5) 6) (else 9)))) (paint-cells out (obj-cells obj) color))))))

Provenance

Generator
generators/20859a33c80e/generator.py
Notes and decisions
generators/20859a33c80e/notes.md
Review label
reviewed_safe
Generator SHA-256
42247ae6adaefbdefddf023835b2ccdd83e71060c2ab1d0364f1be9afd7b885d
Rule hash
c7c12a48b62f
Sources
bank:f49e478ddaeb
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 20859a33c80e --count 1 --seed 20261108 --test 1