← 85d01dd02c6d · 85dcd5c922b9 →

85d3a8e1aa7f

Square odd grid; center cell = key_color; rule computes avg position of all key-color cells, finds the quadrant it falls into, emits a diagonal of key_color from center toward that quadrant on a 7-bg grid.

parametric family

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* ((cr (/ h 2))
                  (cc (/ w 2))
                  (kc (at g cr cc))
                  (cells (find-color g kc))
                  (avg-r (/ (for/sum ((p cells)) (first p)) (length cells)))
                  (avg-c (/ (for/sum ((p cells)) (second p)) (length cells)))
                  (dr (if (< avg-r cr) -1 1))
                  (dc (if (< avg-c cc) -1 1)))
             (cellmap g
                      (r c v)
                      (if (and
                            (= (* (- r cr) dc) (* (- c cc) dr))
                            (>= (* (- r cr) dr) 0))
                          kc
                          7))))))

Provenance

Generator
generators/85d3a8e1aa7f/generator.py
Notes and decisions
generators/85d3a8e1aa7f/notes.md
Review label
reviewed_safe
Generator SHA-256
cc7f5ef27ad7f71bfb784c1c68e43580f5626b2f7c22bb265c795972ff3708f3
Rule hash
35e6e20d2414
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 85d3a8e1aa7f --count 1 --seed 20261108 --test 1