← public_eval_2b83f449 · public_eval_2c181942 →
public_eval_2ba387bc
No summary in the catalog.
parametric family
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!
;; Separate hollow square frames from equally sized solid square blocks.
;; Order each class top-to-bottom, breaking equal top-row ties left-to-right.
;; Place frames in the left output column and solids in the right column.
;; Preserve exact block crops; fill missing trailing slots with background.
(lambda (g)
(let ()
(define column-order #f)
(define bg (mode g -1))
(define blocks (objects g bg))
(define size (obj-w (first blocks)))
(define (before? a b)
(if column-order
(or (< (obj-c1 a) (obj-c1 b)) (and (= (obj-c1 a) (obj-c1 b)) (< (obj-r1 a) (obj-r1 b))))
(or (< (obj-r1 a) (obj-r1 b)) (and (= (obj-r1 a) (obj-r1 b)) (< (obj-c1 a) (obj-c1 b))))))
(define (ordered xs) (sort xs before?))
;; Step A: two ordered lists of classified, input-derived block crops.
(define frames (ordered (filter (lambda (o) (not (solid-rect? o))) blocks)))
(define solids (ordered (filter solid-rect? blocks)))
(define buckets (list frames solids))
;; Step B: list lengths set output height; list membership and rank set slots.
(define slots (max (length (first buckets)) (length (second buckets))))
(for*/fold ((out (empty-grid (* size slots) (* size 2) bg)))
((i (range 0 slots)) (side (range 0 2)))
(let ((bucket (nth buckets side)))
(if (>= i (length bucket)) out
(let ((block (nth bucket i)))
(paste out (subgrid g (obj-r1 block) (obj-c1 block) (obj-r2 block) (obj-c2 block))
(* i size) (* side size)))))))))
Provenance
- Generator
- generators/public_eval_2ba387bc/generator.py
- Notes and decisions
- generators/public_eval_2ba387bc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- fc2889add4c1e2493ade0be4c696b69f203fe821476b4044a52e0df3e674c853
- Rule hash
- 59781937ed41
- Sources
- evaluation, public_eval:2ba387bc
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_2ba387bc --count 1 --seed 20261108 --test 1