← d336f5fb2da4 · d3575d4206d7 →

d349f4dfe492

A zero-background grid contains 1-5 separated colored singleton seeds. Preserve every seed and paint each original empty cell at Manhattan distance exactly two with that seed's color. Seeds are processed row-major and only still-empty output cells are painted. The ordinary teaching grammar keeps closed radius-two influence zones disjoint.

distancemorphologysame_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 (nonzero-cells grid) (sort (filter (lambda (cell) (not (= (third cell) 0))) (grid-cells grid)) (lambda (a b) (cell< (list (first a) (second a)) (list (first b) (second b)))))) (for/fold ((out g)) ((cell (in-list (nonzero-cells g)))) (let ((r (first cell)) (c (second cell)) (color (third cell))) (for/fold ((acc out)) ((p (in-list (grid-positions g)))) (if (and (= (at g (first p) (second p)) 0) (= (+ (abs (- (first p) r)) (abs (- (second p) c))) 2) (= (at acc (first p) (second p)) 0)) (set-cell acc (first p) (second p) color) acc))))))

Provenance

Generator
generators/d349f4dfe492/generator.py
Notes and decisions
generators/d349f4dfe492/notes.md
Review label
reviewed_safe
Generator SHA-256
9a66f07f38847dc9e4bda120c7679107dde7ce63fda7e52963e71849d276e6ca
Rule hash
e47d7c8767c3
Sources
bank:1cd6e373f225
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate d349f4dfe492 --count 1 --seed 20261108 --test 1