← 7fe59337a0b4 · 8029363f9cb7 →
80271cb9b303
A 0-background grid contains 2-4 non-empty rows that are prefixes of one horizontal tile period, aligned to column 0. For each non-empty row, find its rightmost non-zero cell R and the smallest period p consistent with columns 0..R, then continue that period through the right edge. Prefixes may end either on a period boundary or partway through a repeat, may begin with zero cells, and different rows carry different color patterns. Empty rows remain zero.
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)))
(grid-from-fn h
w
(lambda (r c)
(let ((right (find-first (lambda (cc)
(!= 0 (at g r (- (- w 1) cc))))
(range 0 w))))
(if (not right)
0
(let ((R (- (- w 1) right)))
(let ((period (find-first (lambda (p)
(for/and ((cc (range 0
(+ R
1))))
(= (at g r cc)
(at g
r
(mod cc
p)))))
(range 1 (+ R 2)))))
(if period (at g r (mod c period)) 0))))))))))Provenance
- Generator
- generators/80271cb9b303/generator.py
- Notes and decisions
- generators/80271cb9b303/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 174ca5baed3dbde7440f328eef878698ce4ca98b9424621bff29c5f6f77abe76
- Rule hash
- 4cb32d01d908
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 80271cb9b303 --count 1 --seed 20261108 --test 1