← bc932ac8117a · bcac0c8a0478 →

bca4f37ec5e9

Find the first and last nonzero rows, treat that contiguous row block as one vertical period, and tile the period over the full grid with the phase anchored at the original first nonzero 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)))
           (let* ((hh (rows g))
                  (ww (cols g))
                  (first-row (let loop
                                  ((r 0))
                                  (if (or
                                        (>= r hh)
                                        (for/or ((c (range 0 ww))) (!= (at g r c) 0)))
                                      r
                                      (loop (+ r 1)))))
                  (last-row (let loop
                                 ((r (- hh 1)))
                                 (if (or
                                       (< r 0)
                                       (for/or ((c (range 0 ww))) (!= (at g r c) 0)))
                                     r
                                     (loop (- r 1)))))
                  (period (+ 1 (- last-row first-row))))
             (build-grid hh
                         ww
                         (r c)
                         (at g
                             (+ first-row
                                (remainder (+ (remainder (- r first-row) period) period)
                                           period))
                             c))))))

Provenance

Generator
generators/bca4f37ec5e9/generator.py
Notes and decisions
generators/bca4f37ec5e9/notes.md
Review label
reviewed_safe
Generator SHA-256
80add324b59500cbb90e762c2cfd6b9ad26d54325a4982f2d07684f5ef555c21
Rule hash
868f6b6ec7f1
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate bca4f37ec5e9 --count 1 --seed 20261108 --test 1