← 5a44a210e9ea · 5a70e1b62a50 →
5a6a772cd217
Two or three separated hollow gray (5) rectangular frames contain one distinct interior color apiece. Read frames in row-major order, preserve each complete interior rectangle, top-align to the tallest interior, and concatenate the panels. A panel narrower than three cells gets one zero column on its outside edge: after the first panel's content but before the content of every later narrow panel.
extractionframesgallery
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 (obj< a b) (let ((ba (obj-bbox a)) (bb (obj-bbox b))) (if (= (first ba) (first bb)) (< (second ba) (second bb)) (< (first ba) (first bb))))) (define (bbox-h bb) (+ 1 (- (third bb) (first bb)))) (define (bbox-w bb) (+ 1 (- (fourth bb) (second bb)))) (define (rect-frame? grid obj) (let* ((bb (obj-bbox obj)) (r1 (first bb)) (c1 (second bb)) (r2 (third bb)) (c2 (fourth bb)) (h (bbox-h bb)) (w (bbox-w bb)) (color (obj-color obj)) (perim (- (+ (* 2 h) (* 2 w)) 4))) (and (= color 5) (>= h 3) (>= w 3) (= (obj-size obj) perim) (all? (lambda (c) (= (at grid r1 c) 5)) (range c1 (+ c2 1))) (all? (lambda (c) (= (at grid r2 c) 5)) (range c1 (+ c2 1))) (all? (lambda (r) (= (at grid r c1) 5)) (range r1 (+ r2 1))) (all? (lambda (r) (= (at grid r c2) 5)) (range r1 (+ r2 1)))))) (define (hconcat-all grids) (if (empty? (rest grids)) (first grids) (foldl (lambda (g acc) (hconcat acc g)) (first grids) (rest grids)))) (let* ((frames (sort (filter (lambda (o) (rect-frame? g o)) (objects g 0)) obj<)) (interiors (map (lambda (f) (let ((bb (obj-bbox f))) (subgrid g (+ (first bb) 1) (+ (second bb) 1) (- (third bb) 1) (- (fourth bb) 1)))) frames)) (target-h (apply max (map rows interiors))) (padded (map (lambda (entry) (let* ((idx (first entry)) (sub (second entry)) (target-w (if (< (cols sub) 3) (+ (cols sub) 1) (cols sub))) (left-pad (if (and (> idx 0) (< (cols sub) 3)) 1 0))) (grid-from-fn target-h target-w (lambda (r c) (let ((sc (- c left-pad))) (if (and (< r (rows sub)) (>= sc 0) (< sc (cols sub))) (at sub r sc) 0)))))) (enumerate-list interiors)))) (hconcat-all padded))))
Provenance
- Generator
- generators/5a6a772cd217/generator.py
- Notes and decisions
- generators/5a6a772cd217/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c228465d1d7f6944b8e65ca84ae3c523a02edb9194b4341c85980cf44883a4d0
- Rule hash
- 64fd3246321b
- Sources
- bank:1cd6e373f225
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 5a6a772cd217 --count 1 --seed 20261108 --test 1