← 34569d6118b3 · 346c1552c4eb →

346480121fcb

A selector marker at the upper-left names one body object's color and a transform marker at the upper-right names the operation. Crop the unique selector-colored 4-connected body object, apply key 1=identity, 2=rotate-CW, 3=flip-LR, 4=transpose, or 5=rotate-180, then crop to content.

parametric familykeysresizeselectiontransform

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* ((sel (at g 0 0))
         (key (at g 0 (- (cols g) 1)))
         (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1)))
         (chosen (first (filter (lambda (obj) (= (obj-color obj) sel)) (objects body 0))))
         (crop (subgrid body (obj-r1 chosen) (obj-c1 chosen) (obj-r2 chosen) (obj-c2 chosen)))
         (tf (cond [(= key 2) (rotate-cw crop)]
                   [(= key 3) (flip-lr crop)]
                   [(= key 4) (transpose crop)]
                   [(= key 5) (rotate-180 crop)]
                   [else crop])))
    (crop-to-content tf)))

Provenance

Generator
generators/346480121fcb/generator.py
Notes and decisions
generators/346480121fcb/notes.md
Review label
reviewed_safe
Generator SHA-256
e33969f2ff60ff05b500af9878215b0a853a762cc417f44f5183a6a8f4b77909
Rule hash
33dfe7b5a888
Sources
bank:a54e1d9e1d4b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 346480121fcb --count 1 --seed 20261108 --test 1