← 105b239cb812 · 1108b6a9cf51 →

10bc62b2de84

Constructive 0-background object galleries. Generate 2-6 distinct-color 4-connected objects in a 6-14 by 9-22 grid, keep objects disjoint under 4-connectivity, and give every object a unique left bounding-box column. The selected rule sorts by that left edge, crops each object, packs crops left-to-right with one zero column between them, and bottom-aligns them. Every generated input has unequal crop heights so the canonical-only top-alignment shortcut is visibly wrong.

galleryobjectspacking

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 (object-grid grid obj) (subgrid grid (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))) (define (shape-place out crop top left) (for*/fold ((acc out)) ((r (in-range (rows crop))) (c (in-range (cols crop)))) (let ((v (at crop r c))) (if (= v 0) acc (set-cell acc (+ top r) (+ left c) v))))) (define objs (sort (objects g 0) (lambda (a b) (< (obj-c1 a) (obj-c1 b))))) (define pieces (map (lambda (obj) (object-grid g obj)) objs)) (define out-h (apply max (map rows pieces))) (define out-w (+ (apply + (map cols pieces)) (max 0 (- (length pieces) 1)))) (let pack ((remaining pieces) (c0 0) (out (empty-grid out-h out-w 0))) (if (empty? remaining) out (let* ((piece (first remaining)) (top (- out-h (rows piece)))) (pack (rest remaining) (+ c0 (cols piece) 1) (shape-place out piece top c0)))))))

Provenance

Generator
generators/10bc62b2de84/generator.py
Notes and decisions
generators/10bc62b2de84/notes.md
Review label
reviewed_safe
Generator SHA-256
5c1afcc5dcdc13ab461d1e327cf2ff8decb4300c0af524bf96f73f9ad2818756
Rule hash
eb9f505d4c6b
Sources
bank:5dfff1627b31
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 10bc62b2de84 --count 1 --seed 20261108 --test 1