← 250925d67253 · 252ff772a276 →
250a48232c34
Color-coded anchors stamp 0/90/180/270 degree rotations of a gray template.
parametric familymulti-anchor stampingrotation codestemplate extraction
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).
Reference rule (Racket)
(rule! (let ((dummy 0)) (define (objs-of color) (filter (lambda (obj) (= (obj-color obj) color)) (objects g 0))) (define (rotate-norm cells k) (let loop ((cur (normalize-cells cells)) (n (modulo k 4))) (if (= n 0) (normalize-cells cur) (let* ((max-r (apply max (map first cur))) (rot (map (lambda (p) (list (second p) (- max-r (first p)))) cur))) (loop (normalize-cells rot) (- n 1)))))) (define (copy-cells out cells color r0 c0) (for/fold ((acc out)) ((p (in-list cells))) (let ((r (+ r0 (first p))) (c (+ c0 (second p)))) (if (in-bounds? r c (rows out) (cols out)) (set-cell acc r c color) acc)))) (let* ((template (first (sort (objs-of 5) (lambda (a b) (> (obj-size a) (obj-size b)))))) (tmpl (normalize-cells (obj-cells template))) (anchors (filter (lambda (cell) (member? (third cell) (list 1 2 3 4))) (grid-cells g)))) (for/fold ((out g)) ((cell (in-list anchors))) (copy-cells out (rotate-norm tmpl (- (third cell) 1)) (third cell) (first cell) (second cell))))))
Provenance
- Generator
- generators/250a48232c34/generator.py
- Notes and decisions
- generators/250a48232c34/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f10ba457c7cbaa30ebaffca4c0f4a93805814710ea45367566637412cd782dcd
- Rule hash
- 04793d6ba90d
- Sources
- bank:b4ec712e8849
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 250a48232c34 --count 1 --seed 20261108 --test 1