← f16508733f0a · f191c16f6179 →
f1668de79fa1
One connected 4..9-cell color-2 template and one color-1 marker on zero. Mirror the template inside its tight bbox, then stamp it in color 8 with the bbox top-left at the marker on a fresh zero grid. Clip overflow. Sample symmetric and asymmetric shapes, canonical and larger canvases, and both complete and partial stamps. No palette relabeling is valid: the reference uses literal colors 0, 1, 2 and 8.
anchor-relative copybounding-box reasoningreflection
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 (normalize-offsets offsets) (if (empty? offsets) (list) (let* ((r0 (apply min (map first offsets))) (c0 (apply min (map second offsets)))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) offsets) offset<)))) (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 (transform-offsets offsets op) (let* ((nr (normalize-offsets offsets)) (h (+ 1 (apply max (map first nr)))) (w (+ 1 (apply max (map second nr))))) (normalize-offsets (map (lambda (p) (let ((r (first p)) (c (second p))) (cond ((= op 0) (list r c)) ((= op 1) (list r (- w 1 c))) ((= op 2) (list (- h 1 r) c)) ((= op 3) (list c (- h 1 r))) ((= op 4) (list (- h 1 r) (- w 1 c))) (else (list (- w 1 c) r))))) nr)))) (define (place-offsets out offsets anchor color) (for/fold ((acc out)) ((p (in-list offsets))) (set-cell acc (+ (first anchor) (first p)) (+ (second anchor) (second p)) color))) (place-offsets (empty-grid (rows g) (cols g) 0) (transform-offsets (relative-offsets (find-single g 2) 0) 1) (first (markers g 1)) 8)))
Provenance
- Generator
- generators/f1668de79fa1/generator.py
- Notes and decisions
- generators/f1668de79fa1/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6567f4bc49395defbfc4190dec4ac1e547b69401a80d4f515c88ed39616f2b54
- Rule hash
- 6fbd99546842
- Sources
- bank:40f7bd2c7916
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f1668de79fa1 --count 1 --seed 20261108 --test 1