← 329f699c3e09 · 33275a4aae3e →

331074b4dcbc

Repeat the top-row nonzero prefix independently across every row of the cyan rectangle.

periodic tilingrectangle fillseed extraction

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).

Reference rule (Racket)

(rule! (let ((dummy 0)) (define (prefix-nonzero row) (let loop ((i 0) (acc (list))) (if (or (>= i (length row)) (= (list-ref row i) 0)) (reverse acc) (loop (+ i 1) (cons (list-ref row i) acc))))) (define (repeat-to-length pattern len) (if (empty? pattern) (make-list len 0) (for/list ((i (in-range len))) (list-ref pattern (modulo i (length pattern)))))) (let* ((seed (prefix-nonzero (first g))) (cells (filter (lambda (p) (and (>= (first p) 1) (= (at g (first p) (second p)) 8))) (grid-positions g))) (bb (bbox-of-cells cells)) (width (+ 1 (- (fourth bb) (second bb)))) (fill-row (repeat-to-length seed width))) (for*/fold ((out g)) ((r (in-range (first bb) (+ (third bb) 1))) (c (in-range (second bb) (+ (fourth bb) 1)))) (set-cell out r c (list-ref fill-row (- c (second bb))))))))

Provenance

Generator
generators/331074b4dcbc/generator.py
Notes and decisions
generators/331074b4dcbc/notes.md
Review label
reviewed_safe
Generator SHA-256
91b88af47aff629f3c53f1f23ce80aec88e94840d7e124fe52d4c16d9fce8bad
Rule hash
663523cb8af9
Sources
bank:02cfd661bb19
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 331074b4dcbc --count 1 --seed 20261108 --test 1