← 9a35b20efa99 · 9a9025a8556a →

9a7579840f41

A zero-background grid contains one connected color-4 template, one color-7 start marker, and one non-branching color-1 wire. Follow the wire from the start; at every direction change, stamp the normalized template with top-left alignment onto a fresh output grid. Grid size, template size/shape, exact turn count, start orientation, path signs, segment lengths, and placements vary.

event-based stampingordered path analysistemplate 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).

Reference rule (Racket)

(rule! (let ((dummy 0)) (define dirs4-ordered (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (norm-cells cells) (sort (normalize-cells cells) cell<)) (define (follow-wire grid start) (let* ((adjs (filter (lambda (p) (and (in-bounds? (first p) (second p) (rows grid) (cols grid)) (= (at grid (first p) (second p)) 1))) (map (lambda (d) (list (+ (first start) (first d)) (+ (second start) (second d)))) dirs4-ordered)))) (if (empty? adjs) (list) (let loop ((cur (first adjs)) (prev start) (seen (list start)) (path (list))) (let* ((path2 (append path (list cur))) (seen2 (append seen (list cur))) (nxts (filter (lambda (p) (and (in-bounds? (first p) (second p) (rows grid) (cols grid)) (not (equal? p prev)) (= (at grid (first p) (second p)) 1) (not (member? p seen2)))) (map (lambda (d) (list (+ (first cur) (first d)) (+ (second cur) (second d)))) dirs4-ordered)))) (if (empty? nxts) path2 (loop (first nxts) cur seen2 path2))))))) (let* ((template (first (sort (filter (lambda (obj) (= (obj-color obj) 4)) (objects g 0)) (lambda (a b) (> (obj-size a) (obj-size b)))))) (temp-norm (norm-cells (obj-cells template))) (path (follow-wire g (first (find-color g 7)))) (turns (filter values (for/list ((i (in-range 1 (- (length path) 1)))) (let ((a (list-ref path (- i 1))) (b (list-ref path i)) (c (list-ref path (+ i 1)))) (if (equal? (list (- (first b) (first a)) (- (second b) (second a))) (list (- (first c) (first b)) (- (second c) (second b)))) #f b)))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((turn (in-list turns))) (for/fold ((acc out)) ((p (in-list temp-norm))) (let ((rr (+ (first turn) (first p))) (cc (+ (second turn) (second p)))) (if (in-bounds? rr cc (rows g) (cols g)) (set-cell acc rr cc 4) acc)))))))

Provenance

Generator
generators/9a7579840f41/generator.py
Notes and decisions
generators/9a7579840f41/notes.md
Review label
reviewed_safe
Generator SHA-256
150ecbcf84e65e58c370e666f454a3a142486fe853e1eae26482bc8b507d5fd7
Rule hash
7dd342fe1468
Sources
bank:76c10b1ad4b3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9a7579840f41 --count 1 --seed 20261108 --test 1