← dbee38495261 · dc0a7662670b →

dc050b56cac4

One colored full-row/full-column cross plus 1-3 gray markers; count every gray cell and move the cross center by (+N,-N), erasing the markers.

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* ((cross-row (find-first (lambda (r)
                                           (all? (lambda (c)
                                                   (let ((v (at g r c)))
                                                     (and (!= v 0) (!= v 5))))
                                                 (range 0 w)))
                                         (range 0 h)))
                  (cross-col (find-first (lambda (c)
                                           (all? (lambda (r)
                                                   (let ((v (at g r c)))
                                                     (and (!= v 0) (!= v 5))))
                                                 (range 0 h)))
                                         (range 0 w)))
                  (n (for/sum ((r (range 0 h)))
                       (for/sum ((c (range 0 w))) (if (= (at g r c) 5) 1 0))))
                  (color (at g cross-row cross-col))
                  (nr (+ cross-row n))
                  (nc (- cross-col n)))
             (cellmap g (r c v) (if (or (= r nr) (= c nc)) color 0))))))

Provenance

Generator
generators/dc050b56cac4/generator.py
Notes and decisions
generators/dc050b56cac4/notes.md
Review label
reviewed_safe
Generator SHA-256
5c2069293d9871570c6d9210941c26a1e3e3cfd4865ddf04b326cc9d1524a157
Rule hash
4fe6d23687d0
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate dc050b56cac4 --count 1 --seed 20261108 --test 1