← bf53d21ff9fc · bf8910eef99b →

bf5bed969a6d

A 0-background grid contains one connected color-2 template and two colored rectangular frame outlines. Frames may be disjoint or one may occlude cells of the other, splitting a frame color into multiple same-color components. The output is a fresh 0 canvas containing every non-2 component plus a centered, frame-colored copy of the normalized template inside each such component; the source template disappears.

parametric familycenteringframe interiorsmulti-object stampingtemplate 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 (t10-floor-half n) (if (>= n 0) (quotient n 2) (- (quotient (+ (- n) 1) 2)))) (define (t10-norm-cells cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (list (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) (+ 1 (- r1 r0)) (+ 1 (- c1 c0)) r0 c0))) (let* ((template-obj (first (filter (lambda (obj) (= (obj-color obj) 2)) (objects g 0)))) (tinfo (t10-norm-cells (obj-cells template-obj))) (toffs (first tinfo)) (tr (second tinfo)) (tc (third tinfo))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (if (= (obj-color obj) 2) out (let* ((bb (obj-bbox obj)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (ih (- r1 r0 1)) (iw (- c1 c0 1)) (sr (+ r0 1 (t10-floor-half (- ih tr)))) (sc (+ c0 1 (t10-floor-half (- iw tc)))) (out2 (paint-cells out (obj-cells obj) (obj-color obj)))) (paint-cells out2 (map (lambda (p) (list (+ sr (first p)) (+ sc (second p)))) toffs) (obj-color obj))))))))

Provenance

Generator
generators/bf5bed969a6d/generator.py
Notes and decisions
generators/bf5bed969a6d/notes.md
Review label
reviewed_safe
Generator SHA-256
e2d888434443cd34e224355792a8a7c13a387717903747c2e20820f8662f2127
Rule hash
39419b6b1cfb
Sources
bank:6ee66428b984
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate bf5bed969a6d --count 1 --seed 20261108 --test 1