← 1137ac565856 · 1189131c32a4 →

113d9bb402d3

Use the bounding box of all cyan (8) cells as a recolor zone; change blue (1) cells inside it to green (3), preserving every other cell.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (let* ((cyan-cells (filter (lambda (p) p)
                                      (for*/list ((r (range 0 h)) (c (range 0 w)))
                                        (and (= (at g r c) 8) (list r c)))))
                  (r1 (reduce (lambda (a b) (if (< a b) a b))
                              (first (first cyan-cells))
                              (map first (rest cyan-cells))))
                  (c1 (reduce (lambda (a b) (if (< a b) a b))
                              (second (first cyan-cells))
                              (map second (rest cyan-cells))))
                  (r2 (reduce (lambda (a b) (if (> a b) a b))
                              (first (first cyan-cells))
                              (map first (rest cyan-cells))))
                  (c2 (reduce (lambda (a b) (if (> a b) a b))
                              (second (first cyan-cells))
                              (map second (rest cyan-cells)))))
             (cellmap g
                      (r c v)
                      (if (and (>= r r1) (<= r r2) (>= c c1) (<= c c2) (= v 1)) 3 v))))))

Provenance

Generator
generators/113d9bb402d3/generator.py
Notes and decisions
generators/113d9bb402d3/notes.md
Review label
reviewed_safe
Generator SHA-256
9e8bb87bd4e4fdcac6af02d23c08e8bb676dac96ec4acbb9121de4ade733d3b1
Rule hash
3b4315aa79fc
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 113d9bb402d3 --count 1 --seed 20261108 --test 1