← 26dbe76edccd · 26f02d922ca0 →
26e0ef7cf48b
A black grid contains one connected red (2) template, green (3) and yellow (4) one-cell anchors, and optional maroon (9) walls. Normalize the template to its bounding-box top-left and stamp that same shape in cyan (8) at every 3/4 anchor. Discard stamped cells that are outside the grid or lie on a 9. Overlapping copies merge. Sequential lessons cycle through wall blocking, boundary clipping, overlap, and an uncluttered base case so the query rule is demonstrated rather than hidden.
clippingconstraint-aware stampingoverlap priority
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 (offset< a b) (if (= (first a) (first b)) (< (second a) (second b)) (< (first a) (first b)))) (define (find-single grid color) (first (filter (lambda (obj) (= (obj-color obj) color)) (objects grid 0)))) (define (markers grid color) (sort (find-color grid color) cell<)) (define (relative-offsets obj anchor) (let* ((ar (cond ((= anchor 0) (obj-r1 obj)) ((= anchor 1) (obj-r1 obj)) ((= anchor 2) (obj-r2 obj)) (else (obj-r2 obj)))) (ac (cond ((= anchor 0) (obj-c1 obj)) ((= anchor 1) (obj-c2 obj)) ((= anchor 2) (obj-c1 obj)) (else (obj-c2 obj))))) (sort (map (lambda (p) (list (- (first p) ar) (- (second p) ac))) (obj-cells obj)) offset<))) (define (place-offsets-bounded out offsets anchor color source) (for/fold ((acc out)) ((p (in-list offsets))) (let ((r (+ (first anchor) (first p))) (c (+ (second anchor) (second p)))) (if (and (in-bounds? r c (rows out) (cols out)) (not (= (at source r c) 9))) (set-cell acc r c color) acc)))) (define offs (relative-offsets (find-single g 2) 0)) (define out3 (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((mk (in-list (markers g 3)))) (place-offsets-bounded out offs mk 8 g))) (for/fold ((out out3)) ((mk (in-list (markers g 4)))) (place-offsets-bounded out offs mk 8 g))))
Provenance
- Generator
- generators/26e0ef7cf48b/generator.py
- Notes and decisions
- generators/26e0ef7cf48b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e05c1a6b069308a67c1a233d0e242be5e3495fd043f4e6d70f4290e700ddb4b9
- Rule hash
- 4073f9cf50ec
- Sources
- bank:40f7bd2c7916
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 26e0ef7cf48b --count 1 --seed 20261108 --test 1