← 5a01897eb8be · 5a40ab695e6e →

5a215cef8bd1

One connected color-2 template with a square 2x2, 3x3, or 4x4 bounding box is spatially separated from a 2x2 rectangle of singleton controls. Control colors 1/3/4/6 mean identity/rotate-cw/rotate-180/flip-lr; their ranked row and column choose the output quadrant. The four transformed copies are recolored 7 and separated by one blank row and column. A twelve-profile schedule includes every canonical canvas profile and interleaves non-3x3 counterexamples so fixed-7x7 lessons are refuted.

control gridrotation and reflectionsize changetemplate 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-paste grid pat top left) (for*/fold ((out grid)) ((r (in-range (rows pat))) (c (in-range (cols pat)))) (let ((v (at pat r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows out) (cols out))) (set-cell out rr cc v) out)))) (define (s17b-object-crop grid obj) (let ((bb (obj-bbox obj))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))) (define (t10b-recolor grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (define (t3b-index xs x) (let loop ((remaining xs) (i 0)) (cond ((empty? remaining) #f) ((= (first remaining) x) i) (else (loop (rest remaining) (+ i 1)))))) (let* ((template-obj (first (filter (lambda (obj) (= (obj-color obj) 2)) (objects g 0)))) (template (s17b-object-crop g template-obj)) (th (rows template)) (tw (cols template)) (controls (for*/list ((r (in-range (rows g))) (c (in-range (cols g))) #:when (member? (at g r c) (list 1 3 4 6))) (list r c (at g r c)))) (ctrl-rows (sort (remove-duplicates (map first controls)) <)) (ctrl-cols (sort (remove-duplicates (map second controls)) <))) (for/fold ((out (empty-grid (+ (* 2 th) 1) (+ (* 2 tw) 1) 0))) ((ctl (in-list controls))) (let* ((qr (t3b-index ctrl-rows (first ctl))) (qc (t3b-index ctrl-cols (second ctl))) (color (third ctl)) (block (cond ((= color 1) template) ((= color 3) (rotate-cw template)) ((= color 4) (rotate-180 template)) (else (flip-lr template))))) (e8b-paste out (t10b-recolor block 7) (* qr (+ th 1)) (* qc (+ tw 1))))))))

Provenance

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