← 28e5fbc279ab · 297c05190f7c →
28f91ad53b1b
Canonical-style zero outer border and gray inner chamber frame, with 2..5 distinct one-cell color seeds. Open, wall-detour, finite-tie, seedless-room, and mixed-room profiles teach wall-aware nearest-seed fill; ties choose the smaller color and components without seeds stay zero.
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 seeds (filter (lambda (p) (let ((v (at g (first p) (second p)))) (and (not (= v 0)) (not (= v 5))))) (grid-positions g)))
(define (dist-from start)
(define dist (make-hash))
(define queue (list start))
(hash-set! dist start 0)
(define (bfs)
(unless (empty? queue)
(let* ((p (first queue)) (r (first p)) (c (second p)) (d0 (hash-ref dist p)))
(set! queue (rest queue))
(for ([d (in-list cardinal-deltas)])
(let ((nr (+ r (first d))) (nc (+ c (second d))))
(when (and (in-bounds? nr nc (rows g) (cols g))
(not (= (at g nr nc) 5))
(not (hash-has-key? dist (list nr nc))))
(hash-set! dist (list nr nc) (+ d0 1))
(set! queue (append queue (list (list nr nc)))))))
(bfs))))
(bfs)
dist)
(define seed-dists (map (lambda (p) (list p (at g (first p) (second p)) (dist-from p))) seeds))
(grid-from-fn (rows g) (cols g)
(lambda (r c)
(if (= (at g r c) 5)
5
(let* ((p (list r c))
(cands (filter (lambda (sd) (hash-has-key? (third sd) p)) seed-dists)))
(if (empty? cands)
0
(second (first (sort cands
(lambda (a b)
(let ((da (hash-ref (third a) p)) (db (hash-ref (third b) p)))
(if (= da db) (< (second a) (second b)) (< da db))))))))))))))Provenance
- Generator
- generators/28f91ad53b1b/generator.py
- Notes and decisions
- generators/28f91ad53b1b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 74d9067b1305a5990585f0ddd5739405b51d92c2d46f8eeb4379a6632d2e2dd3
- Rule hash
- 443a7da44ab8
- Sources
- bank:0d92044d8ccc
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 28f91ad53b1b --count 1 --seed 20261108 --test 1