← 083ba0fc4534 · 089c14df9952 →

084de7b050a1

Colored dots reflect the entire original blue set. A dot uses the first blue in its column if one exists; otherwise it uses the first blue in its row. The blue-dot pair defines the reflection midpoint. Unaligned dots are inert, out-of-bounds reflected cells are clipped, and dots act in row-major order so later colored reflections overwrite earlier ones.

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* ((blues (find-color g 1))
                  (dots (filter (lambda (p)
                                  (let ((v (at g (first p) (second p))))
                                    (and (!= v 0) (!= v 1))))
                                (grid-positions g))))
             (foldl (lambda (dot acc)
                      (let* ((dr (first dot))
                             (dc (second dot))
                             (color (at g dr dc))
                             (h-blue (find (lambda (b) (= (second b) dc)) blues))
                             (v-blue (find (lambda (b) (= (first b) dr)) blues)))
                        (cond
                          (h-blue (let ((R2 (+ (first h-blue) dr)))
                                    (foldl (lambda (b a)
                                             (set-cell a
                                                       (- R2 (first b))
                                                       (second b)
                                                       color))
                                           acc
                                           blues)))
                          (v-blue (let ((C2 (+ (second v-blue) dc)))
                                    (foldl (lambda (b a)
                                             (set-cell a
                                                       (first b)
                                                       (- C2 (second b))
                                                       color))
                                           acc
                                           blues)))
                          (else acc))))
                    g
                    dots)))))

Provenance

Generator
generators/084de7b050a1/generator.py
Notes and decisions
generators/084de7b050a1/notes.md
Review label
reviewed_safe
Generator SHA-256
e9e4cab81b481534073f9f04311f84c83e1ccae8cef1e7080a5ba4caa16fcc26
Rule hash
e059ff61aa1e
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 084de7b050a1 --count 1 --seed 20261108 --test 1