← 1f9fef86a482 · 2006f915df8b →
20014c9d3729
On a zero-background grid, group 4-connected objects by color and keep only the largest object of each color in its original position. Object sizes are distinct within each color. Normal generation includes counterexamples where an absolute size>=4 threshold keeps a size-4 loser, so the lesson identifies relative per-color selection.
parametric familyobject_reasoningselection
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!
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([color (in-list (grid-colors g 0))])
(let* ((objs (sort (filter (lambda (obj) (= (obj-color obj) color)) (objects g 0))
(lambda (a b)
(if (= (obj-size a) (obj-size b))
(if (= (obj-r1 a) (obj-r1 b))
(< (obj-c1 a) (obj-c1 b))
(< (obj-r1 a) (obj-r1 b)))
(> (obj-size a) (obj-size b))))))
(best (first objs)))
(paint-cells out (obj-cells best) color))))Provenance
- Generator
- generators/20014c9d3729/generator.py
- Notes and decisions
- generators/20014c9d3729/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3ddb8251733e4dcb9d0722c636154b6ed01a8eed95df9403852c798e2e810c1f
- Rule hash
- 0149d1fbd1ae
- Sources
- bank:ca0e5b777526
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 20014c9d3729 --count 1 --seed 20261108 --test 1