← 9fe97c2dd8a4 · 9ffa0c8841bb →

9ff30d18e156

Fill each repeated color's row-local span; sample endpoints, multi-hit and disjoint-color rows.

endpoint reasoningrow completionsame-size fill

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!
  (let ((dummy 0))
    (define (fill-one-row out r color)
      (let ((cols-hit (map second (filter-cells g (lambda (rr c v) (and (= rr r) (= v color)))))))
        (if (< (length cols-hit) 2)
            out
            (for/fold ([acc out]) ([c (in-range (apply min cols-hit) (+ (apply max cols-hit) 1))])
              (set-cell acc r c color)))))
    (for/fold ([out g]) ([r (in-range (rows g))])
      (for/fold ([acc out]) ([color (in-list (remove-duplicates (filter (lambda (v) (not (= v 0))) (row g r))))])
        (fill-one-row acc r color)))))

Provenance

Generator
generators/9ff30d18e156/generator.py
Notes and decisions
generators/9ff30d18e156/notes.md
Review label
reviewed_safe
Generator SHA-256
b1f2c9d0e06f5aa88208443adc11b990d27d9ea2c4b8b9ae86f15b957ec5a323
Rule hash
efbc8aee85e7
Sources
bank:868e1a8cbe17
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9ff30d18e156 --count 1 --seed 20261108 --test 1