← 538503abef57 · 53de1fcb2e13 →
539d4ac45311
0-bg grid (h~5-10, w~8-16) with 2-5 ENDPOINT PAIRS placed on distinct rows. Each pair places two SAME-COLOR cells on the SAME ROW at columns c1 < c2 with at least 1 empty cell between them. Different pairs use distinct non-bg colors. Rule: for every row that contains exactly two same-color cells at columns c1 < c2, FILL every cell at columns c1+1 .. c2-1 in that row with the pair's color (CONNECT the endpoints into a solid HORIZONTAL BAR). Endpoints stay; other rows untouched. Net: each pair of isolated row endpoints becomes a continuous colored horizontal line spanning the gap.
parametric familyendpointsrowssame_size
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)) (for/fold ((out g)) ((r (in-range (rows g)))) (let ((colors (remove-duplicates (filter (lambda (v) (not (= v 0))) (row g r))))) (for/fold ((acc out)) ((color (in-list colors))) (let ((cols-hit (filter (lambda (c) (= (at g r c) color)) (range 0 (cols g))))) (if (= (length cols-hit) 2) (let ((c1 (first cols-hit)) (c2 (second cols-hit))) (if (all? (lambda (c) (= (at g r c) 0)) (range (+ c1 1) c2)) (paint-cells acc (for/list ((c (in-range c1 (+ c2 1)))) (list r c)) color) acc)) acc)))))))
Provenance
- Generator
- generators/539d4ac45311/generator.py
- Notes and decisions
- generators/539d4ac45311/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 668397c8c5ef7e0e6aaa2436648e9709f3c107f57ab1b2a2c9ebbb5cca808876
- Rule hash
- 9428ec2bfb43
- Sources
- bank:ecfb302aa617
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 539d4ac45311 --count 1 --seed 20261108 --test 1