← c2b9484357c1 · c2f4b540f2fb →

c2cd365ed4fa

Count each active color's monochromatic 8-connected components on a 7-background grid. Emit a bottom-aligned histogram whose fixed columns are colors 5, 2, 8, 9, and 6.

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)))
           (begin
             (define bg 7)
             (define fg-colors (filter (lambda (c) (!= c bg)) (grid-colors g)))
             (define (color-count c)
               (length (objects-8 (cellmap g (r cc v) (if (= v c) c bg)) bg)))
             (define color-counts (map (lambda (c) (list c (color-count c))) fg-colors))
             (define max-h (max-of second color-counts))
             (define base (empty-grid max-h 5 bg))
             (reduce (lambda (gg cc)
                       (let* ((c (first cc))
                              (n (second cc))
                              (col (cond
                                     ((= c 5) 0)
                                     ((= c 2) 1)
                                     ((= c 8) 2)
                                     ((= c 9) 3)
                                     ((= c 6) 4)
                                     (else 0))))
                         (reduce (lambda (gg2 i) (set-cell gg2 (- (- max-h 1) i) col c))
                                 gg
                                 (range 0 n))))
                     base
                     color-counts)))))

Provenance

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