← d3ae93aa8d37 · d4171e13daca →

d3c9fc4479d8

Read row 0 as adjacent old->new color pairs, drop the legend row, and replace each body source color once while preserving unmapped cells.

parametric familylegendmappingrecolorresize

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 ((mapping (make-hash)))
    (let loop ([c 0])
      (when (< (+ c 1) (cols g))
        (if (and (not (= (at g 0 c) 0)) (not (= (at g 0 (+ c 1)) 0)))
            (begin (hash-set! mapping (at g 0 c) (at g 0 (+ c 1))) (loop (+ c 2)))
            (loop (+ c 1)))))
    (grid-from-fn (- (rows g) 1) (cols g)
      (lambda (r c)
        (let ((v (at g (+ r 1) c)))
          (hash-ref mapping v v))))))

Provenance

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