← 7358813cf026 · 73d82a9cacf6 →
73906110dd67
An 8..18 by 10..18 zero-background grid contains three or four diagonally separated monochrome objects with distinct colors and distinct cell areas. Extract each object, crop it tightly, sort the crops by object cell area from largest to smallest, and stack them vertically with one zero row between neighboring crops. Crops are left aligned; output width equals the maximum crop width.
parametric familyobject_extractionrelayoutsorting
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* ((objs (sort (objects g 0) (lambda (a b) (> (obj-size a) (obj-size b)))))
(shapes (map (lambda (obj) (subgrid g (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))) objs))
(out-h (+ (apply + (map rows shapes)) (max 0 (- (length shapes) 1))))
(out-w (apply max (map cols shapes))))
(let pack ([remaining shapes] [top 0] [out (empty-grid out-h out-w 0)])
(if (empty? remaining)
out
(let* ((shape (first remaining))
(next (for*/fold ([acc out])
([r (in-range (rows shape))]
[c (in-range (cols shape))])
(let ((v (at shape r c)))
(if (not (= v 0)) (set-cell acc (+ top r) c v) acc)))))
(pack (rest remaining) (+ top (rows shape) 1) next))))))Provenance
- Generator
- generators/73906110dd67/generator.py
- Notes and decisions
- generators/73906110dd67/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e42e0baab3290309a58f6864e4d1fb91c6f1271f89bd79175ed1d94b3c68661d
- Rule hash
- 9b7f117d5438
- Sources
- bank:276b5e4c56a1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 73906110dd67 --count 1 --seed 20261108 --test 1