← b7fbb716d189 · b8078ba8f836 →

b7ff231aab1a

Count K maroon cells, select the K-th smallest of three blue components by area, tightly crop it, upscale 2x, and recolor nonzero cells cyan.

counting markersranking components by areascalingsize-changing output

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 (f14-crop-cells grid cells) (let ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))) (define (f4b-recolor-nonzero grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (let* ((comps (sort (filter (lambda (obj) (= (obj-color obj) 1)) (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))))))) (idx (- (length (find-color g 9)) 1)) (crop (f14-crop-cells g (obj-cells (list-ref comps idx))))) (f4b-recolor-nonzero (upscale crop 2) 8))))

Provenance

Generator
generators/b7ff231aab1a/generator.py
Notes and decisions
generators/b7ff231aab1a/notes.md
Review label
reviewed_safe
Generator SHA-256
7d9d14a570624557457f57a698320104c929f87eeaa66a0cbe486e22ec26feeb
Rule hash
5c4099040cb4
Sources
bank:16956638be77
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b7ff231aab1a --count 1 --seed 20261108 --test 1