← 28423cdf02cc · 28aab6c2d6e0 →
2847032fa29b
Sort component crops by (cell count, numeric color) and form a top-aligned one-column-gapped gallery.
area rankingcomponentspacking
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 objs
(sort (objects g 0)
(lambda (a b)
(cond [(not (= (obj-size a) (obj-size b))) (< (obj-size a) (obj-size b))]
[else (< (obj-color a) (obj-color b))]))))
(define crops (map (lambda (o) (subgrid g (obj-r1 o) (obj-c1 o) (obj-r2 o) (obj-c2 o))) objs))
(define out-h (apply max (map rows crops)))
(define out-w (+ (apply + (map cols crops)) (max 0 (- (length crops) 1))))
(let loop ([out (empty-grid out-h out-w 0)] [remaining crops] [left 0])
(if (empty? remaining)
out
(let ((crop (first remaining)))
(loop (for*/fold ([acc out])
([r (in-range (rows crop))]
[c (in-range (cols crop))])
(set-cell acc r (+ left c) (at crop r c)))
(rest remaining)
(+ left (cols crop) 1)))))))Provenance
- Generator
- generators/2847032fa29b/generator.py
- Notes and decisions
- generators/2847032fa29b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 73496bd89160cf7fb8c32470180b58bb66114e6abc89727e7347d473832eb362
- Rule hash
- 4aee1598717a
- Sources
- bank:be1bc1d91387
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2847032fa29b --count 1 --seed 20261108 --test 1