← 761a24339019 · 76aff6297765 →

764b6b9e7771

A red(2) source and adjacent blue(1) heading launch a beam. Empty path cells become 8; diagonal mirrors 4/6 turn the beam according to their orientation; gray(5) blocks it. Every requested mirror lies on a compact serpentine route; 3+ mirror routes mix relative turn directions.

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* ((start (first (find-color g 2)))
         (arrow (first (find-color g 1))))
    (define visited (make-hash))
    (let loop ((r (first start)) (c (second start))
               (dr (- (first arrow) (first start)))
               (dc (- (second arrow) (second start)))
               (out g))
      (let ((state (list r c dr dc)))
        (if (hash-has-key? visited state)
            out
            (begin
              (hash-set! visited state #t)
              (let ((nr (+ r dr)) (nc (+ c dc)))
                (cond
                  [(not (in-bounds? nr nc (rows g) (cols g))) out]
                  [(= (at g nr nc) 5) out]
                  [else
                   (let* ((cell (at g nr nc))
                          (out2 (if (= cell 0) (set-cell out nr nc 8) out))
                          (ndr (cond [(= cell 4) (- dc)] [(= cell 6) dc] [else dr]))
                          (ndc (cond [(= cell 4) (- dr)] [(= cell 6) dr] [else dc])))
                     (loop nr nc ndr ndc out2))]))))))))

Provenance

Generator
generators/764b6b9e7771/generator.py
Notes and decisions
generators/764b6b9e7771/notes.md
Review label
reviewed_safe
Generator SHA-256
3f2d2c7dd3b1ad50c433bd9f1d7f6e9714e353f722c90485a5211bc8b1b239ab
Rule hash
b28f2ec65f40
Sources
bank:3cb9777539c7
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 764b6b9e7771 --count 1 --seed 20261108 --test 1