← b8259d813f79 · b86607f34b8b →

b83ad00fc681

A four-row dictionary contains 3-4 compact multicolor prototypes, split by full color-9 columns. Each prototype's unique minimum color is its key and anchor. Below a full color-9 divider, every key-colored marker is replaced by the complete anchor-relative prototype on a blank body.

parametric family

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 (split-full-sep-cols grid sep) (let* ((seps (filter (lambda (c) (all? (lambda (r) (= (at grid r c) sep)) (range (rows grid)))) (range (cols grid))))) (let loop ((cuts (append seps (list (cols grid)))) (start 0) (acc (list))) (if (empty? cuts) (reverse acc) (let ((c (first cuts))) (loop (rest cuts) (+ c 1) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) acc))))))) (define (e11-split-full-sep-rows grid sep) (let* ((seps (filter (lambda (r) (all? (lambda (c) (= (at grid r c) sep)) (range (cols grid)))) (range (rows grid))))) (let loop ((cuts (append seps (list (rows grid)))) (start 0) (acc (list))) (if (empty? cuts) (reverse acc) (let ((r (first cuts))) (loop (rest cuts) (+ r 1) (if (> r start) (cons (subgrid grid start 0 (- r 1) (- (cols grid) 1)) acc) acc))))))) (let* ((rowsplit (e11-split-full-sep-rows g 9)) (top (first rowsplit)) (bottom (second rowsplit)) (protos (split-full-sep-cols top 9)) (patterns (for/list ((p (in-list protos))) (let* ((cells (filter (lambda (cell) (not (= (third cell) 0))) (for*/list ((r (in-range (rows p))) (c (in-range (cols p)))) (list r c (at p r c))))) (key (apply min (map third cells))) (anchor (first (filter (lambda (cell) (= (third cell) key)) cells)))) (list key (map (lambda (cell) (list (- (first cell) (first anchor)) (- (second cell) (second anchor)) (third cell))) cells)))))) (for*/fold ((out (empty-grid (rows bottom) (cols bottom) 0))) ((r (in-range (rows bottom))) (c (in-range (cols bottom)))) (let* ((v (at bottom r c)) (hit (filter (lambda (pair) (= (first pair) v)) patterns))) (if (empty? hit) out (for/fold ((acc out)) ((rel (in-list (second (first hit))))) (let ((rr (+ r (first rel))) (cc (+ c (second rel)))) (if (in-bounds? rr cc (rows bottom) (cols bottom)) (set-cell acc rr cc (third rel)) acc)))))))))

Provenance

Generator
generators/b83ad00fc681/generator.py
Notes and decisions
generators/b83ad00fc681/notes.md
Review label
reviewed_safe
Generator SHA-256
30ec6f1ea881bb0ed60500f02ba73904ba22d24641c3930d14ee6ba2b567d3e2
Rule hash
46157a601fce
Sources
bank:b9cb6b5db49d
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b83ad00fc681 --count 1 --seed 20261108 --test 1