← e42b0a4cc753 · e438ce3e02ce →
e4351af561ac
Use the single blue (1) component as a shape template. Among green (3) components, keep exactly those matching the template under translation and any of four rotations, recoloring them cyan (8); drop the template, green nonmatches, and matching components in other colors. Generated lessons include rotated positives, equal-area/reflected negatives, and color-role distractors while retaining frequent canonical-profile inputs.
object filteringrotation invariancetemplate 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 (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (t10-norm-cells cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (list (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) (+ 1 (- r1 r0)) (+ 1 (- c1 c0)) r0 c0))) (define (t10-rot-offset dr dc k) (if (= k 0) (list dr dc) (t10-rot-offset dc (- dr) (- k 1)))) (define (t3b-rotate-offsets offs k) (let* ((raw (map (lambda (p) (let ((rot (t10-rot-offset (first p) (second p) k))) (list (first rot) (second rot)))) offs)) (minr (apply min (map first raw))) (minc (apply min (map second raw)))) (sort (map (lambda (p) (list (- (first p) minr) (- (second p) minc))) raw) e8b-list<))) (let* ((template (first (filter (lambda (obj) (= (obj-color obj) 1)) (objects g 0)))) (target-shapes (map (lambda (offs) (sort offs e8b-list<)) (map (lambda (k) (t3b-rotate-offsets (first (t10-norm-cells (obj-cells template))) k)) (range 4))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (filter (lambda (obj) (= (obj-color obj) 3)) (objects g 0))))) (if (member? (sort (first (t10-norm-cells (obj-cells obj))) e8b-list<) target-shapes) (paint-cells out (obj-cells obj) 8) out)))))
Provenance
- Generator
- generators/e4351af561ac/generator.py
- Notes and decisions
- generators/e4351af561ac/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f1999eccef30a67200ff4f68537b52912d4ba68a63cb1c87c895303e080ef38f
- Rule hash
- f060a0eb09ab
- Sources
- bank:6ee66428b984
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate e4351af561ac --count 1 --seed 20261108 --test 1