← 8c6fbfbe20d4 · 8c7daa3d3cef →
8c73e339d80e
0-bg grid (h~8-10, w~9-11) with: (a) one BASE motif in color 3 (green), 3-4 cells, placed in the upper-left region; (b) 2-3 MARKER PAIRS in the right region: each pair = a CODE cell (color in {2, 4, 6, 9}) immediately to the LEFT of a color-1 (blue) MARKER cell. Rule: extract base = normalized cells of color 3. For each color-1 marker at (r, c), look at code = g[r][c-1]. Decode code → rotation count: 2→0, 4→1, 6→2, 9→3. Rotate base CW that many times. Stamp the rotated base at the marker position (anchor at marker's (r, c)), painted color 8 (cyan). Original base, markers, codes all replaced by 0 in output except where stamped cells overwrite.
parametric familymulti-anchor constructionrotationtemplate 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).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (pt< a b)
(if (= (first a) (first b)) (< (second a) (second b)) (< (first a) (first b))))
(define (normalize pts)
(let* ((bb (bbox-of-cells pts))
(r0 (first bb))
(c0 (second bb)))
(sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) pts) pt<)))
(define (rot1 pts)
(let ((maxr (apply max (map first pts))))
(normalize (map (lambda (p) (list (second p) (- maxr (first p)))) pts))))
(define (rotate pts k)
(let loop ([n (modulo k 4)] [acc pts])
(if (= n 0) acc (loop (- n 1) (rot1 acc)))))
(define (code-rot v)
(cond [(= v 2) 0] [(= v 4) 1] [(= v 6) 2] [(= v 9) 3] [else #f]))
(define base (normalize (find-color g 3)))
(fold-cells g (empty-grid (rows g) (cols g) 0)
(lambda (out r c v)
(if (and (= v 1) (> c 0))
(let ((rot (code-rot (at g r (- c 1)))))
(if (eq? rot #f)
out
(for/fold ([acc out]) ([p (in-list (rotate base rot))])
(let ((rr (+ r (first p))) (cc (+ c (second p))))
(if (in-bounds? rr cc (rows g) (cols g))
(set-cell acc rr cc 8)
acc)))))
out)))))Provenance
- Generator
- generators/8c73e339d80e/generator.py
- Notes and decisions
- generators/8c73e339d80e/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 51a65353eb668fb8f768092792909b479dc590d9e049767d5ce23c0fd77446da
- Rule hash
- d2185c0081d9
- Sources
- bank:534c4be491a1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8c73e339d80e --count 1 --seed 20261108 --test 1