← d476983a3d6c · d48317a7c7c8 →

d47a6fca9d15

A black 8..10 by 11..13 grid contains exactly three mutually separated green(3) four-connected components with strictly distinct cell counts. Sort them by cell count and recolor smallest->red(2), middle->yellow(4), largest->magenta(6), preserving shape, position, and grid dimensions.

connected componentsrank-based recolorsorting

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))))) (let ((ordered (sort (filter (lambda (obj) (= (obj-color obj) 3)) (objects g 0)) (lambda (a b) (or (< (obj-size a) (obj-size b)) (and (= (obj-size a) (obj-size b)) (e8b-list< (obj-bbox a) (obj-bbox b)))))))) (for/fold ((out g)) ((obj (in-list ordered)) (color (in-list (list 2 4 6)))) (paint-cells out (obj-cells obj) color)))))

Provenance

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