← b5df32f2dc17 · b650a355848c →
b6452f922704
Three equal maroon frames contain red/blue shapes with overlapping bounding boxes and local key colors; repeated keys are lawful, and every draw teaches vertical centering in the output gallery.
parametric familybounding boxesgallery packingintersectionlocal frame reasoning
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!
;; Maroon(9) frames each hold a red(2) and a blue(1) shape whose
;; bounding boxes overlap, plus a KEY color dot just above the frame.
;; Emit one solid key-colored block per frame, sized like that
;; red/blue overlap — laid out in a row, vertically centered, with
;; 1-column gaps.
(lambda (g)
(let ()
(define (frame? o) ;; hollow maroon rectangle outline, 3x3+
(and (= (obj-color o) 9)
(>= (obj-h o) 3) (>= (obj-w o) 3)
(= (obj-size o) (- (* 2 (+ (obj-h o) (obj-w o))) 4))
(all? (lambda (p) (or (= (first p) (obj-r1 o))
(= (first p) (obj-r2 o))
(= (second p) (obj-c1 o))
(= (second p) (obj-c2 o))))
(obj-cells o))))
(define frames
(sort (filter frame? (objects g 0))
(lambda (a b) (or (< (obj-r1 a) (obj-r1 b))
(and (= (obj-r1 a) (obj-r1 b))
(< (obj-c1 a) (obj-c1 b)))))))
(define (key-of fr)
(let ((r (- (obj-r1 fr) 1)))
(first (if (>= r 0)
(filter (lambda (v) (not (member? v (list 0 9))))
(map (lambda (c) (at g r c))
(range (obj-c1 fr)
(+ (obj-c2 fr) 1))))
(list)))))
(define (part-of fr) ;; the red/blue bbox overlap as a key block
(let* ((interior (subgrid g (+ (obj-r1 fr) 1) (+ (obj-c1 fr) 1)
(- (obj-r2 fr) 1) (- (obj-c2 fr) 1)))
(rb (bbox-of-cells (find-color interior 2)))
(bb (bbox-of-cells (find-color interior 1))))
(empty-grid (+ 1 (- (min (third rb) (third bb))
(max (first rb) (first bb))))
(+ 1 (- (min (fourth rb) (fourth bb))
(max (second rb) (second bb))))
(key-of fr))))
(define parts (map part-of frames))
(let ((gh (apply max (map rows parts)))
(gw (+ (apply + (map cols parts)) (- (length parts) 1))))
(let loop ((xs parts) (left 0) (out (empty-grid gh gw 0)))
(if (empty? xs)
out
(let ((piece (first xs)))
(loop (rest xs) (+ left (cols piece) 1)
(for*/fold ((acc out))
((r (range 0 (rows piece)))
(c (range 0 (cols piece))))
(let ((v (at piece r c)))
(if (> v 0)
(set-cell acc
(+ (quotient (- gh (rows piece))
2)
r)
(+ left c) v)
acc)))))))))))Provenance
- Generator
- generators/b6452f922704/generator.py
- Notes and decisions
- generators/b6452f922704/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 507c68b8d9eb31fcc3a86d999854acfada8bc269438724a91b5fc4b22c7e9b4c
- Rule hash
- abfc4a89f098
- Sources
- bank:9f005a7005fe
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b6452f922704 --count 1 --seed 20261108 --test 1