← 24d677c76640 · 250925d67253 →

250671db7aa1

Reflect every nonzero non-5 source cell across the full painted 5-axis.

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 (f14-full-row grid color) (let ((hits (filter (lambda (r) (all? (lambda (v) (= v color)) (row grid r))) (range (rows grid))))) (if (empty? hits) #f (first hits)))) (define (f14-full-cols grid color) (filter (lambda (c) (all? (lambda (r) (= (at grid r c) color)) (range (rows grid)))) (range (cols grid)))) (define (f14-full-col grid color) (let ((hits (f14-full-cols grid color))) (if (empty? hits) #f (first hits)))) (let ((axis-row (f14-full-row g 5)) (axis-col (f14-full-col g 5))) (if axis-row (for*/fold ((out g)) ((r (in-range (rows g))) (c (in-range (cols g)))) (let ((v (at g r c)) (rr (- (* 2 axis-row) r))) (if (and (not (member? v (list 0 5))) (in-bounds? rr c (rows g) (cols g))) (set-cell out rr c v) out))) (for*/fold ((out g)) ((r (in-range (rows g))) (c (in-range (cols g)))) (let ((v (at g r c)) (cc (- (* 2 axis-col) c))) (if (and (not (member? v (list 0 5))) (in-bounds? r cc (rows g) (cols g))) (set-cell out r cc v) out)))))))

Provenance

Generator
generators/250671db7aa1/generator.py
Notes and decisions
generators/250671db7aa1/notes.md
Review label
reviewed_safe
Generator SHA-256
b35b37b2cd0d12dc204c06dc40b490f1b1f329af2700b7141b488021f48a4cae
Rule hash
27bdc557ee50
Sources
bank:b64eb6bd4039
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 250671db7aa1 --count 1 --seed 20261108 --test 1