← 6eb3835a5555 · 6ecd8be24495 →

6ecd6f93877b

A 5..10 by 5..10 zero-background grid contains 2..5 scattered non-zero colors, each occurring 1..4 times. Count every occurrence, sort colors numerically, and emit a one-row strip containing each color repeated by its count; an all-zero input would map to [[0]].

countingcrop outputsorting by color

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).

Reference rule (Racket)

(rule!
  (let* ((colors (grid-colors g 0))
         (row-out (for*/list ([color (in-list colors)]
                              [_ (in-range (count-where (lambda (cell) (= (third cell) color)) (grid-cells g)))])
                    color)))
    (list (if (empty? row-out) (list 0) row-out))))

Provenance

Generator
generators/6ecd6f93877b/generator.py
Notes and decisions
generators/6ecd6f93877b/notes.md
Review label
reviewed_safe
Generator SHA-256
1e7aeefc5a4bc0e9178e0dcebea9d86e24f2dda7453060cbcc8effb08a8e99a0
Rule hash
66d1273fdbac
Sources
bank:868e1a8cbe17
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6ecd6f93877b --count 1 --seed 20261108 --test 1