← 28ba67946524 · 28cb867ad3f0 →
28c998e193d9
A canonical-scale 0-background grid contains two or three red (2) 4-connected outline components. For each component independently, fill every occupied row between that component's own leftmost and rightmost cells, painting the result cyan (8). Bent components have row spans that change with height, and components share rows without being bridged.
avoid cross-object bridgingobject decompositionrow-wise closure per component
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 (row-close cells) (remove-duplicates (flatmap (lambda (r) (let* ((cols (sort (map second (filter (lambda (p) (= (first p) r)) cells)) <))) (if (empty? cols) (list) (for/list ((c (in-range (first cols) (+ (last cols) 1)))) (list r c))))) (remove-duplicates (map first cells))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (paint-cells out (row-close (obj-cells obj)) 8))))
Provenance
- Generator
- generators/28c998e193d9/generator.py
- Notes and decisions
- generators/28c998e193d9/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4a7d0e96d04961bdc49f19ad190baf46222b14619c8133114403b14b280e4b11
- Rule hash
- b18cc934f1d8
- Sources
- bank:129d068bbf4e
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 28c998e193d9 --count 1 --seed 20261108 --test 1