← 9baf979683ef · 9bd5d9c04dd8 →

9bbc588810ae

Four 5x5 panels are separated by color-9 columns. Exactly one of the first three colored source shapes maps to the last-panel query under one of the seven distinct transforms implemented by the frozen authority; paint the query cells with that source color. A scheduled same-size, same-bounding-box decoy refutes the strongest canonical-fitting shortcut.

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 (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (f14-full-cols grid color) (filter (lambda (c) (all? (lambda (r) (= (at grid r c) color)) (range (rows grid)))) (range (cols grid)))) (define (f4-norm cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells))) (define (nb-sort-cells cells) (sort cells e8b-list<)) (define (nb-norm cells) (nb-sort-cells (f4-norm cells))) (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) (transpose 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))))))) (define (n9-first-nonzero grid) (first (filter (lambda (v) (not (= v 0))) (apply append grid)))) (define (n9-normal-shape grid) (nb-norm (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid)))) (let* ((parts (n9-split-by-separator-cols g 9)) (query (last parts)) (qcells (filter (lambda (p) (not (= (at query (first p) (second p)) 0))) (grid-positions query))) (qnorm (nb-norm qcells))) (let loop-panels ((panels (take parts (- (length parts) 1)))) (if (empty? panels) (empty-grid (rows query) (cols query) 0) (let* ((panel (first panels)) (cells (filter (lambda (p) (not (= (at panel (first p) (second p)) 0))) (grid-positions panel)))) (if (empty? cells) (loop-panels (rest panels)) (let* ((color (n9-first-nonzero panel)) (bb (bbox-of-cells cells)) (crop (subgrid panel (first bb) (second bb) (third bb) (fourth bb))) (hit (filter (lambda (k) (equal? (n9-normal-shape (n9-transform crop k)) qnorm)) (n9-transform-kinds)))) (if (empty? hit) (loop-panels (rest panels)) (paint-cells (empty-grid (rows query) (cols query) 0) qcells color))))))))))

Provenance

Generator
generators/9bbc588810ae/generator.py
Notes and decisions
generators/9bbc588810ae/notes.md
Review label
reviewed_safe
Generator SHA-256
66973c55226bac3e9020b15321e4d80a45249b5228fe507c8e9cd3d207b80d73
Rule hash
a63dd2ae1f7a
Sources
bank:b64eb6bd4039
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9bbc588810ae --count 1 --seed 20261108 --test 1