← a2e752ad6948 · a2e8d5ad83e5 →
a2e841db66ad
Count all blue cells in the top row. Select the unique body component whose tight bounding-box height equals that count, crop it, and recolor its occupied cells cyan (8). Header placement varies so count, not run length or left packing, is required.
croppingheader decodingrow-count selection
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 (top-left< a b) (if (= (obj-r1 a) (obj-r1 b)) (< (obj-c1 a) (obj-c1 b)) (< (obj-r1 a) (obj-r1 b)))) (define (row-profile obj) (for/list ((r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1)))) (count-where (lambda (p) (= (first p) r)) (obj-cells obj)))) (define (crop-component obj (color 8)) (let ((cells (map (lambda (p) (list (- (first p) (obj-r1 obj)) (- (second p) (obj-c1 obj)))) (obj-cells obj)))) (paint-cells (empty-grid (obj-h obj) (obj-w obj) 0) cells color))) (define k (count-where (lambda (c) (= (at g 0 c) 1)) (range 0 (cols g)))) (define body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (define target (first (filter (lambda (obj) (= (length (row-profile obj)) k)) (sort (objects body 0) top-left<)))) (crop-component target 8)))
Provenance
- Generator
- generators/a2e841db66ad/generator.py
- Notes and decisions
- generators/a2e841db66ad/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 12177b6015ccea229498e58e966b638b0a2cb5eda7ba21c9fb3741de9d99d2c5
- Rule hash
- b5be85c39dab
- Sources
- bank:fe9bb13a9b18
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a2e841db66ad --count 1 --seed 20261108 --test 1