← 69dbf44065e2 · 6af5c333e5c1 →

6a289c5b0897

A 4..6 by 5..8 grid contains gray(5) walls and exactly two terminals of one other color. Starting from the row-major first terminal, paint the BFS path selected by neighbour order Up, Down, Left, Right on an otherwise black output. Three scheduled profiles cover canonical scale, broad geometry, and a tie that distinguishes the ordered BFS rule. A staggered witness guarantees that rotating any one of four consecutive pairs into the query still leaves a counterexample in the demonstrations.

blockerspathfindingsame_sizesimulation

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-ordered (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (shortest-path grid start goal allowed-colors) (let ((prev (make-hash)) (seen (make-hash))) (define (rebuild cur acc) (if (equal? cur #f) acc (rebuild (hash-ref prev cur #f) (cons cur acc)))) (hash-set! seen start #t) (hash-set! prev start #f) (let bfs ((queue (list start))) (cond ((empty? queue) (list)) ((equal? (first queue) goal) (rebuild goal (list))) (else (let* ((cur (first queue)) (next-queue (for/fold ((q (rest queue))) ((d (in-list dirs4-ordered))) (let ((rr (+ (first cur) (first d))) (cc (+ (second cur) (second d)))) (if (and (in-bounds? rr cc (rows grid) (cols grid)) (not (hash-has-key? seen (list rr cc))) (member? (at grid rr cc) allowed-colors)) (begin (hash-set! seen (list rr cc) #t) (hash-set! prev (list rr cc) cur) (append q (list (list rr cc)))) q))))) (bfs next-queue))))))) (let* ((colors (filter (lambda (color) (= (length (find-color g color)) 2)) (grid-colors g 0))) (color (apply min colors)) (pts (find-color g color)) (path (shortest-path g (first pts) (second pts) (list 0 color)))) (paint-cells (empty-grid (rows g) (cols g) 0) path color))))

Provenance

Generator
generators/6a289c5b0897/generator.py
Notes and decisions
generators/6a289c5b0897/notes.md
Review label
reviewed_safe
Generator SHA-256
7ac5a6e189f84bece2eb0ebda1efdd0e353833d165ffdeb2afb3dda06fc367fe
Rule hash
d0e77b114425
Sources
bank:fc0f4ba66a95
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6a289c5b0897 --count 1 --seed 20261108 --test 1