← 20859a33c80e · 20b5e7246250 →

20b53e0c4957

Three equal-width panels A|B|C are separated by full-height color-5 columns. A is a translated solid rectangle; B is A with 1..6 cells removed in the same panel coordinates. C has the same bbox dimensions, a different color, an independently translated bbox, and one independent interior hole. Transfer the A-minus-B coordinates relative to A's bbox onto C's bbox, preserving C's existing hole.

parametric family

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-nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (let* ((panels (s17-split-panel-row g 3)) (a (first panels)) (b (second panels)) (cgrid (third panels)) (cells-a (s17-nonzero-cells a)) (cells-b (s17-nonzero-cells b)) (bb-a (bbox-of-cells cells-a)) (removed (map (lambda (p) (list (- (first p) (first bb-a)) (- (second p) (second bb-a)))) (filter (lambda (p) (not (member? p cells-b))) cells-a))) (bb-c (bbox-of-cells (s17-nonzero-cells cgrid)))) (for/fold ((out cgrid)) ((p (in-list removed))) (let ((rr (+ (first bb-c) (first p))) (cc (+ (second bb-c) (second p)))) (if (in-bounds? rr cc (rows out) (cols out)) (set-cell out rr cc 0) out))))))

Provenance

Generator
generators/20b53e0c4957/generator.py
Notes and decisions
generators/20b53e0c4957/notes.md
Review label
reviewed_safe
Generator SHA-256
7e1efe378d3881fc28a56741ac00bc76ca7fe6b766289b7e536e6c02315a098a
Rule hash
9217dc891941
Sources
bank:110177dcbe3a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 20b53e0c4957 --count 1 --seed 20261108 --test 1