← 8a82ec149798 · 8ab614412470 →
8a851bf5cdd7
0-background grid with three equal panels separated by two full-height color-8 columns. Panel B is panel A after at least one addition and one deletion. Apply that edit stencil to differently colored panel C: additions take C's color and deletions become 0. Every generated lesson makes both operations visibly affect C.
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 (first-nonzero grids) (let ((vals (apply append (map (lambda (grid) (filter (lambda (v) (not (= v 0))) (apply append grid))) grids)))) (if (empty? vals) 0 (first vals)))) (define (split-full-sep-cols grid sep) (let* ((seps (filter (lambda (c) (all? (lambda (r) (= (at grid r c) sep)) (range (rows grid)))) (range (cols grid))))) (let loop ((cuts (append seps (list (cols grid)))) (start 0) (acc (list))) (if (empty? cuts) (reverse acc) (let ((c (first cuts))) (loop (rest cuts) (+ c 1) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) acc))))))) (let* ((panels (split-full-sep-cols g 8)) (before (first panels)) (after (second panels)) (query (third panels)) (qcolor (first-nonzero (list query)))) (grid-from-fn (rows query) (cols query) (lambda (r c) (let ((b (not (= (at before r c) 0))) (a (not (= (at after r c) 0)))) (cond ((and b (not a)) 0) ((and (not b) a) qcolor) (else (at query r c)))))))))
Provenance
- Generator
- generators/8a851bf5cdd7/generator.py
- Notes and decisions
- generators/8a851bf5cdd7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- d5516a3806e79f385735b576162991e2c46c2ba1c2245a076d3752f4d87d96d6
- Rule hash
- d2ea4a091d55
- Sources
- bank:f7fa4dfa2903
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8a851bf5cdd7 --count 1 --seed 20261108 --test 1