← 302ddfbe2baa · 3065bdeaa7b0 →
3031e2ee53d1
A 4..8 by 10..16 zero-background input contains one monochrome path. The rows repeat with the smallest period p in {1,2,3}; after each p-row block the whole motif is translated left, right, or not at all by a constant offset. The output is a width-by-width square that continues the same periodic, translated sequence beyond the input height.
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))
(fnz (lambda (r) (find (lambda (c) (!= (at g r c) 0)) (range 0 w))))
(result (find (lambda (pair) pair)
(for/list ((p (range 1 h)))
(let* ((f0 (fnz 0))
(fp (fnz p)))
(and
(and f0 fp)
(let* ((s (- fp f0)))
(and
(for/and ((r (range 0 (- h p))))
(for/and ((c (range 0 w)))
(let* ((sc (+ c s)))
(if (and (>= sc 0) (< sc w))
(= (at g r c)
(at g (+ r p) sc))
(zero? (at g r c))))))
(list p s))))))))
(period (if result (first result) h))
(shift (if result (second result) 0)))
(build-grid w
w
(r c)
(let* ((src-c (- c (* shift (quotient r period)))))
(if (and (>= src-c 0) (< src-c w))
(at g (remainder r period) src-c)
0))))))Provenance
- Generator
- generators/3031e2ee53d1/generator.py
- Notes and decisions
- generators/3031e2ee53d1/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 204b0367fff79875dab758229d75d18820f274fbf20bf8cd79bc9d5329e1c4ed
- Rule hash
- e9b80003c95f
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 3031e2ee53d1 --count 1 --seed 20261108 --test 1