← ecd1f88fc6d3 · ed55b2928ac3 →

ecd92348e78a

0-bg grid (h in [6, 19], w in [6, 20]) with 2-5 non-bg colors. Each color owns a contiguous ROW BAND whose height is that color's bar height; within its band the color fills one contiguous run per row. Blocks may STACK: a later block's rectangle can carve an earlier block from an edge (never splitting a row into two runs), but every color keeps at least one cell in its band's top and bottom rows, so the bbox height of every color is exactly its band height. Band heights are DISTINCT across colors. Rule (BAR CHART OF BBOX HEIGHTS, SORTED DESC): for each non-bg color compute bbox-height = max_row - min_row + 1 over all its cells; sort colors by height DESC; output a (max_height) x N chart where column c is a vertical bar of height_c cells of color_c at the top, 0 below.

parametric family

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (let* ((all-colors (filter (lambda (c) (!= c 0)) (grid-colors g)))
                  (color-heights (for/list ((color all-colors))
                                   (let* ((cells (find-color g color))
                                          (rs (map first cells))
                                          (height (+ 1 (- (max-list rs) (min-list rs)))))
                                     (list height color))))
                  (sorted (sort color-heights (lambda (a b) (> (first a) (first b)))))
                  (max-h (first (first sorted)))
                  (num-colors (length sorted)))
             (build-grid max-h
                         num-colors
                         (r c)
                         (let ((entry (list-ref sorted c)))
                           (if (< r (first entry)) (second entry) 0)))))))

Provenance

Generator
generators/ecd92348e78a/generator.py
Notes and decisions
generators/ecd92348e78a/notes.md
Review label
reviewed_safe
Generator SHA-256
7457a230b376ba4c2ba89d83e7378b40745f52dd4ca3dcfd9ff01afd8a6a9fd1
Rule hash
f25306709cb3
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ecd92348e78a --count 1 --seed 20261108 --test 1