← 1a259ef9a7e7 · 1a4459f1a38f →
1a2afa3c0d4b
Infer the exact-color dihedral transform mapping square panel A to B, apply it to C, and recolor its nonzero cells to the first nonzero header color. Body separator columns have color 8; header position varies.
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 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 (recolor-grid grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (define (split-full-sep-cols grid sep) (let* ((seps (filter (lambda (c) (all? (lambda (r) (= (at grid r c) sep)) (range (rows grid)))) (range (cols grid))))) (let loop ((cuts (append seps (list (cols grid)))) (start 0) (acc (list))) (if (empty? cuts) (reverse acc) (let ((c (first cuts))) (loop (rest cuts) (+ c 1) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) acc))))))) (define (transform-name-exact a b) (first (filter (lambda (name) (equal? (apply-transform-name name a) b)) transform-names))) (let* ((target (first (filter (lambda (v) (not (= v 0))) (first g)))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (panels (split-full-sep-cols body 8)) (name (transform-name-exact (first panels) (second panels)))) (recolor-grid (apply-transform-name name (third panels)) target))))
Provenance
- Generator
- generators/1a2afa3c0d4b/generator.py
- Notes and decisions
- generators/1a2afa3c0d4b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 554840ba44d1014d78f49f6e82ca02d80347dd538144c8b919da127fde35ea42
- Rule hash
- 04089d4dac06
- Sources
- bank:56b8d7075625
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1a2afa3c0d4b --count 1 --seed 20261108 --test 1