← 5c9fd75979d1 · 5cb854cd43c4 →

5ca74a85bc85

Copy the colored source shape across the full-height maroon vertical divider.

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 ((divs (filter (lambda (c) (all? (lambda (r) (= (at g r c) 9)) (range 0 (rows g)))) (range 0 (cols g)))))
    (if (empty? divs)
        g
        (let ((div (first divs)))
          (for/fold ([out g]) ([cell (in-list (grid-cells g))])
            (let* ((r (first cell))
                   (c (second cell))
                   (v (third cell))
                   (mc (- (* 2 div) c)))
              (if (and (not (= v 0)) (not (= v 9))
                       (in-bounds? r mc (rows g) (cols g))
                       (not (= mc div))
                       (= (at out r mc) 0))
                  (set-cell out r mc v)
                  out)))))))

Provenance

Generator
generators/5ca74a85bc85/generator.py
Notes and decisions
generators/5ca74a85bc85/notes.md
Review label
reviewed_safe
Generator SHA-256
8c00107d7e61cedb1139c952d86b804789650a8c7a37ea7b826ebe6ba00cbf06
Rule hash
f57d1e04d7d6
Sources
bank:3b7f019624a4
Lesson seeds
20261109, 20261110, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5ca74a85bc85 --count 1 --seed 20261109 --test 1