← df17e660cb8e · df5e596e5e96 →

df3c6021b715

Exactly two distinct nonzero interior dots: one at row < floor(h/2) and one at row >= floor(h/2). The selected rule paints the top edge, the upper dot row, and upper side columns in the upper dot colour; it paints the lower dot row, bottom edge, and lower side columns in the lower dot colour.

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* ((mid (/ h 2))
                  (dots (filter (lambda (p) (!= (at g (fst p) (snd p)) 0))
                                (flatmap (lambda (r)
                                           (map (lambda (c) (cons r c)) (range 0 w)))
                                         (range 0 h))))
                  (d1 (pick-min dots fst))
                  (d2 (second (sort-by dots (lambda (p) (fst p)))))
                  (c1 (at g (fst d1) (snd d1)))
                  (c2 (at g (fst d2) (snd d2)))
                  (r1 (fst d1))
                  (r2 (fst d2)))
             (cellmap g
                      (r c v)
                      (if (< r mid)
                          (cond
                            ((= r r1) c1)
                            ((zero? r) c1)
                            ((or (zero? c) (= c (- w 1))) c1)
                            (else 0))
                          (cond
                            ((= r r2) c2)
                            ((= r (- h 1)) c2)
                            ((or (zero? c) (= c (- w 1))) c2)
                            (else 0))))))))

Provenance

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