← fa2e57ec3fa2 · fa3e0c305476 →
fa3550d200a0
A variable 0-background grid contains one solid rectangular canvas in the modal non-zero color. Two through five distinct marker colors occur once inside the canvas. Isolated outside pieces contain one matching marker cell plus a small color-2 shape; translating each piece so its marker lands on the same-colored canvas marker stamps that shape into the canvas crop. Some lessons also include one unmatched-marker outside piece, which is a distractor and must be ignored. Endpoint and diagonal pieces teach full eight-connected object extraction.
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* ((rc (mode g 0))
(bb (bbox-of-cells (find-color g rc)))
(r1 (first bb))
(c1 (second bb))
(r2 (third bb))
(c2 (fourth bb))
(oh (+ 1 (- r2 r1)))
(ow (+ 1 (- c2 c1)))
(all-pos (grid-positions g))
(canvas (subgrid g r1 c1 r2 c2))
(objs (objects-multicolor g))
(outside-objs (filter (lambda (obj)
(for/or ((cell (obj-cells obj)))
(let ((r (fst cell))
(c (snd cell)))
(or
(< r r1)
(> r r2)
(< c c1)
(> c c2)))))
objs)))
(reduce (lambda (can obj)
(let* ((cells (obj-cells obj))
(special-cell (find (lambda (cell)
(let ((v (at g (fst cell) (snd cell))))
(and (!= v 2) (!= v 0) (!= v rc))))
cells)))
(if special-cell
(let* ((sc (at g (fst special-cell) (snd special-cell)))
(sr (fst special-cell))
(scc2 (snd special-cell))
(im (find (lambda (p)
(and
(= sc (at g (fst p) (snd p)))
(>= (fst p) r1)
(<= (fst p) r2)
(>= (snd p) c1)
(<= (snd p) c2)))
all-pos)))
(if im
(let ((mr (- (fst im) r1))
(mc (- (snd im) c1)))
(reduce (lambda (c2 cell)
(let ((nr (+ mr (- (fst cell) sr)))
(nc (+ mc (- (snd cell) scc2))))
(if (and
(>= nr 0)
(< nr oh)
(>= nc 0)
(< nc ow))
(set-cell c2
nr
nc
(at g
(fst cell)
(snd cell)))
c2)))
can
cells))
can))
can)))
canvas
outside-objs))))Provenance
- Generator
- generators/fa3550d200a0/generator.py
- Notes and decisions
- generators/fa3550d200a0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c5a3a7e69f0ae05f1408fde8a7ee0fed8a10e196726efdd1438ec70b805a6a73
- Rule hash
- af9e935761ad
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate fa3550d200a0 --count 1 --seed 20261108 --test 1