← d5d9fdb01bdd · d62a0e470ae8 →

d6115f669a8e

Zero-background scenes with exactly three monochromatic 4-connected objects. The reference crops each object, sorts by (leftmost column, top row), and left-aligns the crops in a vertical gallery with one blank separator row. A five-profile schedule preserves canonical 3-cell L motifs while exposing ordering, width/alignment, tied-left, and same-color grouping shortcuts.

extractiongalleryobjectssorting

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 (bbox< a b) (if (= (obj-c1 a) (obj-c1 b)) (< (obj-r1 a) (obj-r1 b)) (< (obj-c1 a) (obj-c1 b)))) (define (component-grid-from obj source) (for/fold ((out (empty-grid (+ 1 (- (obj-r2 obj) (obj-r1 obj))) (+ 1 (- (obj-c2 obj) (obj-c1 obj))) 0))) ((p (in-list (obj-cells obj)))) (set-cell out (- (first p) (obj-r1 obj)) (- (second p) (obj-c1 obj)) (at source (first p) (second p))))) (define (component-grid obj) (component-grid-from obj g)) (define (paste-crop grid shape top left) (for*/fold ((out grid)) ((r (in-range (rows shape))) (c (in-range (cols shape)))) (let ((v (at shape r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows grid) (cols grid))) (set-cell out rr cc v) out)))) (let* ((objs (sort (objects g 0) bbox<)) (crops (map component-grid objs)) (maxw (apply max (map cols crops))) (totalh (+ (apply + (map rows crops)) (max 0 (- (length crops) 1))))) (let loop ((remaining crops) (top 0) (out (empty-grid totalh maxw 0))) (if (empty? remaining) out (let ((crop (first remaining))) (loop (rest remaining) (+ top (rows crop) (if (empty? (rest remaining)) 0 1)) (paste-crop out crop top 0))))))))

Provenance

Generator
generators/d6115f669a8e/generator.py
Notes and decisions
generators/d6115f669a8e/notes.md
Review label
reviewed_safe
Generator SHA-256
014e97b0c715ec71dbf45d146b8d61f89656d64794e1ee209a8429206c92ce5f
Rule hash
e09122d9163c
Sources
bank:04c7711cefc4
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate d6115f669a8e --count 1 --seed 20261108 --test 1