← 1c2f874f3e82 · 1cdc20963790 →

1cbcf1ed9a32

Split at the two full-height color-5 dividers, compare each panel's unique largest object up to D4 symmetry, and output the repeated canonical shape in color 8.

parametric familymajority-by-formpanel parsingshape equivalence

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 (normalize cells) (let* ((bb (bbox-of-cells cells))) (sort (map (lambda (p) (list (- (first p) (first bb)) (- (second p) (second bb)))) cells) cell<))) (define (mirror-h pts) (let ((maxc (apply max (map second pts)))) (sort (map (lambda (p) (list (first p) (- maxc (second p)))) pts) cell<))) (define (rot1 pts) (let ((maxr (apply max (map first pts)))) (normalize (map (lambda (p) (list (second p) (- maxr (first p)))) pts)))) (define (rotate pts k) (let loop ((n (modulo k 4)) (acc pts)) (if (= n 0) acc (loop (- n 1) (rot1 acc))))) (define (canonical cells) (let* ((pts (normalize cells)) (vars (remove-duplicates (apply append (for/list ((k (in-range 4))) (let ((r (rotate pts k))) (list r (mirror-h r)))))))) (first (sort vars (lambda (a b) (string<? (format "~a" a) (format "~a" b))))))) (define bars (filter (lambda (c) (all? (lambda (r) (= (at g r c) 5)) (range 0 (rows g)))) (range 0 (cols g)))) (define c1 (first bars)) (define c2 (second bars)) (define panels (list (subgrid g 0 0 (- (rows g) 1) (- c1 1)) (subgrid g 0 (+ c1 1) (- (rows g) 1) (- c2 1)) (subgrid g 0 (+ c2 1) (- (rows g) 1) (- (cols g) 1)))) (define sigs (map (lambda (p) (let ((obj (first (sort (objects p 0) (lambda (a b) (> (obj-size a) (obj-size b))))))) (canonical (obj-cells obj)))) panels)) (define max-count (apply max (map (lambda (sig) (count-where (lambda (x) (equal? x sig)) sigs)) sigs))) (define common (first (filter (lambda (sig) (= (count-where (lambda (x) (equal? x sig)) sigs) max-count)) sigs))) (define out-h (+ 1 (apply max (map first common)))) (define out-w (+ 1 (apply max (map second common)))) (paint-cells (empty-grid out-h out-w 0) common 8)))

Provenance

Generator
generators/1cbcf1ed9a32/generator.py
Notes and decisions
generators/1cbcf1ed9a32/notes.md
Review label
reviewed_safe
Generator SHA-256
4c969fc26956568436a826318dacab429db49f3aa709881a142ee8232bd1da6e
Rule hash
dc0d41aa47ba
Sources
bank:fe45a3aa7042
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 1cbcf1ed9a32 --count 1 --seed 20261108 --test 1