← 36275402c6b2 · 364829da8490 →
36343a80035c
A zero-background grid contains colored wall components. Treat all nonzero cells together as walls, find every 4-connected zero region that does not touch the grid border, and output a fresh zero grid with exactly those enclosed cells colored 8. Wall colors and component membership do not matter; multiple components may cooperate to enclose one region.
extractionholestopology
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 (touches-border? cells grid) (any? (lambda (p) (or (= (first p) 0) (= (first p) (- (rows grid) 1)) (= (second p) 0) (= (second p) (- (cols grid) 1)))) cells)) (define (hole-regions grid) (filter (lambda (cells) (not (touches-border? cells grid))) (find-0-regions grid 0))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((region (in-list (hole-regions g)))) (paint-cells out region 8))))
Provenance
- Generator
- generators/36343a80035c/generator.py
- Notes and decisions
- generators/36343a80035c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6da08b295ba2866808f89ba6be339eff2c687a16e13bd52c9d64b58a273dee10
- Rule hash
- 933f8b2b4c4f
- Sources
- bank:e07509d599a1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 36343a80035c --count 1 --seed 20261108 --test 1