← 498af9326ab9 · 49c16a3506ab →
49bfa2fd18b7
A black 9..16 by 10..16 grid contains three or four separated purple (6) 4-connected components with distinct areas, plus one gray (5) domino distractor. Rank the purple components by area, take the second-largest, crop it to its bounding box, and repaint its shape red (2) on black. The selected component's size, shape, position, edge contact, number of competing components, canvas size, and distractor orientation vary; every normal lesson has both a larger and a smaller purple component so second-largest never aliases largest or smallest.
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!
(let* ((comps (sort (filter (lambda (o) (= (obj-color o) 6)) (objects g 0))
(lambda (a b)
(if (= (obj-size a) (obj-size b))
(let ((ba (obj-bbox a)) (bb (obj-bbox b)))
(or (< (first ba) (first bb))
(and (= (first ba) (first bb)) (< (second ba) (second bb)))))
(> (obj-size a) (obj-size b))))))
(obj (second comps))
(cells (normalize-cells (obj-cells obj))))
(paint-cells (empty-grid (obj-h obj) (obj-w obj) 0) cells 2)))Provenance
- Generator
- generators/49bfa2fd18b7/generator.py
- Notes and decisions
- generators/49bfa2fd18b7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7c8982d53f552ab36f29d85493ddce25a8661ac6d8e69a3328716e4aae716ed1
- Rule hash
- 5ee6c4df3ad5
- Sources
- bank:d3d681cdb82a
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 49bfa2fd18b7 --count 1 --seed 20261108 --test 1