← 64a8d13b4024 · 65084a735199 →

64bd7bc767bb

Count colors 1..4 independently, then draw four same-color, bottom-aligned bars in output columns 0..3; colors 5..9 are ignored.

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* ((counts (make-hash))
                  (dummy (for* ((r (range 0 h)) (c (range 0 w)))
                               (let ((v (at g r c)))
                                 (when
                                   (> v 0)
                                   (hash-set! counts v (+ 1 (hash-ref counts v 0))))))))
             (cellmap g
                      (r c v)
                      (let ((color (+ c 1))
                            (cnt (hash-ref counts (+ c 1) 0)))
                        (if (and (<= color 4) (>= r (- h cnt))) color 0)))))))

Provenance

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