← cf6ef609da0d · cf976dae6b92 →

cf787ae40567

Treat every nonzero cell as a seed, grow its clipped orthogonal plus mask, count cells in the union of all masks, and output one row of that many 8s.

counting derived cellsgrowth without overlapsymbolic output

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 (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)))) (let* ((centers (map (lambda (cell) (list (first cell) (second cell))) (nonzero-cells g))) (n (length (grow-from-centers g centers plus-offsets)))) (list (make-list n 8)))))

Provenance

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