← 5c0bcc9d1b8b · 5c577e82a07f →
5c126cb64bf7
Three 5-wide panels separated by zero columns; crop and binarize each whole panel, then compare under the four rotations. Return a symmetric 3x3 matrix with diagonal 8, equivalent off-diagonal pairs 2, and other pairs 0. Inputs mix connected shapes and separated satellites, translated and recolored; chiral equal-count negatives separate rotation from reflection and counting.
parametric familypanel parsingrelation matrix constructionrotation equivalence
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))))) (let* ((panels (split-fixed-panels-row g (rows g) 5)) (norms (map normalize-binary panels)) (n (length panels))) (grid-from-fn n n (lambda (i j) (if (= i j) 8 (let ((target (list-ref norms j)) (cur (list-ref norms i))) (if (any? (lambda (x) (equal? (normalize-binary x) target)) (list cur (rotate-cw cur) (rotate-180 cur) (rotate-ccw cur))) 2 0))))))))
Provenance
- Generator
- generators/5c126cb64bf7/generator.py
- Notes and decisions
- generators/5c126cb64bf7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 13e593cd89583bfac5e5d98625ed4017f292c30500a062652dab5250b703e32c
- Rule hash
- 338c27e34ee3
- Sources
- bank:0eb6e7ee3b18
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 5c126cb64bf7 --count 1 --seed 20261108 --test 1