← cb3541dd8827 · cbd933916656 →
cb439f1b5f4a
Count blue cells in row 0, crop the one connected nonzero prototype below the header, and repeat the entire colored crop horizontally that many times with one blank column between copies. The body may contain blue, multiple colors, holes, and arbitrary padding. Generated K is 1..4.
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 (paste-crop grid shape top left) (for*/fold ((out grid)) ((r (in-range (rows shape))) (c (in-range (cols shape)))) (let ((v (at shape 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 (panelize-row panels sep) (let* ((h (rows (first panels))) (w (+ (apply + (map cols panels)) (* sep (max 0 (- (length panels) 1)))))) (let loop ((xs panels) (left 0) (out (empty-grid h w 0))) (if (empty? xs) out (loop (rest xs) (+ left (cols (first xs)) sep) (paste-crop out (first xs) 0 left)))))) (let* ((k (length (filter (lambda (v) (= v 1)) (first g)))) (cells (filter (lambda (p) (and (> (first p) 0) (not (= (at g (first p) (second p)) 0)))) (grid-positions g))) (bb (bbox-of-cells cells)) (proto (subgrid g (first bb) (second bb) (third bb) (fourth bb))) (pieces (for/list ((i (in-range k))) proto))) (panelize-row pieces 1))))
Provenance
- Generator
- generators/cb439f1b5f4a/generator.py
- Notes and decisions
- generators/cb439f1b5f4a/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 78801e7652917d18617a7fd84359b4bc25c6c94ce4e87ab6e2342714977799b6
- Rule hash
- 33d95b8e8c4d
- Sources
- bank:5a410ab56119
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate cb439f1b5f4a --count 1 --seed 20261108 --test 1