← eb150c0ba566 · eb373570e72b →
eb3171637821
Two nonzero colors form a Cartesian lattice: a divider color occupies full row/column runs and a cell color fills every positive-size band. Count non-divider row bands and column bands, then emit a fresh rectangle of that size filled with the cell color. Divider runs may be 1-2 cells thick and may occur on any outer boundary.
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! (lambda (g)
(let* ((h (rows g))
(w (cols g)))
(let* ((all-colors (grid-colors g))
(div-color (find (lambda (clr)
(or
(for/or ((r (range 0 h)))
(for/and ((cc (range 0 w)))
(= (at g r cc) clr)))
(for/or ((cc (range 0 w)))
(for/and ((r (range 0 h)))
(= (at g r cc) clr)))))
all-colors))
(cell-color (find (lambda (clr) (!= clr div-color)) all-colors))
(div-rows (for/list ((r (range 0 h)) #:when
(for/and ((cc (range 0 w))) (= (at g r cc) div-color)))
r))
(div-cols (for/list ((cc (range 0 w)) #:when
(for/and ((r (range 0 h))) (= (at g r cc) div-color)))
cc))
(n-rows (let loop
((divs (append (list -1) div-rows (list h))) (cnt 0))
(cond
((null? (cdr divs)) cnt)
((> (- (cadr divs) (car divs)) 1) (loop (cdr divs) (+ cnt 1)))
(else (loop (cdr divs) cnt)))))
(n-cols (let loop
((divs (append (list -1) div-cols (list w))) (cnt 0))
(cond
((null? (cdr divs)) cnt)
((> (- (cadr divs) (car divs)) 1) (loop (cdr divs) (+ cnt 1)))
(else (loop (cdr divs) cnt))))))
(build-grid n-rows n-cols (r c) cell-color)))))Provenance
- Generator
- generators/eb3171637821/generator.py
- Notes and decisions
- generators/eb3171637821/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 18dcef177f13525085c354ca39c6e27c93843d0aab2ac814a7bad2e3ba91e59a
- Rule hash
- f7892897a4d5
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate eb3171637821 --count 1 --seed 20261108 --test 1