← 90640e0e6314 · 90e1b47a15f9 →

907bb29fbac5

Split the fixed 4x14 input into three 4x4 color-6 masks. Build a 3x3 ordered gallery whose tile (i,j) is panel_i XOR panel_j in color 7, with one-cell black separators; diagonal tiles are blank and opposite off-diagonal tiles are equal.

boolean shape operationsgallery assemblypanel 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 (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 (split-fixed-panels-row grid panel-h panel-w) (let loop ((c 0) (acc (list))) (if (> (+ c panel-w) (cols grid)) (reverse acc) (loop (+ c panel-w 1) (cons (subgrid grid 0 c (- panel-h 1) (+ c panel-w -1)) acc))))) (define (gallery-grid panel-rows sep) (let* ((ph (rows (first (first panel-rows)))) (pw (cols (first (first panel-rows)))) (nr (length panel-rows)) (nc (length (first panel-rows))) (out-h (+ (* nr ph) (* sep (max 0 (- nr 1))))) (out-w (+ (* nc pw) (* sep (max 0 (- nc 1)))))) (for*/fold ((out (empty-grid out-h out-w 0))) ((ri (in-range nr)) (ci (in-range nc))) (paste-crop out (list-ref (list-ref panel-rows ri) ci) (* ri (+ ph sep)) (* ci (+ pw sep)))))) (define (xor-panels a b color) (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)))) (if (not (equal? av bv)) color 0))))) (let ((panels (split-fixed-panels-row g 4 4))) (gallery-grid (for/list ((a (in-list panels))) (for/list ((b (in-list panels))) (xor-panels a b 7))) 1))))

Provenance

Generator
generators/907bb29fbac5/generator.py
Notes and decisions
generators/907bb29fbac5/notes.md
Review label
reviewed_safe
Generator SHA-256
bcf885458b5e17c78244f1fe886bd17c40b0d9a37777ff9ce3263f00629ad951
Rule hash
edb7f73552a9
Sources
bank:0eb6e7ee3b18
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 907bb29fbac5 --count 1 --seed 20261108 --test 1