← b985d561c63b · b9ada70e7181 →

b98cdd1751a7

Order four scattered 8-connected objects by upper/lower row group and left/right column, then assemble their normalized crops into a 7x7 quadrant grid.

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! (lambda (g) (let* ((h (rows g)) (w (cols g))) (let* ((objs (sort-by (objects-8 g 0) (lambda (o) (+ (* (min-of fst (obj-cells o)) 1000) (min-of snd (obj-cells o)))))) (mid-r (/ (+ 0.0 (min-of fst (obj-cells (fst objs))) (min-of fst (obj-cells (nth objs (- (length objs) 1))))) 2)) (top (sort-by (filter (lambda (o) (< (min-of fst (obj-cells o)) mid-r)) objs) (lambda (o) (min-of snd (obj-cells o))))) (bot (sort-by (filter (lambda (o) (>= (min-of fst (obj-cells o)) mid-r)) objs) (lambda (o) (min-of snd (obj-cells o))))) (ordered (append top bot)) (positions (list (list 0 0) (list 0 4) (list 4 0) (list 4 4)))) (reduce (lambda (acc i) (let* ((obj (nth ordered i)) (pr (fst (nth positions i))) (pc (snd (nth positions i))) (or0 (min-of fst (obj-cells obj))) (oc0 (min-of snd (obj-cells obj)))) (reduce (lambda (a cell) (let* ((nr (+ pr (- (fst cell) or0))) (nc (+ pc (- (snd cell) oc0)))) (if (and (>= nr 0) (< nr 7) (>= nc 0) (< nc 7)) (set-cell a nr nc (at g (fst cell) (snd cell))) a))) acc (obj-cells obj)))) (build-grid 7 7 (r c) 0) (range 0 (min 4 (length ordered))))))))

Provenance

Generator
generators/b98cdd1751a7/generator.py
Notes and decisions
generators/b98cdd1751a7/notes.md
Review label
reviewed_safe
Generator SHA-256
5588e75560f52086dc2e80c063320e0e6318672fb64b4470d5bcd5a3d1cfb5b1
Rule hash
781a5f8cfaee
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b98cdd1751a7 --count 1 --seed 20261108 --test 1