← 6c93e8516229 · 6ccc3318a707 →

6cc68e9e1125

Split the input at four full-height gray columns. Panels 0 and 1 demonstrate the cellwise merge and panel 2 is their exact result. Apply the same merge to query panels 3 and 4: zero passes the other value through, equal nonzero values remain unchanged, and unequal nonzero values become maroon 9.

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 (s17-split-panel-row grid count) (let ((pw (quotient (- (cols grid) (- count 1)) count))) (for/list ((i (in-range count))) (let ((left (* i (+ pw 1)))) (grid-from-fn (rows grid) pw (lambda (r c) (at grid r (+ left c)))))))) (define (s17-merge-op a b) (grid-from-fn (rows a) (cols a) (lambda (r c) (let ((x (at a r c)) (y (at b r c))) (cond ((and (= x 0) (= y 0)) 0) ((= x 0) y) ((= y 0) x) ((= x y) x) (else 9)))))) (let ((panels (s17-split-panel-row g 5))) (s17-merge-op (list-ref panels 3) (list-ref panels 4)))))

Provenance

Generator
generators/6cc68e9e1125/generator.py
Notes and decisions
generators/6cc68e9e1125/notes.md
Review label
reviewed_safe
Generator SHA-256
4e6f0e138552257fbcae42089a4f5843172f9a2f78454b86ef66a356ced476df
Rule hash
da70d4d65006
Sources
bank:110177dcbe3a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6cc68e9e1125 --count 1 --seed 20261108 --test 1