← e68b376152cd · e6cf1120a17d →

e69a3b575440

A command token at (0,0) selects a transform. Remove the token, crop the single connected interior object, and apply command 1=id, 2=cw, 3=180, 4=transpose, 5=flip-lr, 6=flip-ud, 7=transpose, or 8=anti-transpose.

command tokencroppingrotation

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 (anti-transpose grid) (rotate-180 (transpose grid)))
    (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)]
            [(= code 6) (flip-ud grid)]
            [(= code 7) (transpose grid)]
            [else (anti-transpose grid)]))
    (let* ((cmd (at g 0 0))
           (clean (set-cell g 0 0 0)))
      (transform-code (crop-to-content clean) cmd))))

Provenance

Generator
generators/e69a3b575440/generator.py
Notes and decisions
generators/e69a3b575440/notes.md
Review label
reviewed_safe
Generator SHA-256
56d675c33e26030122624b69679f985a087b31e0202999e746c4abca86b1dbc3
Rule hash
8710239f76c6
Sources
bank:ba76b91f26f9
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e69a3b575440 --count 1 --seed 20261108 --test 1