← 6143c7ef56be · 615496fbe17b →

6145142974ff

A color-1 polyomino is the translation-only template. One or two color-3 components match it exactly, while one or two green distractors include a same-area wrong shape. Isolated key cells in 2-3 other colors have one strictly repeated majority. The output is blank except that exactly the matching green components are recolored to that majority key color.

parametric familycolor aggregationselection and recolortemplate 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 (e8b-list> a b) (e8b-list< b a)) (define (e8b-colors-reading grid) (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at grid (first p) (second p))) (grid-positions grid))))) (define (f4-norm cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells))) (define (nb-sort-cells cells) (sort cells e8b-list<)) (define (nb-norm cells) (nb-sort-cells (f4-norm cells))) (let* ((target (nb-norm (obj-cells (first (filter (lambda (o) (= (obj-color o) 1)) (objects g 0)))))) (candidates (filter (lambda (color) (not (member? color (list 1 3)))) (e8b-colors-reading g))) (majority (first (sort candidates (lambda (a b) (e8b-list> (list (length (find-color g a)) a) (list (length (find-color g b)) b))))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (filter (lambda (o) (= (obj-color o) 3)) (objects g 0))))) (if (equal? (nb-norm (obj-cells obj)) target) (paint-cells out (obj-cells obj) majority) out)))))

Provenance

Generator
generators/6145142974ff/generator.py
Notes and decisions
generators/6145142974ff/notes.md
Review label
reviewed_safe
Generator SHA-256
74f509e69fc179963d3295401f9f81b4d9db6c60760a0cb0837724350751a012
Rule hash
d5061c3b9df5
Sources
bank:3cbcef69c8ec
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6145142974ff --count 1 --seed 20261108 --test 1