← 0c4c1974cbf2 · 0d0f5035a157 →
0c5e8548d3be
Four single-color shapes occupy fixed 5-column panels in a 23-column grid. Return a 4x4 matrix with cyan(8) exactly for pairs whose cropped binary shapes are equivalent under rotation; translation and color are ignored, but reflection alone is not equivalence.
panel parsingrelation matrixrotation-invariant matching
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 (f14b-binary-crop grid) (crop-nonzero (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1))))) (define (f14b-rotations grid) (let loop ((cur (f14b-binary-crop grid)) (n 0) (acc (list))) (if (= n 4) (remove-duplicates (reverse acc)) (loop (rotate-cw cur) (+ n 1) (cons cur acc))))) (define (t10b-same-rot-shape? a b) (member? (f14b-binary-crop a) (f14b-rotations b))) (define (t13c-panel grid idx top-rows) (subgrid grid 0 (* idx 6) (- top-rows 1) (+ (* idx 6) 4))) (let* ((panels (map (lambda (i) (crop-nonzero (t13c-panel g i (rows g)))) (range 4))) (n 4)) (grid-from-fn n n (lambda (r c) (if (t10b-same-rot-shape? (list-ref panels r) (list-ref panels c)) 8 0))))))
Provenance
- Generator
- generators/0c5e8548d3be/generator.py
- Notes and decisions
- generators/0c5e8548d3be/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4824a4c03d62f79d3f7279e2df43f393b23e092e5c46e390006686b321ea91e9
- Rule hash
- c0e3bdee7bdc
- Sources
- bank:0e3c36a9dbcc
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 0c5e8548d3be --count 1 --seed 20261108 --test 1