← 5b3c69ad7276 · 5b6cd8e8f3df →

5b4fd0a9c80e

Place three separated monochrome components. Sort their raw bbox crops by ascending cell area with top-row/left-column tie breaks, then stack them with one blank row and floor-centered horizontal alignment. The four-profile schedule mixes distinct sizes, positional ties, bbox-area traps, and odd centering offsets.

connected componentscrop to bboxsize-changing outputsorting by area

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-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (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 (f14b-vstack-center grids (gap 1)) (if (empty? grids) (list (list)) (let* ((w (apply max (map cols grids))) (h (+ (apply + (map rows grids)) (* gap (- (length grids) 1))))) (let loop ((ys grids) (top 0) (out (empty-grid h w 0))) (if (empty? ys) out (let* ((piece (first ys)) (left (quotient (- w (cols piece)) 2))) (loop (rest ys) (+ top (rows piece) gap) (e8b-paste out piece top left)))))))) (define (s17b-object-crop grid obj) (let ((bb (obj-bbox obj))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))) (let* ((items (sort (map (lambda (obj) (list (obj-size obj) (first (obj-bbox obj)) (second (obj-bbox obj)) (s17b-object-crop g obj))) (objects g 0)) (lambda (a b) (e8b-list< (list (first a) (second a) (third a)) (list (first b) (second b) (third b))))))) (f14b-vstack-center (map fourth items) 1))))

Provenance

Generator
generators/5b4fd0a9c80e/generator.py
Notes and decisions
generators/5b4fd0a9c80e/notes.md
Review label
reviewed_safe
Generator SHA-256
35e8bdcacaed9f450dbfa0e7ec2c9c7ea091fde58d77a2693a53e6f6490941f4
Rule hash
d54b19002e00
Sources
bank:ad4abc25f505
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5b4fd0a9c80e --count 1 --seed 20261108 --test 1