← b87dcd3011b1 · b8aea529acfd →

b88894a36787

A contiguous row-0 header contains 2..4 distinct colors. Each header color has either one matching dot on the left/right edge or, for at most one color, no side dot. The rule extends each header vertically to its matching dot and then horizontally to that edge; a header without a dot extends vertically to the bottom row.

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))
                (header (filter (lambda (c2) (!= (at g 0 c2) 0)) (range 0 w)))
                (header-colors (map (lambda (c2) (at g 0 c2)) header))
                (dots (filter (lambda (x) x)
                              (for*/list ((r (range 1 h)) (c2 (range 0 w)))
                                (and (!= (at g r c2) 0) (list r c2 (at g r c2))))))
                (entries (for/list ((i (range 0 (length header))))
                           (let* ((hc (list-ref header i))
                                  (hcol (list-ref header-colors i))
                                  (dot (find (lambda (d) (= (third d) hcol)) dots)))
                             (list hc
                                   hcol
                                   (if dot (first dot) (- h 1))
                                   (and dot (second dot)))))))
           (cellmap g
                    (r c v)
                    (let* ((match (find (lambda (e)
                                          (let* ((ecol (first e))
                                                 (ecolor (second e))
                                                 (trow (third e))
                                                 (tcol (fourth e)))
                                            (or
                                              (and (= c ecol) (<= r trow))
                                              (and
                                                tcol
                                                (= r trow)
                                                (if (< tcol ecol)
                                                    (and (>= c tcol) (<= c ecol))
                                                    (and (>= c ecol) (<= c tcol)))))))
                                        entries)))
                      (if match (second match) 0))))))

Provenance

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