← 2ab8c1aaa3e2 · 2b34f380ed25 →
2b3472c73d30
Fill the blank horizontal interval between the two occurrences of each nonzero row-local color; preserve colors with any other count or with a nonzero blocker between their two occurrences.
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 ((cs (filter (lambda (c) (= (at g r c) color)) (range (cols g))))) (if (and (= (length cs) 2) (all? (lambda (c) (= (at g r c) 0)) (range (+ (apply min cs) 1) (apply max cs)))) (paint-cells acc (map (lambda (c) (list r c)) (range (apply min cs) (+ (apply max cs) 1))) color) acc)))))))
Provenance
- Generator
- generators/2b3472c73d30/generator.py
- Notes and decisions
- generators/2b3472c73d30/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ad402fc1ed1aab6efd2cd5ffb3363ca4f0e0fae10ab6509a0fc45c18772e8bfa
- Rule hash
- 9f6d9dc4a68d
- Sources
- bank:b64eb6bd4039
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2b3472c73d30 --count 1 --seed 20261108 --test 1