← ce0b0e843251 · ce3c6d414140 →

ce3c0854174d

A zero-background grid has a contiguous row-0 script and one connected, single-color template below a blank separator row. The fixed script legend is 1=clockwise quarter-turn, 2=half-turn, 3=left-right reflection, 4=transpose. Apply codes cumulatively to the current cropped template. Pack the resulting states left-to-right, top-aligned, with one blank column between states. Codes 5..7 supported by Racket are outside this sampler's declared 1..4 vocabulary. Templates use colors 5..9. Default three-demo lessons interleave asymmetric full-legend witnesses with canonical-profile and symmetric/rectangular examples.

scriptstransform_sequence

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 (crop-nz grid) (crop-to-content grid 0)) (define (transform-code grid code) (cond ((= code 1) (crop-nz (rotate-cw grid))) ((= code 2) (crop-nz (rotate-180 grid))) ((= code 3) (crop-nz (flip-lr grid))) ((= code 4) (crop-nz (transpose grid))) ((= code 5) (crop-nz grid)) ((= code 6) (crop-nz (flip-ud grid))) ((= code 7) (crop-nz (rotate-ccw grid))) (else (crop-nz grid)))) (define scripts (filter (lambda (v) (not (= v 0))) (row g 0))) (define cells (filter (lambda (p) (and (> (first p) 0) (not (= (at g (first p) (second p)) 0)))) (grid-positions g))) (define bb (bbox-of-cells cells)) (define start (subgrid g (first bb) (second bb) (third bb) (fourth bb))) (define states (let loop ((codes scripts) (cur start) (acc (list))) (if (empty? codes) (reverse acc) (let ((next (transform-code cur (first codes)))) (loop (rest codes) next (cons next acc)))))) (define out-h (apply max (map rows states))) (define out-w (+ (apply + (map cols states)) (max 0 (- (length states) 1)))) (let pack ((remaining states) (c0 0) (out (empty-grid out-h out-w 0))) (if (empty? remaining) out (let* ((sub (first remaining)) (next (for*/fold ((acc out)) ((r (in-range (rows sub))) (c (in-range (cols sub)))) (let ((v (at sub r c))) (if (= v 0) acc (set-cell acc r (+ c0 c) v)))))) (pack (rest remaining) (+ c0 (cols sub) 1) next))))))

Provenance

Generator
generators/ce3c0854174d/generator.py
Notes and decisions
generators/ce3c0854174d/notes.md
Review label
reviewed_safe
Generator SHA-256
42da7ef9b8d1112303ad4a1645bf5c4b6f87148f724fee63bc78ee5f93a9d5d8
Rule hash
442270b293a4
Sources
bank:037ff40eee92
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ce3c0854174d --count 1 --seed 20261108 --test 1