← 9acebbb8a360 · 9aed2df94248 →
9adaf46a8128
Top template (color 2 cells) + full-5 row separator + bottom canvas with transform-command markers.
parametric familyextract_templatemarker_transform_stamp
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 sep (first (filter (lambda (r) (all? (lambda (v) (= v 5)) (row g r))) (range 0 (rows g)))))
(define top (subgrid g 0 0 (- sep 1) (- (cols g) 1)))
(define cells (filter (lambda (p) (not (= (at top (first p) (second p)) 0))) (grid-positions top)))
(define bb (bbox-of-cells cells))
(define template (subgrid top (first bb) (second bb) (third bb) (fourth bb)))
(define out-h (- (rows g) sep 1))
(define (transform marker)
(cond [(= marker 1) template]
[(= marker 2) (rotate-cw template)]
[(= marker 3) (rotate-180 template)]
[(= marker 4) (transpose template)]
[else template]))
(for*/fold ([out (empty-grid out-h (cols g) 0)])
([r (in-range (+ sep 1) (rows g))]
[c (in-range (cols g))])
(let ((marker (at g r c)))
(if (member marker (list 1 2 3 4))
(let* ((tr (transform marker))
(rr0 (- (- r (+ sep 1)) (quotient (rows tr) 2)))
(cc0 (- c (quotient (cols tr) 2))))
(for*/fold ([acc out])
([i (in-range (rows tr))]
[j (in-range (cols tr))])
(let ((rr (+ rr0 i)) (cc (+ cc0 j)) (v (at tr i j)))
(if (and (not (= v 0)) (in-bounds? rr cc out-h (cols g)))
(set-cell acc rr cc v)
acc))))
out)))))Provenance
- Generator
- generators/9adaf46a8128/generator.py
- Notes and decisions
- generators/9adaf46a8128/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 0fa65ac142ad28e1d27b1974f71fb9ecc43192730b80168dff0d94ef7f5923c9
- Rule hash
- 97f1e4b799fa
- Sources
- bank:f4425e302da7
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9adaf46a8128 --count 1 --seed 20261108 --test 1