← a7e26e20850c · a82753d0e28f →
a80c6418f6bc
A color-9 cross forms demonstration panels A and B, query panel C, and an empty answer panel. B is a strict bbox-aligned superset of A. Copy C to the answer panel and stamp exactly the relative B-minus-A cells in C's color. Ordinary four-pair lessons schedule within-bbox, right-expanding, down-expanding, and two-axis-expanding edits; they also include query shapes that differ from A so copying B's silhouette is not a valid shortcut.
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 (e8b-colors-reading grid) (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at grid (first p) (second p))) (grid-positions grid))))) (define (f14-paste-all out obj r0 c0) (for*/fold ((acc out)) ((r (in-range (rows obj))) (c (in-range (cols obj)))) (let ((nr (+ r0 r)) (nc (+ c0 c))) (if (in-bounds? nr nc (rows acc) (cols acc)) (set-cell acc nr nc (at obj r c)) acc)))) (define (f14-full-row grid color) (let ((hits (filter (lambda (r) (all? (lambda (v) (= v color)) (row grid r))) (range (rows grid))))) (if (empty? hits) #f (first hits)))) (define (f14-full-cols grid color) (filter (lambda (c) (all? (lambda (r) (= (at grid r c) color)) (range (rows grid)))) (range (cols grid)))) (define (f14-full-col grid color) (let ((hits (f14-full-cols grid color))) (if (empty? hits) #f (first hits)))) (define (f14-bbox-nonzero grid) (let ((cells (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid)))) (if (empty? cells) #f (bbox-of-cells cells)))) (define (f14-mode-nonzero grid) (let ((colors (e8b-colors-reading grid))) (first (sort colors (lambda (a b) (> (length (find-color grid a)) (length (find-color grid b)))))))) (let ((sep-r (f14-full-row g 9)) (sep-c (f14-full-col g 9))) (if (or (not sep-r) (not sep-c)) g (let* ((a (subgrid g 0 0 (- sep-r 1) (- sep-c 1))) (b (subgrid g 0 (+ sep-c 1) (- sep-r 1) (- (cols g) 1))) (c (subgrid g (+ sep-r 1) 0 (- (rows g) 1) (- sep-c 1))) (ba (f14-bbox-nonzero a)) (bb (f14-bbox-nonzero b)) (bc (f14-bbox-nonzero c))) (if (or (not ba) (not bb) (not bc)) g (let* ((ar0 (first ba)) (ac0 (second ba)) (ar1 (third ba)) (ac1 (fourth ba)) (br0 (first bb)) (bc0 (second bb)) (br1 (third bb)) (bc1 (fourth bb)) (cr0 (first bc)) (cc0 (second bc)) (qcolor (f14-mode-nonzero c)) (adds (filter values (for*/list ((r (in-range (max (+ 1 (- ar1 ar0)) (+ 1 (- br1 br0))))) (col (in-range (max (+ 1 (- ac1 ac0)) (+ 1 (- bc1 bc0)))))) (let ((av (if (and (<= (+ ar0 r) ar1) (<= (+ ac0 col) ac1)) (at a (+ ar0 r) (+ ac0 col)) 0)) (bv (if (and (<= (+ br0 r) br1) (<= (+ bc0 col) bc1)) (at b (+ br0 r) (+ bc0 col)) 0))) (if (and (= av 0) (not (= bv 0))) (list r col bv) #f)))))) (for/fold ((out (f14-paste-all g c (+ sep-r 1) (+ sep-c 1)))) ((add (in-list adds))) (let ((nr (+ cr0 (first add))) (nc (+ cc0 (second add)))) (if (and (in-bounds? nr nc (rows c) (cols c))) (set-cell out (+ sep-r 1 nr) (+ sep-c 1 nc) qcolor) out))))))))))
Provenance
- Generator
- generators/a80c6418f6bc/generator.py
- Notes and decisions
- generators/a80c6418f6bc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 25c7ab8e1923c1372b8656469eb0eb8ed2e95c8efe756bc59996bfb0d93d69ab
- Rule hash
- 88309ffec80e
- Sources
- bank:e14e4b5836bc
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a80c6418f6bc --count 1 --seed 20261108 --test 1