← ef02aedbac38 · efb59efe0080 →
ef03216cf2fa
Three or four separated monochrome objects have distinct bounding-box perimeters and a controlled row-major rank order. Crop each object, rotate tall crops clockwise, sort by perimeter descending (row-major on ties), and stack them vertically with one zero row between crops. Every generated input contains an asymmetric tall crop that distinguishes clockwise from counterclockwise rotation.
parametric familyrelayoutrotationsorting
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* ((items (sort (map (lambda (obj)
(let* ((sub0 (subgrid g (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj)))
(sub (if (> (rows sub0) (cols sub0)) (rotate-cw sub0) sub0))
(per (* 2 (+ (rows sub) (cols sub)))))
(list per (obj-r1 obj) (obj-c1 obj) sub)))
(objects g 0))
(lambda (a b)
(if (= (first a) (first b))
(if (= (second a) (second b))
(< (third a) (third b))
(< (second a) (second b)))
(> (first a) (first b))))))
(shapes (map fourth items))
(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/ef03216cf2fa/generator.py
- Notes and decisions
- generators/ef03216cf2fa/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b4a25d2fcfdf038eb6ce56eae11105ae452d7680d7358cd182bd9f6411b4332c
- Rule hash
- 455db4f731f0
- Sources
- bank:ca0e5b777526
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ef03216cf2fa --count 1 --seed 20261108 --test 1