← 84730935f58f · 84def340ce03 →

84aeaf4792a8

Compare 2..6 isolated monochromatic components, ordered by bounding-box top row then left column. Ignore colors and compare occupied cells under translation and the four rotations, excluding reflection. The N-by-N matrix has 5 on the diagonal, 8 for matches, and 0 otherwise. Sample all 19 rotation classes of connected 3..5-cell shapes fitting 3x3, including chiral pairs, repeated colors, and every feasible class count.

parametric familyrelation matrixrotation invarianceshape normalization

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 (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 (e8-cell<? a b) (or (< (first a) (first b)) (and (= (first a) (first b)) (< (second a) (second b))))) (define (e8-norm cells) (sort (normalize-cells cells) e8-cell<?)) (define (e8-cells->grid cells) (let* ((norm (e8-norm cells)) (bb (bbox-of-cells norm))) (if (not bb) (list (list 0)) (paint-cells (empty-grid (+ 1 (third bb)) (+ 1 (fourth bb)) 0) norm 1)))) (define (e8-grid-shape grid) (e8-norm (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid)))) (define (e8-transform-cells cells name) (e8-grid-shape (apply-transform-name name (e8-cells->grid cells)))) (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 (e8b-shape-rot-match? obj-a obj-b) (let ((target (e8-norm (obj-cells obj-b)))) (any? (lambda (name) (equal? (e8-transform-cells (obj-cells obj-a) name) target)) (list 'id 'rot90 'rot180 'rot270)))) (let* ((objs (sort (objects g 0) (lambda (a b) (let ((ba (obj-bbox a)) (bb (obj-bbox b))) (e8b-list< (list (first ba) (second ba)) (list (first bb) (second bb))))))) (n (length objs))) (grid-from-fn n n (lambda (r c) (cond ((= r c) 5) ((e8b-shape-rot-match? (list-ref objs r) (list-ref objs c)) 8) (else 0)))))))

Provenance

Generator
generators/84aeaf4792a8/generator.py
Notes and decisions
generators/84aeaf4792a8/notes.md
Review label
reviewed_safe
Generator SHA-256
9e4da3766ae7f2cddf871ee9f2029c2b7d7655af119173f4be97ae78792e2ac6
Rule hash
f2869336c461
Sources
bank:9397d19eada0
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 84aeaf4792a8 --count 1 --seed 20261108 --test 1