← 860cbb625ca0 · 864b0302e2e6 →
863627ccef26
Infer the unique non-identity D4 transform mapping panel A to panel B, apply it to query panel Q, and overlay Q with that transformed copy; nonzero collisions become color 9.
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 3)) (q (third panels)) (name (infer-transform-name (first panels) (second panels))) (tq (apply-transform-name name q))) (grid-from-fn (rows tq) (cols tq) (lambda (r c) (let ((a (at q r c)) (b (at tq r c))) (cond ((and (not (= a 0)) (not (= b 0))) 9) ((not (= a 0)) a) (else b))))))))
Provenance
- Generator
- generators/863627ccef26/generator.py
- Notes and decisions
- generators/863627ccef26/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1f1ee7b1e9fcd30a68dc7e7cc9358e263b83fe8c3c1e0def500a0e8fa4cdb9f3
- Rule hash
- 92960ea4379d
- Sources
- bank:5a410ab56119
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 863627ccef26 --count 1 --seed 20261108 --test 1