← 5295bc5ff1cb · 52ac31926856 →
529bd4803bcc
Gray walls partition an unframed 0-background grid into 4-connected compartments. Flood a compartment with its seed color exactly when it contains one seed cell from {1,2,3}; clear zero-seed and multi-seed compartments. Canonical full-row/full-column dividers alternate with local separators, and default lessons include a three-seed negative.
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 (passable? r c v) (not (= v 5)))
(define seen (make-hash))
(define comps (list))
(for ([p (in-list (grid-positions g))])
(let ((r (first p)) (c (second p)))
(when (and (not (hash-has-key? seen p)) (passable? r c (at g r c)))
(let ((comp (connected-region g r c passable?)))
(for ([q (in-list comp)]) (hash-set! seen q #t))
(set! comps (cons comp comps))))))
(for/fold ([out (grid-from-fn (rows g) (cols g) (lambda (r c) (if (= (at g r c) 5) 5 0)))]) ([comp comps])
(let ((seeds (filter (lambda (p) (let ((v (at g (first p) (second p)))) (or (= v 1) (= v 2) (= v 3)))) comp)))
(if (= (length seeds) 1)
(paint-cells out comp (at g (first (first seeds)) (second (first seeds))))
out)))))Provenance
- Generator
- generators/529bd4803bcc/generator.py
- Notes and decisions
- generators/529bd4803bcc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c599785ba7e3c2093bc835ec033d259570522eb82b69cc91662c9b1355bc1cc2
- Rule hash
- 222cee10aaec
- Sources
- bank:38166e88069b
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 529bd4803bcc --count 1 --seed 20261108 --test 1