← 1ee7274bdbb0 · 1f3e27c86f7a →
1eff2cf0e8d8
A sparse 2x2..3x3 non-{0,9} template appears near the upper-left of a zero-background grid, with 1..3 color-9 cells elsewhere. Crop the template to its bounding box, erase the input, and stamp its nonzero cells at the original bounding-box position and with each 9 as a top-left anchor. Marker cells are not preserved when the template has a hole at its top-left.
anchored stampingmultiple placementstemplate extraction
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).
Reference rule (Racket)
(rule!
(let* ((markers (find-color g 9))
(non9 (remove-color g 9 0))
(template (crop-to-content non9))
(bb (bbox-of-cells (filter-cells non9 (lambda (r c v) (not (= v 0))))))
(positions (cons (list (first bb) (second bb)) markers)))
(for*/fold ([out (empty-grid (rows g) (cols g) 0)])
([pos (in-list positions)]
[r (in-range (rows template))]
[c (in-range (cols template))])
(let ((v (at template r c))
(rr (+ (first pos) r))
(cc (+ (second pos) c)))
(if (and (not (= v 0)) (in-bounds? rr cc (rows g) (cols g)))
(set-cell out rr cc v)
out)))))Provenance
- Generator
- generators/1eff2cf0e8d8/generator.py
- Notes and decisions
- generators/1eff2cf0e8d8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 44ee3ba40b5e3f5b0fa7326e0931208e8f2e205c7150ea507f220f151fe081bb
- Rule hash
- ede1d75f92cd
- Sources
- bank:fd166f81148e
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1eff2cf0e8d8 --count 1 --seed 20261108 --test 1