← 4dd02f124024 · 4dd7720cba5f →
4dd0b3ed33ee
A 0-background grid has 1..3 blue count markers anywhere in row 0. Rows below contain 2..5 isolated, distinctly colored components. Count the enclosed 0-regions in each component, scan components in row-major order, and select the first component whose hole count equals the blue marker count. Crop to that component's bounding box, erase every non-boundary component cell, and recolor the retained boundary cyan (8). Some lessons contain two matching components with different boundary masks, so the canonical first-match tie rule is observable.
parametric familycomponent selectionhole countingnormalized outline
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 ((dummy 0)) (define (norm-boundary obj) (let* ((bb (bbox-of-cells (obj-cells obj))) (h (+ 1 (- (third bb) (first bb)))) (w (+ 1 (- (fourth bb) (second bb))))) (paint-cells (empty-grid h w 0) (sort (map (lambda (p) (list (- (first p) (first bb)) (- (second p) (second bb)))) (obj-boundary-cells obj)) cell<) 8))) (let* ((k (count-where (lambda (v) (= v 1)) (row g 0))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (best (find-first (lambda (obj) (= (topo-count-holes body obj 0) k)) (objects body 0)))) (norm-boundary best))))
Provenance
- Generator
- generators/4dd0b3ed33ee/generator.py
- Notes and decisions
- generators/4dd0b3ed33ee/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 0d03d3e5341ed13701225d4e2d670c7b8cf121efe67e3b076edf4208072c102d
- Rule hash
- a404f37f28fc
- Sources
- bank:fe45a3aa7042
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 4dd0b3ed33ee --count 1 --seed 20261108 --test 1