← fcd2e3748e0e · fd588326c845 →
fd277c567993
Two color-5 separator columns create equal before, after, and query panels. The after panel copies the before object and adds 1..4 color-8 cells. Transfer those additions by offsets from the before object's bbox top-left to the query object's bbox top-left; in-bounds additions overwrite any query cell they land on.
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 (s17-split-panel-row grid count) (let ((pw (quotient (- (cols grid) (- count 1)) count))) (for/list ((i (in-range count))) (let ((left (* i (+ pw 1)))) (grid-from-fn (rows grid) pw (lambda (r c) (at grid r (+ left c)))))))) (let* ((panels (s17-split-panel-row g 3)) (before (first panels)) (after (second panels)) (query (third panels)) (bcells (filter (lambda (p) (not (member? (at before (first p) (second p)) (list 0 8)))) (grid-positions before))) (bb (bbox-of-cells bcells)) (added (filter values (for*/list ((r (in-range (rows before))) (c (in-range (cols before)))) (if (and (= (at after r c) 8) (= (at before r c) 0)) (list (- r (first bb)) (- c (second bb))) #f)))) (qcells (filter (lambda (p) (not (member? (at query (first p) (second p)) (list 0 8)))) (grid-positions query))) (qb (bbox-of-cells qcells))) (for/fold ((out query)) ((p (in-list added))) (let ((nr (+ (first qb) (first p))) (nc (+ (second qb) (second p)))) (if (in-bounds? nr nc (rows query) (cols query)) (set-cell out nr nc 8) out))))))
Provenance
- Generator
- generators/fd277c567993/generator.py
- Notes and decisions
- generators/fd277c567993/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- db1c46f995eb309590cc02c922a0833cfec36396750abbcd250813f2df0114af
- Rule hash
- 1890aa619f98
- Sources
- bank:5b06d39592a3
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate fd277c567993 --count 1 --seed 20261108 --test 1