← 52d56c2a0191 · 531905d00c4b →

530e5e07db4c_2

Connected red/green component recolor with a four-profile curriculum that refutes four plausible shortcut rules.

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 (grid)
  ;; Position of the first red(2) cell
  (let* ((red-seed (first (find-color grid 2)))
         ;; Position of the first green(3) cell
         (blue-seed (first (find-color grid 3))))
    (define (walkable? row col value)
      (or (= value 2) (= value 3) (= value 5)))
    (define component
      (connected-region grid (fst red-seed) (snd red-seed) walkable? 4))
    (define reaches-blue
      (find (lambda (position)
              (and (= (first position) (fst blue-seed))
                   (= (second position) (snd blue-seed))))
            component))
    (if reaches-blue
        (recolor-cells grid
          (filter (lambda (position)
                    (= (cell-at grid (first position) (second position)) 5))
                  component)
          4)
        grid))))

Provenance

Generator
generators/530e5e07db4c_2/generator.py
Notes and decisions
generators/530e5e07db4c_2/notes.md
Review label
reviewed_safe
Generator SHA-256
0d5a119606da8985f536434281b75b67c69eff76f37f6ac105cadf0e1698f416
Rule hash
646a78ec371e
Sources
custom
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 530e5e07db4c_2 --count 1 --seed 20261108 --test 1