← 0da360b839c1 · 0dba62203065 →

0db54f549d0e

Four fixed 3x3 binary prototypes on a 7..11 by 11..15 canvas. Each row/column pair contributes its intersection, painted 8, to a fixed 7x7 gallery. Prototype colors do not determine their roles.

binary boolean operationscross-product galleriespanel 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 (e8b-paste grid pat top left) (for*/fold ((out grid)) ((r (in-range (rows pat))) (c (in-range (cols pat)))) (let ((v (at pat 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 (s17-binary-grid grid) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1)))) (let* ((row-shapes (list (s17-binary-grid (subgrid g 0 0 2 2)) (s17-binary-grid (subgrid g 4 0 6 2)))) (col-shapes (list (s17-binary-grid (subgrid g 0 4 2 6)) (s17-binary-grid (subgrid g 0 8 2 10))))) (for*/fold ((out (empty-grid 7 7 0))) ((i (in-range 2)) (j (in-range 2))) (let ((panel (grid-from-fn 3 3 (lambda (r c) (if (and (not (= (at (list-ref row-shapes i) r c) 0)) (not (= (at (list-ref col-shapes j) r c) 0))) 8 0))))) (e8b-paste out panel (* 4 i) (* 4 j)))))))

Provenance

Generator
generators/0db54f549d0e/generator.py
Notes and decisions
generators/0db54f549d0e/notes.md
Review label
reviewed_safe
Generator SHA-256
4cc8402043331811424b70646861a9b0e66dc82cfa0d7e1ee411e94faf166561
Rule hash
2a9df9793155
Sources
bank:5deb8ef303b3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 0db54f549d0e --count 1 --seed 20261108 --test 1