← 27f5eba1051c · 28268c57c367 →

28119d6d0e10

Read the contiguous nonzero legend in row 0. Find the same number of isolated monochrome body components, sort them by cell count ascending, and recolor rank i with legend[i] while preserving the legend row.

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 (paint grid cells color) (for/fold ((out grid)) ((p (in-list cells))) (if (in-bounds? (first p) (second p) (rows out) (cols out)) (set-cell out (first p) (second p) color) out))) (let* ((palette (filter (lambda (v) (not (= v 0))) (first g))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (objs (sort (objects body 0) (lambda (a b) (< (obj-size a) (obj-size b)))))) (let ((base (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((c (in-range (cols g)))) (set-cell out 0 c (at g 0 c))))) (for/fold ((out base)) ((obj (in-list objs)) (i (in-naturals))) (paint out (map (lambda (p) (list (+ 1 (first p)) (second p))) (obj-cells obj)) (list-ref palette i)))))))

Provenance

Generator
generators/28119d6d0e10/generator.py
Notes and decisions
generators/28119d6d0e10/notes.md
Review label
reviewed_safe
Generator SHA-256
a977d76abd9203ccb3626611300854f86c1ec63b64428db05e1a62609db06d6f
Rule hash
d1af322b3da3
Sources
bank:56b8d7075625
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 28119d6d0e10 --count 1 --seed 20261108 --test 1