← e8fb1b5bedfe · e9238d278276 →
e91a8e375e64
Five square panels A|B|C|D|Q are separated by color-5 columns. B is a uniquely identifiable dihedral transform of A; D is a consistent recolor of C; apply both operations to Q. Every query uses every map key and is asymmetric, so neither operation can be skipped.
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 (fifth xs) (list-ref xs 4)) (define (split-panels-row grid count) (let* ((panel-w (quotient (- (cols grid) (- count 1)) count))) (for/list ((i (in-range count))) (let ((left (* i (+ panel-w 1)))) (subgrid grid 0 left (- (rows grid) 1) (+ left panel-w -1)))))) (define transform-names (list 'id 'rot90 'rot180 'rot270 'flip-h 'flip-v 'transpose 'anti-transpose)) (define (anti-transpose-grid grid) (rotate-180 (transpose grid))) (define (apply-transform-name name grid) (cond ((equal? name 'id) grid) ((equal? name 'rot90) (rotate-cw grid)) ((equal? name 'rot180) (rotate-180 grid)) ((equal? name 'rot270) (rotate-ccw grid)) ((equal? name 'flip-h) (flip-lr grid)) ((equal? name 'flip-v) (flip-ud grid)) ((equal? name 'transpose) (transpose grid)) (else (anti-transpose-grid grid)))) (define (infer-transform-name a b) (first (filter (lambda (name) (equal? (apply-transform-name name a) b)) transform-names))) (let* ((panels (split-panels-row g 5)) (a (first panels)) (b (second panels)) (c (third panels)) (d (fourth panels)) (q (fifth panels)) (name (infer-transform-name a b)) (mapping (filter values (for*/list ((r (in-range (rows c))) (col (in-range (cols c)))) (let ((x (at c r col)) (y (at d r col))) (if (and (not (= x 0)) (not (= y 0))) (list x y) #f))))) (tq (apply-transform-name name q))) (grid-from-fn (rows tq) (cols tq) (lambda (r c) (let* ((v (at tq r c)) (hit (filter (lambda (p) (= (first p) v)) mapping))) (if (and (not (= v 0)) (not (empty? hit))) (second (first hit)) v)))))))
Provenance
- Generator
- generators/e91a8e375e64/generator.py
- Notes and decisions
- generators/e91a8e375e64/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1823f963347c0f985a55c0422722c6b893d110e14c391615fa5e49e12590c355
- Rule hash
- af51be6e4b66
- Sources
- bank:7507d112faf2
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate e91a8e375e64 --count 1 --seed 20261108 --test 1