← 83efd4fcb4f4 · 84aeaf4792a8 →

84730935f58f

A zero-background grid has a selector in the top-left corner and at least two coloured seeds elsewhere. Selector 1 chooses the five-cell plus stencil; selectors 2..7 choose the five-cell diagonal X. The output is a fresh zero grid containing the in-bounds union of those stencils in cyan (8); the selector itself is not copied to the output.

parametric familylegend-controlled branchingseed stampingstencil selection

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 plus-offsets (list (list 0 0) (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define x-offsets (list (list 0 0) (list -1 -1) (list -1 1) (list 1 -1) (list 1 1))) (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)))))) (define (grow-from-centers grid centers offsets) (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)))) offsets)) centers)))) (define (paint-grown grid centers offsets (color 8)) (paint-cells (empty-grid (rows grid) (cols grid) 0) (grow-from-centers grid centers offsets) color)) (let* ((marker (top-left g)) (offsets (if (= marker 1) plus-offsets x-offsets)) (centers (map (lambda (cell) (list (first cell) (second cell))) (filter (lambda (cell) (not (and (= (first cell) 0) (= (second cell) 0)))) (nonzero-cells g))))) (paint-grown g centers offsets 8))))

Provenance

Generator
generators/84730935f58f/generator.py
Notes and decisions
generators/84730935f58f/notes.md
Review label
reviewed_safe
Generator SHA-256
d77ae8fc2f8213736dde24b3c5d09c7264773c3788b1ec9f57ee9733ba20879f
Rule hash
cb0eb8d9e46e
Sources
bank:1f065edbcf08
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 84730935f58f --count 1 --seed 20261108 --test 1