← 9126300ec565 · 91b531b5d3f4 →
9199b47fab1e
One to three color-2 seeds occupy canonical-scale chambers bounded by a single color from 6/7/8/9. Cardinal BFS may cross only 0/2 cells. Every reachable cell is recolored by distance mod 3 as 3/4/5; walls and unreachable chambers remain unchanged. A closed outer barrier makes wall blocking answer-changing in every ordinary example; a three-slot wall-color schedule also refutes the canonical-fitting color-8-only shortcut.
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 ((dist (make-hash)))
(define queue (map (lambda (p) (cons (first p) (second p))) (find-color g 2)))
(for ([p (in-list queue)]) (hash-set! dist p 0))
(let bfs ([step 0])
(unless (empty? queue)
(let ((cur (first queue)))
(set! queue (rest queue))
(for ([d (in-list cardinal-deltas)])
(let ((nr (+ (car cur) (first d)))
(nc (+ (cdr cur) (second d))))
(when (and (in-bounds? nr nc (rows g) (cols g))
(not (hash-has-key? dist (cons nr nc)))
(or (= (at g nr nc) 0) (= (at g nr nc) 2)))
(hash-set! dist (cons nr nc) (+ (hash-ref dist cur) 1))
(set! queue (append queue (list (cons nr nc))))))))
(bfs (+ step 1))))
(grid-from-fn (rows g) (cols g)
(lambda (r c)
(if (hash-has-key? dist (cons r c))
(let ((m (modulo (hash-ref dist (cons r c)) 3)))
(cond [(= m 0) 3] [(= m 1) 4] [else 5]))
(at g r c))))))Provenance
- Generator
- generators/9199b47fab1e/generator.py
- Notes and decisions
- generators/9199b47fab1e/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4a7acdbf7f6e9e36969e843b410bbb746252739953a686634f42e8983fd8cac6
- Rule hash
- b0749d721740
- Sources
- bank:54d03287ae93
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9199b47fab1e --count 1 --seed 20261108 --test 1