← 552c2402dce3 · 554712910457 →

55312177dae6

A 0-background grid contains three or four separated blue objects. Exactly two objects share one shape up to rotation, in visibly different orientations; every distractor has a unique rotational shape class. Normalize all rotations, select the repeated class, render its lexicographically least rotation alone in cyan, and crop to its bbox.

canonical outputcomponent normalizationrotation-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).

Reference rule (Racket)

(rule! (let ((dummy 0)) (define (norm-cells cells) (sort (normalize-cells cells) cell<)) (define (rotate-norm cells times) (if (= (modulo times 4) 0) cells (let* ((maxr (apply max (map first cells))) (h (+ maxr 1)) (rotated (map (lambda (p) (list (second p) (- h 1 (first p)))) cells))) (rotate-norm (norm-cells rotated) (- times 1))))) (define (canonical-rot cells) (first (sort (map (lambda (k) (rotate-norm cells k)) (range 0 4)) (lambda (a b) (lex-list< (apply append a) (apply append b)))))) (define (lex-list< a b) (cond ((empty? a) (not (empty? b))) ((empty? b) #f) ((not (= (first a) (first b))) (< (first a) (first b))) (else (lex-list< (rest a) (rest b))))) (define (count-equal xs x) (length (filter (lambda (v) (equal? v x)) xs))) (define (shape->grid cells color) (let* ((maxr (apply max (map first cells))) (maxc (apply max (map second cells)))) (for/fold ((out (empty-grid (+ maxr 1) (+ maxc 1) 0))) ((p (in-list cells))) (set-cell out (first p) (second p) color)))) (let* ((comps (filter (lambda (obj) (= (obj-color obj) 1)) (objects g 0))) (canons (map (lambda (obj) (canonical-rot (norm-cells (obj-cells obj)))) comps)) (target (first (filter (lambda (canon) (>= (count-equal canons canon) 2)) canons)))) (shape->grid target 8))))

Provenance

Generator
generators/55312177dae6/generator.py
Notes and decisions
generators/55312177dae6/notes.md
Review label
reviewed_safe
Generator SHA-256
7daf814989a30ae3630996f2b91cacb815844062c8ab9b8a4096787e9bf6e61f
Rule hash
39919c9ecf3d
Sources
bank:0e5302a13aba
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 55312177dae6 --count 1 --seed 20261108 --test 1