← 40b155c46f6e · 40e85135fbf8 →
40dea3d45f2a
D4-equivalence matrix of four binary panel shapes, with equal-area hard negatives and reflected positives.
dihedral symmetryrelation matrixshape 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 (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 (f14b-dihedral grid) (remove-duplicates (append (f14b-rotations grid) (f14b-rotations (flip-lr (f14b-binary-crop grid)))))) (define (t12b-crop-panel grid top left h w) (subgrid grid top left (- (+ top h) 1) (- (+ left w) 1))) (let* ((positions (list (list 0 0) (list 0 5) (list 5 0) (list 5 5))) (objs (map (lambda (p) (crop-nonzero (t12b-crop-panel g (first p) (second p) 4 4))) positions))) (grid-from-fn 4 4 (lambda (r c) (if (member? (f14b-binary-crop (list-ref objs c)) (f14b-dihedral (list-ref objs r))) 8 0))))))
Provenance
- Generator
- generators/40dea3d45f2a/generator.py
- Notes and decisions
- generators/40dea3d45f2a/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 9649550c6f0ad8b424d534135c625ae9469c86ad2f7c9b9ac24f28c6a7fdb1d1
- Rule hash
- d5ddd0abae4d
- Sources
- bank:580a8993495c
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 40dea3d45f2a --count 1 --seed 20261108 --test 1