← df3c6021b715 · df74e338b4f5 →

df5e596e5e96

Split the 5-row input at blank separator columns into N=3..5 width-5 panels. Crop each panel to its nonzero bounding box and compare binary support, ignoring foreground color and placement. Output an N×N matrix: 8 on the diagonal, 1 for exact normalized support, 2 for a non-identity rotation, 3 for a reflection/other dihedral image, and 0 otherwise.

parametric familyexact matchreflection matchrelation matrixrotation match

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 (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (crop-nonzero grid) (let ((cells (nonzero-cells grid))) (if (empty? cells) (list (list 0)) (let* ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))))) (define (binary-grid grid) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1)))) (define (normalize-binary grid) (binary-grid (crop-nonzero grid))) (define (split-fixed-panels-row grid panel-h panel-w) (let loop ((c 0) (acc (list))) (if (> (+ c panel-w) (cols grid)) (reverse acc) (loop (+ c panel-w 1) (cons (subgrid grid 0 c (- panel-h 1) (+ c panel-w -1)) acc))))) (define (all-rot-supports grid) (remove-duplicates (map normalize-binary (let* ((r0 grid) (r1 (rotate-cw r0)) (r2 (rotate-cw r1)) (r3 (rotate-cw r2))) (list r0 r1 r2 r3))))) (define (all-dihedral-supports grid) (remove-duplicates (append (all-rot-supports grid) (all-rot-supports (flip-lr grid))))) (let* ((panels (map normalize-binary (split-fixed-panels-row g (rows g) 5))) (n (length panels))) (grid-from-fn n n (lambda (i j) (let* ((a (list-ref panels i)) (b (list-ref panels j)) (rotset (all-rot-supports a)) (dihedral (all-dihedral-supports a))) (cond ((= i j) 8) ((equal? b a) 1) ((member? b rotset) 2) ((member? b dihedral) 3) (else 0))))))))

Provenance

Generator
generators/df5e596e5e96/generator.py
Notes and decisions
generators/df5e596e5e96/notes.md
Review label
reviewed_safe
Generator SHA-256
7eaedfe24e1c2faba9192e342314ad541f643291b3f17397db4754c9effb2ae3
Rule hash
dd7b7aac9913
Sources
bank:9a1b04175c5a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate df5e596e5e96 --count 1 --seed 20261108 --test 1