← 7b0c20fe6f33 · 7b3c2eaee231 →

7b0cb3b9a618

Layered crossing bands; output the uninterrupted band's colour.

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* ((clean-rows (filter (lambda (r)
                                        (let ((v (at g r 0)))
                                          (and
                                            (!= v 0)
                                            (all? (lambda (kc) (= (at g r kc) v))
                                                  (range 1 w)))))
                                      (range 0 h)))
                  (clean (and (> (length clean-rows) 0) (at g (first clean-rows) 0))))
             (if clean
                 (list (list clean))
                 (let* ((dirty-row (find-first (lambda (r)
                                                 (let ((v (at g r 0)))
                                                   (and
                                                     (!= v 0)
                                                     (> (for/sum ((kc (range 0 w)))
                                                          (if (= (at g r kc) v) 1 0))
                                                        (- w 2)))))
                                               (range 0 h)))
                        (dr dirty-row)
                        (major (at g dr 0))
                        (anom (find-first (lambda (v) (!= v major))
                                          (map (lambda (kc) (at g dr kc)) (range 0 w)))))
                   (list (list anom))))))))

Provenance

Generator
generators/7b0cb3b9a618/generator.py
Notes and decisions
generators/7b0cb3b9a618/notes.md
Review label
reviewed_safe
Generator SHA-256
c343aa572a9187222006cb9bcbbfce085e85bdbda2417a2d3365271348768c8c
Rule hash
20196c190154
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 7b0cb3b9a618 --count 1 --seed 20261108 --test 1