← ec65f8d7bf45 · ec9cf2c80d58 →

ec9340d27f7e

On a zero background, fill every zero whose immediate horizontal neighbours are the same non-zero color. Read all matches from the original input. Unequal horizontal neighbours, vertical matches, wider gaps, and already occupied midpoints remain unchanged.

gap_fillingrow_patterns

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))) (c (in-range 1 (- (cols g) 1)))) (if (and (= (at g r c) 0) (not (= (at g r (- c 1)) 0)) (= (at g r (- c 1)) (at g r (+ c 1)))) (set-cell out r c (at g r (- c 1))) out))))

Provenance

Generator
generators/ec9340d27f7e/generator.py
Notes and decisions
generators/ec9340d27f7e/notes.md
Review label
reviewed_safe
Generator SHA-256
4843969353f14d101f0281ccf9e6e99b59f832392ac8b1f2181ac9cf05b72bc4
Rule hash
80ec61287499
Sources
bank:e1d39660275b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ec9340d27f7e --count 1 --seed 20261108 --test 1