← 17b682bce66f · 17ea562973ac →

17de34436a9f

A single color-9 marker at a grid corner selects the rotation applied to a separate one-color connected body: top-left=identity, top-right=90° clockwise, bottom-right=180°, bottom-left=90° counter-clockwise. Remove the marker, crop the body to its bounding box, and emit the rotated crop.

parametric familybbox cropcontrol markersrotation

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 (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (crop-nonzero grid) (let ((cells (nonzero-cells grid))) (if (empty? cells) (list (list 0)) (let* ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))))) (define (t13c-transform grid code) (cond ((= code 1) grid) ((= code 2) (rotate-cw grid)) ((= code 3) (rotate-180 grid)) ((= code 4) (rotate-ccw grid)) ((= code 5) (flip-lr grid)) (else grid))) (let* ((h (rows g)) (w (cols g)) (marker-info (first (filter (lambda (entry) (= (at g (first entry) (second entry)) 9)) (list (list 0 0 1) (list 0 (- w 1) 2) (list (- h 1) (- w 1) 3) (list (- h 1) 0 4))))) (work (set-cell g (first marker-info) (second marker-info) 0)) (obj (crop-nonzero work))) (t13c-transform obj (third marker-info)))))

Provenance

Generator
generators/17de34436a9f/generator.py
Notes and decisions
generators/17de34436a9f/notes.md
Review label
reviewed_safe
Generator SHA-256
d8284f612540c12feaeafbc93dbf4d3b178cb6d8bbc87d0df787b38e843cbbde
Rule hash
9f94f78b9fd2
Sources
bank:0e3c36a9dbcc
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 17de34436a9f --count 1 --seed 20261108 --test 1