← 528bbb532b67 · 529bd4803bcc →
5295bc5ff1cb
Infer the smallest 2-D period of a top-left pattern, shift it one column left, and tile it over the cover region.
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* ((cover (at g (- h 1) (- w 1)))
(top-h (let loop
((r 0))
(if (or (>= r h) (= (at g r 0) cover)) r (loop (+ r 1)))))
(prefix (let loop
((c 0) (acc (list)))
(if (or (>= c w) (= (at g 0 c) cover))
acc
(loop (+ c 1) (append acc (list (at g 0 c)))))))
(n (length prefix))
(col-period (find-first (lambda (p)
(for/and ((i (range 0 n)))
(= (nth prefix i)
(nth prefix (modulo i p)))))
(range 1 (+ n 1))))
(row-period (find-first (lambda (p)
(for/and ((r (range 0 top-h)))
(for/and ((c (range 0 col-period)))
(= (at g r c)
(at g (modulo r p) c)))))
(range 1 (+ top-h 1)))))
(cellmap g
(r c v)
(at g (modulo r row-period) (modulo (+ c 1) col-period)))))))Provenance
- Generator
- generators/5295bc5ff1cb/generator.py
- Notes and decisions
- generators/5295bc5ff1cb/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 625977bee7e1093d9279914f378c4e84a02548e14e14727d318352dffd4e96a3
- Rule hash
- e3633abbbdea
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 5295bc5ff1cb --count 1 --seed 20261108 --test 1