← 4a1526f51fb4 · 4a3ababcaceb →

4a279b104523

Find the unique full horizontal color-8 axis row. For every nonzero, non-8 source cell on either side, preserve it and copy the same color to the equal-distance row on the opposite side in the same column.

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! (let ((dummy 0)) (define (paint grid cells color) (for/fold ((out grid)) ((p (in-list cells))) (if (in-bounds? (first p) (second p) (rows out) (cols out)) (set-cell out (first p) (second p) color) out))) (define (full-row-of? grid r color) (all? (lambda (c) (= (at grid r c) color)) (range (cols grid)))) (let ((axis (first (filter (lambda (r) (full-row-of? g r 8)) (range (rows g)))))) (for*/fold ((out (paint (empty-grid (rows g) (cols g) 0) (map (lambda (c) (list axis c)) (range (cols g))) 8))) ((r (in-range (rows g))) (c (in-range (cols g)))) (let ((v (at g r c)) (rr (- (* 2 axis) r))) (if (member? v (list 0 8)) out (let ((with-original (set-cell out r c v))) (if (in-bounds? rr c (rows g) (cols g)) (set-cell with-original rr c v) with-original))))))))

Provenance

Generator
generators/4a279b104523/generator.py
Notes and decisions
generators/4a279b104523/notes.md
Review label
reviewed_safe
Generator SHA-256
5d11dec78c4996ecc4b5184c34388755ae63f0e5e72d4df54abb013bd77e9505
Rule hash
586c575373f0
Sources
bank:5a410ab56119
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 4a279b104523 --count 1 --seed 20261108 --test 1