← 569aa05e004d · 56bcb1d01e53 →
56a06c9b29a3
Exactly five equal panels separated by single full-height color-9 columns. Panels 1 and 2 demonstrate one support operation by producing panel 3 in color 2; panels 4 and 5 are a new query pair. Infer the unique operation from union/intersection/xor/A-minus-B/B-minus-A and apply it to the query. Every generated operand pair contains overlap, A-only, B-only, and empty cells, so all five operations are distinguishable and non-empty.
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 (fifth xs) (list-ref xs 4)) (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))))))) (define (e11-apply-binop a b op) (grid-from-fn (rows a) (cols a) (lambda (r c) (let ((aa (not (= (at a r c) 0))) (bb (not (= (at b r c) 0)))) (if (cond ((equal? op 'union) (or aa bb)) ((equal? op 'intersection) (and aa bb)) ((equal? op 'xor) (not (equal? aa bb))) ((equal? op 'a-minus-b) (and aa (not bb))) (else (and bb (not aa)))) 2 0))))) (define (e11-infer-binop a b out) (first (filter (lambda (op) (equal? (e11-apply-binop a b op) out)) (list 'union 'intersection 'xor 'a-minus-b 'b-minus-a)))) (let* ((panels (split-full-sep-cols g 9)) (op (e11-infer-binop (first panels) (second panels) (third panels)))) (e11-apply-binop (fourth panels) (fifth panels) op))))
Provenance
- Generator
- generators/56a06c9b29a3/generator.py
- Notes and decisions
- generators/56a06c9b29a3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e6c92dc12269b98e5b93a933f06598f724efdc06685035b37907ddb561392c81
- Rule hash
- d79838837a8c
- Sources
- bank:b9cb6b5db49d
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 56a06c9b29a3 --count 1 --seed 20261108 --test 1