← 81fdfd815936 · 8265382d9c72 →

8230189d9b9e

Read distinct key markers from row 0, use each marker's fixed 3x3 block as a dictionary value, then read the last-row key sequence and pack the referenced blocks left-to-right with one zero column gap. Four-sample windows mix canonical anchors with decoupled colours, repeated keys, and subset queries so labels, order, multiplicity, and 3x3 padding all matter.

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-paste grid pat top left) (for*/fold ((out grid)) ((r (in-range (rows pat))) (c (in-range (cols pat)))) (let ((v (at pat r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows out) (cols out))) (set-cell out rr cc v) out)))) (define (f14-pack-h-top grids) (if (empty? grids) (list (list 0)) (let* ((h (apply max (map rows grids))) (w (+ (apply + (map cols grids)) (- (length grids) 1)))) (let loop ((pieces grids) (left 0) (out (empty-grid h w 0))) (if (empty? pieces) out (loop (rest pieces) (+ left (cols (first pieces)) 1) (e8b-paste out (first pieces) 0 left))))))) (let* ((query (filter (lambda (v) (not (= v 0))) (last g))) (keys (filter (lambda (c) (not (= (at g 0 c) 0))) (range (cols g)))) (pieces (filter values (map (lambda (k) (let ((hit (filter (lambda (c) (= (at g 0 c) k)) keys))) (if (empty? hit) #f (subgrid g 1 (- (first hit) 1) 3 (+ (first hit) 1))))) query)))) (f14-pack-h-top pieces))))

Provenance

Generator
generators/8230189d9b9e/generator.py
Notes and decisions
generators/8230189d9b9e/notes.md
Review label
reviewed_safe
Generator SHA-256
3d2563d70ebf3194caac78fb757ba9619e6c045364674c536b2a756785407363
Rule hash
b313e3795954
Sources
bank:e14e4b5836bc
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 8230189d9b9e --count 1 --seed 20261108 --test 1