← 0a0dded71c43 · 0a54983176e5 →

0a1bba9e3d93

Three color-8-separated panels show BEFORE, AFTER, and QUERY. Normalize the first two supports to their own bbox minima, transfer only AFTER's added relative cells to QUERY in the query color, and clip out-of-panel stamps. Every four-demo lesson includes different-query and partial-clip counterexamples to canonical-fitting shortcuts.

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 (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (split-panels-row grid count) (let* ((panel-w (quotient (- (cols grid) (- count 1)) count))) (for/list ((i (in-range count))) (let ((left (* i (+ panel-w 1)))) (subgrid grid 0 left (- (rows grid) 1) (+ left panel-w -1)))))) (let* ((panels (split-panels-row g 3)) (before (first panels)) (after (second panels)) (query (third panels)) (before-cells (nonzero-cells before)) (after-cells (nonzero-cells after)) (query-cells (nonzero-cells query)) (bb-before (bbox-of-cells before-cells)) (bb-after (bbox-of-cells after-cells)) (bb-query (bbox-of-cells query-cells)) (support-before (map (lambda (p) (list (- (first p) (first bb-before)) (- (second p) (second bb-before)))) before-cells)) (support-after (map (lambda (p) (list (- (first p) (first bb-after)) (- (second p) (second bb-after)))) after-cells)) (added (filter (lambda (p) (not (member? p support-before))) support-after)) (color (at query (first (first query-cells)) (second (first query-cells))))) (for/fold ((out query)) ((p (in-list added))) (let ((r (+ (first bb-query) (first p))) (c (+ (second bb-query) (second p)))) (if (in-bounds? r c (rows out) (cols out)) (set-cell out r c color) out))))))

Provenance

Generator
generators/0a1bba9e3d93/generator.py
Notes and decisions
generators/0a1bba9e3d93/notes.md
Review label
reviewed_safe
Generator SHA-256
b16cab45787ea7e24357080bd6b8e173650fbd7d87a04152f9adc2c0ae7e3b0e
Rule hash
386c52a84df2
Sources
bank:5a410ab56119
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 0a1bba9e3d93 --count 1 --seed 20261108 --test 1