← 03909f3e98e7 · 040bfb038c65 →
03e706065642
Three horizontal hollow color-1 frames contain monochrome motifs. Classify each binary-cropped motif as asymmetric, left/right-only, up/down-only, or symmetric on both axes; output their 3x3 class-equality matrix using 2 for equal and 0 for unequal.
comparison matrixshape analysissymmetry classification
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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (rect-frame? obj)
(and (= (obj-color obj) 1)
(>= (obj-h obj) 3)
(>= (obj-w obj) 3)
(= (obj-size obj) (- (* (obj-h obj) (obj-w obj))
(* (- (obj-h obj) 2) (- (obj-w obj) 2))))
(all? (lambda (p)
(or (= (first p) (obj-r1 obj))
(= (first p) (obj-r2 obj))
(= (second p) (obj-c1 obj))
(= (second p) (obj-c2 obj))))
(obj-cells obj))))
(define (binary-crop grid)
(let* ((cells (filter-cells grid (lambda (r c v) (not (= v 0)))))
(bb (bbox-of-cells cells))
(r0 (first bb)) (c0 (second bb))
(r1 (third bb)) (c1 (fourth bb)))
(grid-from-fn (+ 1 (- r1 r0)) (+ 1 (- c1 c0))
(lambda (r c)
(if (member? (list (+ r0 r) (+ c0 c)) cells) 1 0)))))
(define (symmetry-class grid)
(let ((h? (equal? grid (flip-lr grid)))
(v? (equal? grid (flip-ud grid))))
(cond [(and h? v?) 3]
[(not (eq? h? #f)) 1]
[(not (eq? v? #f)) 2]
[else 0])))
(define frames
(sort (filter rect-frame? (objects g 0))
(lambda (a b)
(if (= (obj-c1 a) (obj-c1 b))
(< (obj-r1 a) (obj-r1 b))
(< (obj-c1 a) (obj-c1 b))))))
(define classes
(map (lambda (frame)
(symmetry-class
(binary-crop
(subgrid g (+ (obj-r1 frame) 1) (+ (obj-c1 frame) 1)
(- (obj-r2 frame) 1) (- (obj-c2 frame) 1)))))
frames))
(define n (length classes))
(grid-from-fn n n
(lambda (r c) (if (= (list-ref classes r) (list-ref classes c)) 2 0)))))Provenance
- Generator
- generators/03e706065642/generator.py
- Notes and decisions
- generators/03e706065642/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7f9c01a709cc923a4c9cd2c17a25065895d5dc1773c722e2f411bef306c8719c
- Rule hash
- ae585f1eb109
- Sources
- bank:edd0efb19ea0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 03e706065642 --count 1 --seed 20261108 --test 1