← f361853c0fcd · f41ae450c30b →
f38ce802fe57
Build a color-5 outer frame and a recursive guillotine partition with three through six rectangular rooms. Partial wall segments terminate in T-junctions rather than forcing a Cartesian lattice. Place one colored seed in one room; only that connected room fills with the seed color.
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 ((seeds (filter (lambda (cell)
(let ((v (third cell)))
(or (= v 2) (= v 3) (= v 4) (= v 6) (= v 7) (= v 8))))
(grid-cells g))))
(if (empty? seeds)
g
(let* ((seed (first seeds))
(color (third seed))
(seen (make-hash)))
(define queue (list (cons (first seed) (second seed))))
(hash-set! seen (first queue) #t)
(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? seen (cons nr nc)))
(= (at g nr nc) 0))
(hash-set! seen (cons nr nc) #t)
(set! queue (append queue (list (cons nr nc))))))))
(bfs (+ step 1))))
(for/fold ([out g]) ([key (in-list (hash-keys seen))])
(if (= (at g (car key) (cdr key)) 0)
(set-cell out (car key) (cdr key) color)
out))))))Provenance
- Generator
- generators/f38ce802fe57/generator.py
- Notes and decisions
- generators/f38ce802fe57/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- d1f81a6a11ef5f2bdafd588a92be617fe7e77e0b1f6bfd6347626b395e92d340
- Rule hash
- 8dfb2acf65d6
- Sources
- bank:3b7f019624a4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f38ce802fe57 --count 1 --seed 20261108 --test 1