← 832404dc8a5c · 83c4d8ce9656 →
8384d9743be8
A fixed 5x11 input contains two coordinate-aligned 5x5 binary panels in color 1, separated by blank column 5. Each panel is one 4-connected shape. The output is a 5x17 gallery with union colored 2, intersection colored 3, and xor colored 4, separated by blank columns. A five-profile schedule matches every public occupancy signature; four profiles expose the complete Boolean truth table and one preserves the public subset case.
boolean shape operationsgallery constructionpanel parsing
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 (binary-grid grid) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1)))) (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)))))) (define (apply-support-op name a b) (grid-from-fn (rows a) (cols a) (lambda (r c) (let ((av (not (= (at a r c) 0))) (bv (not (= (at b r c) 0)))) (cond ((equal? name 'union) (if (or av bv) 1 0)) ((equal? name 'intersection) (if (and av bv) 1 0)) (else (if (not (equal? av bv)) 1 0))))))) (define (recolor-grid grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (let* ((left (subgrid g 0 0 4 4)) (right (subgrid g 0 6 4 10)) (a (binary-grid left)) (b (binary-grid right)) (union (recolor-grid (apply-support-op 'union a b) 2)) (inter (recolor-grid (apply-support-op 'intersection a b) 3)) (xor (recolor-grid (apply-support-op 'xor a b) 4))) (panelize-row (list union inter xor) 1))))
Provenance
- Generator
- generators/8384d9743be8/generator.py
- Notes and decisions
- generators/8384d9743be8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 708a326dfd7a1f73479079928b1bcf4ad3e9032441a607fd2990bae9beacd08b
- Rule hash
- 859078164faa
- Sources
- bank:9a1b04175c5a
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8384d9743be8 --count 1 --seed 20261108 --test 1