← bcac0c8a0478 · bd6bfb1f0c20 →

bd05f2963d17

Three to five isolated green components with distinct cell counts; scale the second-smallest shape 2x at its bounding-box origin in cyan. Mix random polyominoes with explicit ranking, shape and anchor witnesses.

parametric familycomponent ranking by areaselectionshape scaling

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 (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))) (define (nb-scale-offsets offsets k) (nb-sort-cells (apply append (map (lambda (p) (for*/list ((dr (in-range k)) (dc (in-range k))) (list (+ (* (first p) k) dr) (+ (* (second p) k) dc)))) offsets)))) (let* ((comps (sort (filter (lambda (o) (= (obj-color o) 3)) (objects g 0)) (lambda (a b) (let ((ba (obj-bbox a)) (bb (obj-bbox b))) (e8b-list< (list (obj-size a) (first ba) (second ba)) (list (obj-size b) (first bb) (second bb))))))) (target (second comps)) (bb (obj-bbox target)) (scaled (nb-scale-offsets (nb-norm (obj-cells target)) 2))) (paint-cells (empty-grid (rows g) (cols g) 0) (map (lambda (p) (list (+ (first bb) (first p)) (+ (second bb) (second p)))) scaled) 8))))

Provenance

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