← 2243e48c880b · 22d1f016cb3d →
2288bfea426b
One 4-connected red(2) prototype and 2-5 isolated rotation markers. Markers 1/3/4/6 stamp the bounding-box-normalized prototype at 0/90/180/270 degrees clockwise in cyan(8) on a fresh zero grid; edge pixels clip and overlapping stamps union. Alternating teaching scenes expose all codes, marker multiplicity, and canonical-fitting shortcuts.
multi-target stampingrotation controltemplate 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).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule! (let ((dummy 0)) (define (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (f4-norm cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells))) (define (nb-sort-cells cells) (sort cells e8b-list<)) (define (nb-norm cells) (nb-sort-cells (f4-norm cells))) (define (nb-rotate-one p) (list (second p) (- (first p)))) (define (nb-rotate-point p k) (let loop ((pt p) (n (modulo k 4))) (if (= n 0) pt (loop (nb-rotate-one pt) (- n 1))))) (define (nb-normalize cells) (if (empty? cells) (list) (let ((minr (apply min (map first cells))) (minc (apply min (map second cells)))) (nb-sort-cells (map (lambda (p) (list (- (first p) minr) (- (second p) minc))) cells))))) (define (nb-rotate-offsets offsets k) (nb-normalize (map (lambda (p) (nb-rotate-point p k)) offsets))) (let* ((template (nb-norm (obj-cells (first (filter (lambda (o) (= (obj-color o) 2)) (objects g 0))))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((p (in-list (grid-positions g)))) (let ((v (at g (first p) (second p)))) (if (member? v (list 1 3 4 6)) (let* ((k (cond ((= v 1) 0) ((= v 3) 1) ((= v 4) 2) (else 3))) (rot (nb-rotate-offsets template k))) (paint-cells out (map (lambda (q) (list (+ (first p) (first q)) (+ (second p) (second q)))) rot) 8)) out))))))
Provenance
- Generator
- generators/2288bfea426b/generator.py
- Notes and decisions
- generators/2288bfea426b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 84d0de4a5429d97799bf1746f3a6a530b4105c1746b71110efe1b164c34cd4c1
- Rule hash
- 4df94edcd4cc
- Sources
- bank:3cbcef69c8ec
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2288bfea426b --count 1 --seed 20261108 --test 1