← c00a9bcded8e · c0bd45c81959 →

c05faa9b2b85

Treat color 1 as walls. For every 4-connected non-wall region, fill its zero cells with the region's unique marker color when exactly one distinct marker color is present; leave seedless and mixed-color regions unchanged.

region fillingseed propagationwalls and chambers

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).

Reference rule (Racket)

(rule!
  (let ((dummy 0))
    (let loop ([remaining (filter-cells g (lambda (r c v) (not (= v 1))))] [out g])
      (if (empty? remaining)
          out
          (let* ((start (first remaining))
                 (region (connected-region g (first start) (second start)
                           (lambda (r c v) (not (= v 1))) 4))
                 (colors (remove-duplicates
                           (filter (lambda (v) (> v 1))
                                   (map (lambda (p) (at g (first p) (second p))) region))))
                 (next-remaining (filter (lambda (p) (not (member? p region))) remaining)))
            (if (= (length colors) 1)
                (loop next-remaining
                      (for/fold ([acc out]) ([p (in-list region)])
                        (if (= (at acc (first p) (second p)) 0)
                            (set-cell acc (first p) (second p) (first colors))
                            acc)))
                (loop next-remaining out)))))))

Provenance

Generator
generators/c05faa9b2b85/generator.py
Notes and decisions
generators/c05faa9b2b85/notes.md
Review label
reviewed_safe
Generator SHA-256
45f9a28efbeb04b199056b93d4db1ffd66e13b64384ae8449657d217dd650b27
Rule hash
080731f15c8c
Sources
bank:868e1a8cbe17
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c05faa9b2b85 --count 1 --seed 20261108 --test 1