← edb34dd65185 · edf83166c155 →

edb55a59dc46

Cycle the top row's first two nonzero colors along four zero-only rays from the first color-9 seed.

cardinal rayslegend readingperiodic painting

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).

Reference rule (Racket)

(rule!
  (let* ((palette (take (filter (lambda (v) (not (= v 0))) (row g 0)) 2))
         (seed (first (find-color g 9))))
    (define dirs (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1)))
    (define (draw-dir out d)
      (let walk ([acc out]
                 [r (+ (first seed) (first d))]
                 [c (+ (second seed) (second d))]
                 [step 0])
        (if (in-bounds? r c (rows g) (cols g))
            (let ((next (if (= (at acc r c) 0)
                            (set-cell acc r c (nth palette (modulo step (length palette))))
                            acc)))
              (walk next (+ r (first d)) (+ c (second d)) (+ step 1)))
            acc)))
    (for/fold ([out g]) ([d (in-list dirs)])
      (draw-dir out d))))

Provenance

Generator
generators/edb55a59dc46/generator.py
Notes and decisions
generators/edb55a59dc46/notes.md
Review label
reviewed_safe
Generator SHA-256
b3068b1e8cf838e40afe90d836deb3df0f95a718f3d599e139c4e49f996c37e8
Rule hash
200170356545
Sources
bank:fd166f81148e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate edb55a59dc46 --count 1 --seed 20261108 --test 1