← 3a6ce35e3549 · 3ab6810fc781 →

3a96552d8c7c

Rows with exactly two separated 5s and an all-zero interior are filled with 3 between the endpoints; blocked, wrong-color, and three-5 rows stay unchanged.

gap fillingrowwise pairingsame-row reasoning

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).

Reference rule (Racket)

(rule!
  (for/fold ([out g]) ([r (in-range (rows g))])
    (let ((cols-hit (for/list ([c (in-range (cols g))] #:when (= (at g r c) 5)) c)))
      (if (= (length cols-hit) 2)
          (let ((c1 (first cols-hit)) (c2 (second cols-hit)))
            (if (and (> c2 (+ c1 1))
                     (all? (lambda (c) (= (at g r c) 0)) (range (+ c1 1) c2)))
                (for/fold ([acc out]) ([c (in-range (+ c1 1) c2)])
                  (set-cell acc r c 3))
                out))
          out))))

Provenance

Generator
generators/3a96552d8c7c/generator.py
Notes and decisions
generators/3a96552d8c7c/notes.md
Review label
reviewed_safe
Generator SHA-256
310f5886b8ae3dfd5bdb47dc29df256edc2e56c258e6bd29106b2b3c4d9e60de
Rule hash
91ba1164c014
Sources
bank:e06827914c5c
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 3a96552d8c7c --count 1 --seed 20261108 --test 1