← 9a1459fe40d0 · 9a7579840f41 →

9a35b20efa99

One color-9 anchor and one monochrome asymmetric connected template. Crop the template and stamp its 0/90/180/270-degree rotations in the upper-left, upper-right, lower-left, and lower-right anchor quadrants.

parametric familyrotationstampingtransform

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 (paste-crop grid crop r0 c0) (for*/fold ((out grid)) ((r (in-range (rows crop))) (c (in-range (cols crop)))) (let ((v (at crop r c)) (rr (+ r0 r)) (cc (+ c0 c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows grid) (cols grid))) (set-cell out rr cc v) out)))) (define (positions-of-color grid color) (filter (lambda (p) (= (at grid (first p) (second p)) color)) (grid-positions grid))) (define (normalize-crop grid) (crop-to-content grid 0)) (let* ((anchors (positions-of-color g 9)) (anchor (first anchors)) (gg (set-cell g (first anchor) (second anchor) 0)) (crop (normalize-crop gg)) (ch (rows crop)) (cw (cols crop)) (variants (list crop (rotate-cw crop) (rotate-180 crop) (rotate-ccw crop))) (offsets (list (list (- 0 ch 1) (- 0 cw 1)) (list (- 0 ch 1) 1) (list 1 (- 0 cw 1)) (list 1 1))) (base (set-cell (empty-grid (rows g) (cols g) 0) (first anchor) (second anchor) 9))) (for/fold ((out base)) ((var (in-list variants)) (off (in-list offsets))) (paste-crop out var (+ (first anchor) (first off)) (+ (second anchor) (second off)))))))

Provenance

Generator
generators/9a35b20efa99/generator.py
Notes and decisions
generators/9a35b20efa99/notes.md
Review label
reviewed_safe
Generator SHA-256
235c463d52c9fb3d37e4b374011a16dbf8302e08b386f30080252b9a863d2779
Rule hash
019ee1056dff
Sources
bank:ece0cc5101a3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9a35b20efa99 --count 1 --seed 20261108 --test 1