← 938fbbaf1437 · 93ca517eac25 →

93b39d8c4da4

A 0-background grid contains one connected color-2 template and 2..7 isolated color-3 mask cells. Tight-normalize the template by its bounding box. On a fresh blank canvas, stamp that shape in color 8 with offset (0,0) at every mask cell; keep the union when stamps overlap. Discard the original template and mask cells.

parametric familymask-driven stampingsame-size synthesistemplate extractionunion of copies

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 (e8b-paste grid pat top left) (for*/fold ((out grid)) ((r (in-range (rows pat))) (c (in-range (cols pat)))) (let ((v (at pat r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows out) (cols out))) (set-cell out rr cc v) out)))) (let* ((templ-cells (find-color g 2)) (bb (bbox-of-cells templ-cells)) (templ (grid-from-fn (+ 1 (- (third bb) (first bb))) (+ 1 (- (fourth bb) (second bb))) (lambda (r c) (if (= (at g (+ (first bb) r) (+ (second bb) c)) 2) 8 0))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((p (in-list (find-color g 3)))) (e8b-paste out templ (first p) (second p))))))

Provenance

Generator
generators/93b39d8c4da4/generator.py
Notes and decisions
generators/93b39d8c4da4/notes.md
Review label
reviewed_safe
Generator SHA-256
1a96c0f22e24c4f68622675e5b96865edba6e8781da9192dcee68feacf43cb1e
Rule hash
d20fb64e7b01
Sources
bank:16956638be77
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 93b39d8c4da4 --count 1 --seed 20261108 --test 1