← 6d095613d305 · 6d26bc40cbb2 →

6d19cd1698b1

Grow every horizontal nonzero run by one cell into each available zero flank.

growthrowsrunssame_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!
  (fold-cells
    g
    g
    (lambda (out r c v)
      (if (zero? v)
          out
          (let* ((with-left
                  (if (and (> c 0)
                           (zero? (at g r (- c 1))))
                      (set-cell out r (- c 1) v)
                      out)))
            (if (and (< (+ c 1) (cols g))
                     (zero? (at g r (+ c 1))))
                (set-cell with-left r (+ c 1) v)
                with-left))))))

Provenance

Generator
generators/6d19cd1698b1/generator.py
Notes and decisions
generators/6d19cd1698b1/notes.md
Review label
reviewed_safe
Generator SHA-256
72ed3ac218eddf56b680d8fc53dc841ec173bc8e43767811d535cbbcf05b5acf
Rule hash
c5e0c631ccf8
Sources
bank:a54e1d9e1d4b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6d19cd1698b1 --count 1 --seed 20261108 --test 1