← 7a15f5e5ebd9 · 7a37505e7bd0 →
7a31a33585cc
Three equal square panels separated by full-height color-9 columns. Panel B is one uniquely identifiable non-identity geometric transform of panel A; apply that transform to the independently arranged panel C.
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-cols grid color) (filter (lambda (c) (all? (lambda (r) (= (at grid r c) color)) (range (rows grid)))) (range (cols grid)))) (define (n9-transform grid kind) (cond ((equal? kind 'id) grid) ((equal? kind 'rot90) (rotate-cw grid)) ((equal? kind 'rot180) (rotate-180 grid)) ((equal? kind 'rot270) (rotate-ccw grid)) ((equal? kind 'flip_h) (flip-lr grid)) ((equal? kind 'flip_v) (flip-ud grid)) ((equal? kind 'transpose) (transpose grid)) ((equal? kind 'anti) (grid-from-fn (cols grid) (rows grid) (lambda (r c) (at grid (- (rows grid) 1 c) (- (cols grid) 1 r))))) (else grid))) (define (n9-transform-kinds) (list 'id 'rot90 'rot180 'rot270 'flip_h 'flip_v 'transpose 'anti)) (define (n9-split-by-separator-cols grid sep) (let ((sep-cols (f14-full-cols grid sep))) (let loop ((cols-left sep-cols) (start 0) (parts (list))) (if (empty? cols-left) (reverse (cons (subgrid grid 0 start (- (rows grid) 1) (- (cols grid) 1)) parts)) (let ((c (first cols-left))) (loop (rest cols-left) (+ c 1) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) parts))))))) (let* ((parts (n9-split-by-separator-cols g 9)) (a (first parts)) (b (second parts)) (c (third parts)) (kind (first (filter (lambda (k) (equal? (n9-transform a k) b)) (n9-transform-kinds))))) (n9-transform c kind))))
Provenance
- Generator
- generators/7a31a33585cc/generator.py
- Notes and decisions
- generators/7a31a33585cc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4bed39d95461658b2163762db217e0961c7fe86acabae2242c13cc2ab565e465
- Rule hash
- dc0383bfad5f
- Sources
- bank:b64eb6bd4039
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 7a31a33585cc --count 1 --seed 20261108 --test 1