← c24bb478ceb4 · c2a1ba1a45fd →

c286f4a2923f

On a 0-background grid, read the single connected color-2 source as exact offsets from its own top-left corner. Find the single solid color-3 target rectangle and stamp those offsets at the target's top-left corner in color 8 on an otherwise blank same-size output. Source orientation is preserved; unused target cells, the source, and the original target disappear.

parametric familylocal coordinatesmask transfertemplate/target separation

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 (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 out offsets anchor color) (for/fold ((acc out)) ((p (in-list offsets))) (set-cell acc (+ (first anchor) (first p)) (+ (second anchor) (second p)) color))) (define source (find-single g 2)) (define target (find-single g 3)) (place-offsets (empty-grid (rows g) (cols g) 0) (relative-offsets source 0) (list (obj-r1 target) (obj-c1 target)) 8)))

Provenance

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