← b28619e32f6f · b2f8fcc010d5 →
b2d6e6b60917
A 21x21 zero-background grid contains one largest monochrome source template and two or three smaller monochrome marker fragments. Each marker is a proper subset of the source translated to the first slot in one of eight directions. Repeat the full source shape outward in the marker color, using stride (source bbox height + 1, source bbox width + 1) on the active direction components and preserving all existing cells.
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))
(objs (objects-8 g 0))
(sorted (sort-by objs (lambda (o) (* -1 (obj-size o)))))
(cross (first sorted))
(markers (filter (lambda (o) (!= o cross)) sorted))
(cb (obj-bbox cross))
(cr (/ (+ (nth cb 0) (nth cb 2)) 2))
(cc (/ (+ (nth cb 1) (nth cb 3)) 2))
(ch (+ 1 (- (nth cb 2) (nth cb 0))))
(cw (+ 1 (- (nth cb 3) (nth cb 1)))))
(reduce (lambda (grid marker)
(let* ((mb (obj-bbox marker))
(mr (/ (+ (nth mb 0) (nth mb 2)) 2))
(mc (/ (+ (nth mb 1) (nth mb 3)) 2))
(color (obj-color marker))
(ddr (cond ((< mr cr) -1) ((> mr cr) 1) (else 0)))
(ddc (cond ((< mc cc) -1) ((> mc cc) 1) (else 0)))
(stride-r (if (!= ddr 0) (* ddr (+ ch 1)) 0))
(stride-c (if (!= ddc 0) (* ddc (+ cw 1)) 0)))
(reduce (lambda (g2 step)
(let ((nr (+ cr (* stride-r step)))
(nc (+ cc (* stride-c step))))
(reduce (lambda (g3 cell)
(let* ((cell-r (+ nr (- (fst cell) cr)))
(cell-c (+ nc (- (snd cell) cc))))
(if (and
(>= cell-r 0)
(< cell-r h)
(>= cell-c 0)
(< cell-c w)
(zero? (at g3 cell-r cell-c)))
(set-cell g3 cell-r cell-c color)
g3)))
g2
(obj-cells cross))))
grid
(range 1 10))))
g
markers))))Provenance
- Generator
- generators/b2d6e6b60917/generator.py
- Notes and decisions
- generators/b2d6e6b60917/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e550260117ba72e516b0829b0de282e818984cf001fc7d1a26d9c77b9c1e248f
- Rule hash
- 73b1bc28244d
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b2d6e6b60917 --count 1 --seed 20261108 --test 1