← 974fee515740 · 97b3f59b5cc4 →

9758187b19ad

A four-color stencil in colors {1,2,7,8,9} is normalized to its bounding box. Marker colors encode identity (3), horizontal reflection (4), vertical reflection (5), and clockwise rotation (6). The transformed colored stencil is stamped with its bounding-box top-left at each marker onto an otherwise blank output.

coded control flowmulticolor transformstemplate replay

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 (markers grid color) (sort (find-color grid color) cell<)) (define (colored-template grid banned) (let* ((cells (filter (lambda (cell) (not (member (third cell) banned))) (grid-cells grid))) (r0 (apply min (map first cells))) (c0 (apply min (map second cells)))) (map (lambda (cell) (list (- (first cell) r0) (- (second cell) c0) (third cell))) cells))) (define (transform-colored entries op) (let* ((h (+ 1 (apply max (map first entries)))) (w (+ 1 (apply max (map second entries))))) (map (lambda (e) (let ((r (first e)) (c (second e)) (v (third e))) (cond ((= op 0) (list r c v)) ((= op 1) (list r (- w 1 c) v)) ((= op 2) (list (- h 1 r) c v)) ((= op 3) (list c (- h 1 r) v)) ((= op 4) (list (- h 1 r) (- w 1 c) v)) (else (list (- w 1 c) r v))))) entries))) (define (place-colored out entries anchor) (for/fold ((acc out)) ((e (in-list entries))) (set-cell acc (+ (first anchor) (first e)) (+ (second anchor) (second e)) (third e)))) (define (op-for-marker color) (cond ((= color 3) 0) ((= color 4) 1) ((= color 5) 2) ((= color 6) 3) (else 0))) (define entries (colored-template g (list 0 3 4 5 6))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((color (in-list (list 3 4 5 6)))) (for/fold ((acc out)) ((mk (in-list (markers g color)))) (place-colored acc (transform-colored entries (op-for-marker color)) mk)))))

Provenance

Generator
generators/9758187b19ad/generator.py
Notes and decisions
generators/9758187b19ad/notes.md
Review label
reviewed_safe
Generator SHA-256
e2b70e09c60cf10aa7a8f4a1b27123741c1925833dd9ccd8755152218286a31e
Rule hash
bb29b95b6fe8
Sources
bank:40f7bd2c7916
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9758187b19ad --count 1 --seed 20261108 --test 1