← cbd933916656 · cbf77aa253ac →

cbe60e2c4b18

Split two equal panels at the vertical 9 divider and paint color 8 only where both aligned panel cells are nonzero.

panel splitting, overlap detection, same-size 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 (render-same-size cells h w (color 8)) (paint-cells (empty-grid h w 0) (filter (lambda (p) (in-bounds? (first p) (second p) h w)) cells) color)) (define (panel-occ panel) (sort (filter (lambda (p) (let ((v (at panel (first p) (second p)))) (and (not (= v 0)) (not (= v 9))))) (grid-positions panel)) cell<)) (define (split-cols-9 grid) (let loop ((c 0) (start 0) (acc (list))) (cond ((>= c (cols grid)) (reverse (if (< start (cols grid)) (cons (subgrid grid 0 start (- (rows grid) 1) (- (cols grid) 1)) acc) acc))) ((all? (lambda (r) (= (at grid r c) 9)) (range 0 (rows grid))) (let scan ((cc c)) (if (and (< cc (cols grid)) (all? (lambda (r) (= (at grid r cc) 9)) (range 0 (rows grid)))) (scan (+ cc 1)) (loop cc cc (if (< start c) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) acc) acc))))) (else (loop (+ c 1) start acc))))) (define (inter-cells a b) (let ((bb (panel-occ b))) (filter (lambda (p) (member? p bb)) (panel-occ a)))) (let* ((panels (split-cols-9 g)) (a (first panels)) (b (second panels))) (render-same-size (inter-cells a b) (rows a) (cols a) 8))))

Provenance

Generator
generators/cbe60e2c4b18/generator.py
Notes and decisions
generators/cbe60e2c4b18/notes.md
Review label
reviewed_safe
Generator SHA-256
05d9396d7fef2d18dd1317b7db4542cd8f334bb2fa14c093338b58901a98df27
Rule hash
cd6a6225c112
Sources
bank:0938460c498b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate cbe60e2c4b18 --count 1 --seed 20261108 --test 1