← 75ff4423494a · 764b6b9e7771 →

761a24339019

An EXEMPLAR blob (a colour-1 anchor 4-connected to a colour-3 shape) plus isolated colour-1 TARGET markers. Rule: stamp the exemplar's colour-3 shape (offset from the anchor) at every target. Exemplar shape, target count and positions vary.

parametric familyanchor-relative copymulti-target stampingtemplate extraction

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 dirs4 (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (t10-open-region grid start walls) (let bfs ((queue (list start)) (seen (list start)) (cells (list))) (if (empty? queue) (reverse cells) (let* ((cur (first queue)) (nbrs (filter (lambda (p) (and (in-bounds? (first p) (second p) (rows grid) (cols grid)) (not (member? p seen)) (not (member? (at grid (first p) (second p)) walls)))) (map (lambda (d) (list (+ (first cur) (first d)) (+ (second cur) (second d)))) dirs4)))) (bfs (append (rest queue) nbrs) (append seen nbrs) (cons cur cells)))))) (define (v3-first-exemplar grid) (let* ((positions (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (hits (filter (lambda (entry) (let ((vals (map (lambda (p) (at grid (first p) (second p))) (second entry)))) (and (member? 1 vals) (member? 3 vals)))) (map (lambda (p) (list p (t10-open-region grid p (list 0)))) positions))) (region (second (first hits))) (anchor (first (filter (lambda (p) (= (at grid (first p) (second p)) 1)) region))) (offsets (map (lambda (p) (list (- (first p) (first anchor)) (- (second p) (second anchor)))) (filter (lambda (p) (= (at grid (first p) (second p)) 3)) region)))) (list anchor offsets))) (let* ((info (v3-first-exemplar g)) (anchor (first info)) (offsets (second info)) (targets (filter (lambda (p) (not (equal? p anchor))) (find-color g 1)))) (for/fold ((out g)) ((target (in-list targets))) (for/fold ((acc out)) ((off (in-list offsets))) (let ((rr (+ (first target) (first off))) (cc (+ (second target) (second off)))) (if (and (in-bounds? rr cc (rows g) (cols g)) (= (at acc rr cc) 0)) (set-cell acc rr cc 3) acc)))))))

Provenance

Generator
generators/761a24339019/generator.py
Notes and decisions
generators/761a24339019/notes.md
Review label
reviewed_safe
Generator SHA-256
e6e8c3271f289c286cb40c0a439beb4998edb0ce3645b73a7a1a9e6320a45b2d
Rule hash
ea6f2120f432
Sources
bank:05f1b1c78907
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 761a24339019 --count 1 --seed 20261108 --test 1