← 15e7e0613c19 · 1674812130ff →
165ab20d8b6b
A 0-background grid contains 1..4 isolated, distinctly colored, interior 4-connected blobs. Erase each blob and paint all zero cells immediately adjacent to it in the four cardinal directions with that blob's color. Generated lessons include ordinary canonical-scale blobs, smaller broad-support blobs, and 3x3 ring blobs whose enclosed center is also painted.
parametric familymorphologyobjectssame_size
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 (orthogonal-neighbor-cells grid cells) (remove-duplicates (filter (lambda (p) (in-bounds? (first p) (second p) (rows grid) (cols grid))) (flatmap (lambda (p) (map (lambda (d) (list (+ (first p) (first d)) (+ (second p) (second d)))) cardinal-deltas)) cells)))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (let* ((neighbors (filter (lambda (p) (= (at g (first p) (second p)) 0)) (orthogonal-neighbor-cells g (obj-cells obj))))) (paint-cells out neighbors (obj-color obj))))))
Provenance
- Generator
- generators/165ab20d8b6b/generator.py
- Notes and decisions
- generators/165ab20d8b6b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c5165b18f58600303789179fe83d96c0b3bc54004f88d6f4e771ed6ba004b58d
- Rule hash
- 63879e6d755e
- Sources
- bank:1cd6e373f225
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 165ab20d8b6b --count 1 --seed 20261108 --test 1