← fea6a4ce763f · ff5ef89054d2 →
ff5eb7af92e7
Each nonempty row has a unique most-frequent nonzero color; the unchanged Racket rule keeps only cells of that row-local mode. Ordinary inputs include a 2/1/1 three-color plurality row, varied mode counts, repeated color roles, and scheduled canonical-size/eight-foreground-color anchors.
filteringfrequencyrows
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! (let ((dummy 0)) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g)))) (let* ((colors (remove-duplicates (filter (lambda (v) (not (= v 0))) (row g r))))) (if (empty? colors) out (let* ((entries (map (lambda (color) (list color (count-where (lambda (v) (= v color)) (row g r)) (first (filter (lambda (c) (= (at g r c) color)) (range 0 (cols g)))))) colors)) (best (first (sort entries (lambda (a b) (if (= (second a) (second b)) (< (third a) (third b)) (> (second a) (second b))))))) (color (first best))) (for/fold ((acc out)) ((c (in-range (cols g)))) (if (= (at g r c) color) (set-cell acc r c color) acc))))))))
Provenance
- Generator
- generators/ff5eb7af92e7/generator.py
- Notes and decisions
- generators/ff5eb7af92e7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cf3388ee077f512b258be1855ac812d0009a297150af8bd807c9f582ae929ad3
- Rule hash
- f3fbafdf1862
- Sources
- bank:f49e478ddaeb
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ff5eb7af92e7 --count 1 --seed 20261108 --test 1