← a0076c1c960c · a0444de97675 →

a02bd9f85082

Read the contiguous four-color legend, then rotate the monochrome source motif by quarter turns around the gray pivot and recolor the four turns in legend order; later turns win at overlaps.

legend decodingrecoloringrotational symmetry

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* ((legend (take (filter (lambda (v) (not (= v 0))) (first g)) 4))
         (pivot (first (find-color g 5)))
         (cells (filter (lambda (cell)
                          (and (> (first cell) 0)
                               (not (member (third cell) (list 0 5)))))
                        (grid-cells g))))
    (define base
      (set-cell
        (for/fold ([out (empty-grid (rows g) (cols g) 0)])
                  ([v (in-list legend)] [c (in-naturals)])
          (set-cell out 0 c v))
        (first pivot) (second pivot) 5))
    (define (rot-cell cell turn)
      (let* ((r (first cell)) (c (second cell))
             (dr (- r (first pivot))) (dc (- c (second pivot)))
             (v (list-ref legend turn)))
        (cond [(= turn 0) (list (+ (first pivot) dr) (+ (second pivot) dc) v)]
              [(= turn 1) (list (+ (first pivot) dc) (- (second pivot) dr) v)]
              [(= turn 2) (list (- (first pivot) dr) (- (second pivot) dc) v)]
              [else (list (- (first pivot) dc) (+ (second pivot) dr) v)])))
    (for*/fold ([out base])
               ([turn (in-list (list 0 1 2 3))]
                [cell (in-list cells)])
      (let ((p (rot-cell cell turn)))
        (if (in-bounds? (first p) (second p) (rows g) (cols g))
            (set-cell out (first p) (second p) (third p))
            out)))))

Provenance

Generator
generators/a02bd9f85082/generator.py
Notes and decisions
generators/a02bd9f85082/notes.md
Review label
reviewed_safe
Generator SHA-256
0024cd60bc116abe69355c14fc0b5bcc4d51e03ca77c19b1bd55afd10ce024d8
Rule hash
8efe879cb0b7
Sources
bank:0527e10c7137
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate a02bd9f85082 --count 1 --seed 20261108 --test 1