← c181f41a09f0 · c1b540a1d7b0 →

c1ae510562f9

Count wholly empty rows inside a gray U-shaped container; paint a 3x3 clockwise cyan spiral.

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* ((fives (find-color g 5))
                  (min-r (min-of fst fives))
                  (max-r (max-of fst fives))
                  (min-c (min-of snd fives))
                  (max-c (max-of snd fives))
                  (spiral (list (list 0 0)
                                (list 0 1)
                                (list 0 2)
                                (list 1 2)
                                (list 2 2)
                                (list 2 1)
                                (list 2 0)
                                (list 1 0)
                                (list 1 1)))
                  (empty (count-if (lambda (r)
                                     (for/and ((c (range (+ min-c 1) max-c)))
                                              (zero? (at g r c))))
                                   (range min-r max-r))))
             (build-grid 3
                         3
                         (r c)
                         (let ((idx (find-first (lambda (i)
                                                  (and
                                                    (= r (fst (nth spiral i)))
                                                    (= c (snd (nth spiral i)))))
                                                (range 0 9))))
                           (if (and idx (< idx empty)) 8 0)))))))

Provenance

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