← b7e4aaffabac · b7ff231aab1a →

b7fbb716d189

A unique token 1..4 appears in any corner, independently of its value. A connected 5..9-cell motif in 2..5 colors from 5..9 appears in the interior. Crop the motif and transform it according to the token: 1=identity, 2=rotate clockwise, 3=rotate 180 degrees, 4=transpose.

croppingrotationsymbol decoding

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 ((dummy 0))
    (define (transform-code grid code)
      (cond [(= code 1) grid]
            [(= code 2) (rotate-cw grid)]
            [(= code 3) (rotate-180 grid)]
            [(= code 4) (transpose grid)]
            [(= code 5) (flip-lr grid)]
            [else (flip-ud grid)]))
    (let* ((token-hits (filter (lambda (cell) (member? (third cell) (list 1 2 3 4))) (grid-cells g)))
           (token (if (empty? token-hits) 1 (third (last token-hits))))
           (cells (filter-cells g (lambda (r c v) (and (not (= v 0)) (not (member? v (list 1 2 3 4)))))))
           (bb (bbox-of-cells cells))
           (crop (subgrid g (first bb) (second bb) (third bb) (fourth bb))))
      (transform-code crop token))))

Provenance

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