← 9000d0ea6484 · 901c6034f67e →

90082143f2ec

Remove noise from colored bands: compare column-mode and row-mode coherence, then fill every column or row with its mode on the more coherent axis.

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* ((col-modes (for/list ((c (range 0 w)))
                               (mode-list (for/list ((r (range 0 h))) (at g r c)))))
                  (row-modes (for/list ((r (range 0 h)))
                               (mode-list (for/list ((c (range 0 w))) (at g r c)))))
                  (col-coherence (for/sum ((c (range 0 w)))
                                   (let ((m (list-ref col-modes c)))
                                     (for/sum ((r (range 0 h)))
                                       (if (= (at g r c) m) 1 0)))))
                  (row-coherence (for/sum ((r (range 0 h)))
                                   (let ((m (list-ref row-modes r)))
                                     (for/sum ((c (range 0 w)))
                                       (if (= (at g r c) m) 1 0))))))
             (if (> col-coherence row-coherence)
                 (cellmap g (r c v) (list-ref col-modes c))
                 (cellmap g (r c v) (list-ref row-modes r)))))))

Provenance

Generator
generators/90082143f2ec/generator.py
Notes and decisions
generators/90082143f2ec/notes.md
Review label
reviewed_safe
Generator SHA-256
161d76e8534f32a379e801cd6cfd42462dcd40354f4a9dab2d3b04884993ef91
Rule hash
a86d1f36d1d2
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 90082143f2ec --count 1 --seed 20261108 --test 1