← ad5a6c1521b3 · ad8f89160989 →
ad8f72a318b2
Read a unary blue selector from row 0 columns 0..3, transform code 1..5 from column 5, and target color from column 7. Select one of four 4x4 monochrome panels, crop its nonzero support, apply identity / clockwise / 180 / counter-clockwise / left-right reflection, and recolor the result.
control-strip interpretationmulti-step transformpanel library decoding
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 (t10b-recolor grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (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))) (define (t12b-crop-panel grid top left h w) (subgrid grid top left (- (+ top h) 1) (- (+ left w) 1))) (define (t12b-panel-positions-2x2) (list (list 2 0) (list 2 5) (list 7 0) (list 7 5))) (let* ((index (count-where (lambda (v) (= v 1)) (take (row g 0) 4))) (code (at g 0 5)) (target (at g 0 7)) (pos (list-ref (t12b-panel-positions-2x2) (- index 1))) (panel (t12b-crop-panel g (first pos) (second pos) 4 4))) (t10b-recolor (t13c-transform (crop-nonzero panel) code) target))))
Provenance
- Generator
- generators/ad8f72a318b2/generator.py
- Notes and decisions
- generators/ad8f72a318b2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7639adca17bc2bd08b9ac74df221e5674dd476ed055dacaf6874562eeb7149d3
- Rule hash
- 5d4b4a902077
- Sources
- bank:580a8993495c
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ad8f72a318b2 --count 1 --seed 20261108 --test 1