← d2f386d0e071 · d306f84259e3 →
d2f8cb1c91b2
Infer a unique nonidentity D4 transform from two 3x3 panels, apply it to a query panel, then merge with a fourth panel using color 9 exactly for unequal nonzero overlaps.
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! (let ((dummy 0)) (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 4)) (name (infer-transform-name (first panels) (second panels))) (x (third panels)) (y (fourth panels)) (tx (apply-transform-name name x))) (grid-from-fn (rows tx) (cols tx) (lambda (r c) (let ((a (at tx r c)) (b (at y r c))) (cond ((and (= a 0) (= b 0)) 0) ((= a 0) b) ((= b 0) a) ((= a b) a) (else 9))))))))
Provenance
- Generator
- generators/d2f8cb1c91b2/generator.py
- Notes and decisions
- generators/d2f8cb1c91b2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b36665d15b5049bd27de380915fdadab1378e44b747c2a8e20c081e099809cd3
- Rule hash
- a401bcfe7b0a
- Sources
- bank:7d2e04a04712
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d2f8cb1c91b2 --count 1 --seed 20261108 --test 1