← 0b8ba9bb3c63 · 0b9e771d6ba5 →
0b999a8ea028
Select the largest non-blue object, erase the input, and stamp its normalized shape centered inside each color-1 exact rectangular border. Smaller objects, malformed blue rings, and connected frame composites are erased; with no exact frame the output is blank.
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 (e8-cell<? a b) (or (< (first a) (first b)) (and (= (first a) (first b)) (< (second a) (second b))))) (define (e8-norm cells) (sort (normalize-cells cells) e8-cell<?)) (define (e8-rect-border? obj) (let* ((bb (obj-bbox obj)) (r1 (first bb)) (c1 (second bb)) (r2 (third bb)) (c2 (fourth bb)) (border (filter (lambda (p) (or (= (first p) r1) (= (first p) r2) (= (second p) c1) (= (second p) c2))) (positions-in-rect r1 c1 r2 c2)))) (equal? (sort (obj-cells obj) e8-cell<?) (sort border e8-cell<?)))) (let* ((objs (objects g 0)) (frames (filter (lambda (obj) (and (= (obj-color obj) 1) (e8-rect-border? obj))) objs)) (proto (first (sort (filter (lambda (obj) (not (= (obj-color obj) 1))) objs) (lambda (a b) (> (obj-size a) (obj-size b)))))) (pbb (bbox-of-cells (e8-norm (obj-cells proto)))) (ph (+ 1 (third pbb))) (pw (+ 1 (fourth pbb))) (shape (e8-norm (obj-cells proto))) (pcolor (obj-color proto))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((frame (in-list frames))) (let* ((bb (obj-bbox frame)) (r1 (first bb)) (c1 (second bb)) (r2 (third bb)) (c2 (fourth bb)) (ih (- r2 r1 1)) (iw (- c2 c1 1)) (sr (+ r1 1 (quotient (- ih ph) 2))) (sc (+ c1 1 (quotient (- iw pw) 2)))) (paint-cells out (map (lambda (p) (list (+ sr (first p)) (+ sc (second p)))) shape) pcolor))))))
Provenance
- Generator
- generators/0b999a8ea028/generator.py
- Notes and decisions
- generators/0b999a8ea028/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- dbdfd0ac67ccd457800595068a3c044a0c0792dddc7b02ce019a7be4f4a78ccc
- Rule hash
- d8a130fd2a56
- Sources
- bank:b5b9f7c948f0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 0b999a8ea028 --count 1 --seed 20261108 --test 1