← a4863798ed70 · a4f0ea66fd65 →

a4a506dda35f

Sparse 0-background grids with three or four colors. Count every painted cell by color, sort by frequency descending and numeric color ascending on ties, then emit one row containing each color once per painted cell. Ordinary examples include an adjacent same-color pair, vary frequency assignments independently of shape and palette, and alternate between tied and distinct frequencies so component-count, profile-lookup, and first-seen tie-break shortcuts are explicitly refuted.

countingsortingvariable-size output

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))
         (entries (sort
                    (map (lambda (color)
                           (list color (count-where (lambda (cell) (= (third cell) color)) (grid-cells g))))
                         colors)
                    (lambda (a b)
                      (cond [(not (= (second a) (second b))) (> (second a) (second b))]
                            [else (< (first a) (first b))])))))
    (list (for*/list ([entry (in-list entries)]
                      [_ (in-range (second entry))])
            (first entry)))))

Provenance

Generator
generators/a4a506dda35f/generator.py
Notes and decisions
generators/a4a506dda35f/notes.md
Review label
reviewed_safe
Generator SHA-256
cef796910334f52262e46b1171e52ab6cbcef8e16ec870b1ef4b2dc0ef04584f
Rule hash
639443b5cb4a
Sources
bank:9a66c53abf7f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate a4a506dda35f --count 1 --seed 20261108 --test 1