← 2f8ecb96521c · 2fb0197be694 →
2f91d0756f23
Count the color-1 markers in row 0. Around the unique color-9 anchor, paint each coloured seed at its original offset and its first k-1 quarter-turn offsets under (dr,dc)->(dc,-dr); discard the header.
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 (e11-rotate-offset dr dc k) (if (= k 0) (list dr dc) (e11-rotate-offset dc (- dr) (- k 1)))) (let* ((k (length (filter (lambda (v) (= v 1)) (first g)))) (anchor (first (find-color g 9))) (cells (filter values (for*/list ((r (in-range 1 (rows g))) (c (in-range (cols g)))) (let ((v (at g r c))) (if (member? v (list 0 9)) #f (list r c v))))))) (for/fold ((out (set-cell (empty-grid (rows g) (cols g) 0) (first anchor) (second anchor) 9))) ((cell (in-list cells))) (for/fold ((acc out)) ((t (in-range k))) (let* ((off (e11-rotate-offset (- (first cell) (first anchor)) (- (second cell) (second anchor)) t)) (rr (+ (first anchor) (first off))) (cc (+ (second anchor) (second off)))) (if (in-bounds? rr cc (rows g) (cols g)) (set-cell acc rr cc (third cell)) acc)))))))
Provenance
- Generator
- generators/2f91d0756f23/generator.py
- Notes and decisions
- generators/2f91d0756f23/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- dd8d326a182b8565811e8a476bcdcfdf453cac3f049b384ce754c843f271e823
- Rule hash
- dc9e50b0f1e3
- Sources
- bank:b9cb6b5db49d
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2f91d0756f23 --count 1 --seed 20261108 --test 1