← 2f4a0e633093 · 2f7883fbd26f →
2f58238f8bb6
Read row-0 keys 1=identity, 2=clockwise, 3=180 degrees, 4=left-right flip; crop one monochrome body template and form a top-aligned strip with one-column gaps. Varied connected templates alternate with asymmetric examples that teach every key and repeated commands.
key_rowoutput_resizetemplatetransforms
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 ((dummy 0)) (define (component-grid-from obj source) (for/fold ((out (empty-grid (+ 1 (- (obj-r2 obj) (obj-r1 obj))) (+ 1 (- (obj-c2 obj) (obj-c1 obj))) 0))) ((p (in-list (obj-cells obj)))) (set-cell out (- (first p) (obj-r1 obj)) (- (second p) (obj-c1 obj)) (at source (first p) (second p))))) (define (paste-crop grid shape top left) (for*/fold ((out grid)) ((r (in-range (rows shape))) (c (in-range (cols shape)))) (let ((v (at shape r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows grid) (cols grid))) (set-cell out rr cc v) out)))) (define (transform-by-key key shape) (cond ((= key 1) shape) ((= key 2) (rotate-cw shape)) ((= key 3) (rotate-180 shape)) ((= key 4) (flip-lr shape)) (else shape))) (define (gallery-top shapes) (let* ((h (apply max (map rows shapes))) (w (+ (apply + (map cols shapes)) (max 0 (- (length shapes) 1))))) (let loop ((remaining shapes) (left 0) (out (empty-grid h w 0))) (if (empty? remaining) out (let ((shape (first remaining))) (loop (rest remaining) (+ left (cols shape) 1) (paste-crop out shape 0 left))))))) (let* ((keys (filter (lambda (v) (not (= v 0))) (first g))) (sub (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (template (component-grid-from (first (objects sub 0)) sub)) (variants (map (lambda (k) (transform-by-key k template)) keys))) (gallery-top variants))))
Provenance
- Generator
- generators/2f58238f8bb6/generator.py
- Notes and decisions
- generators/2f58238f8bb6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- dc08e3b30b8942706e33e018ebaf4aeca7c4733eb3f732e601e34e6f0a46d47a
- Rule hash
- 6da56985f4bc
- Sources
- bank:04c7711cefc4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2f58238f8bb6 --count 1 --seed 20261108 --test 1