← 27387ebf1485 · 2786bc764238 →
274345a1792c
Copy the connected maroon (9) prototype in cyan (8) at each magenta (6) anchor: the cell above selects identity (1), clockwise rotation (2), left-right reflection (3), or reflection then clockwise rotation (4).
parametric family
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 (same-pos? a b)
(and (= (fst a) (fst b)) (= (snd a) (snd b))))
(define (pos-in? p cells)
(any? (lambda (q) (same-pos? p q)) cells))
(define proto
(first
(filter
(lambda (obj) (and (= (obj-color obj) 9) (> (obj-size obj) 1)))
(objects g 0))))
(define shape (normalize-cells (obj-cells proto)))
(define (transform code cells)
(cond
[(= code 1) (normalize-cells cells)]
[(= code 2) (normalize-cells (rotate-cells-cw cells))]
[(= code 3) (normalize-cells (flip-cells-lr cells))]
[else (normalize-cells (rotate-cells-cw (flip-cells-lr cells)))]))
(define anchors
(filter
(lambda (p)
(and (> (first p) 0)
(= (third p) 6)
(member? (cell-at g (- (first p) 1) (second p)) (list 1 2 3 4))))
(grid-cells g)))
(define stamp-cells
(flatmap
(lambda (a)
(let* ((ar (first a))
(ac (second a))
(code (cell-at g (- ar 1) ac))
(shp (transform code shape)))
(map (lambda (p) (list (+ ar (fst p)) (+ ac (snd p)))) shp)))
anchors))
(grid-from-fn h w
(lambda (r c)
(if (and (in-bounds? r c h w) (pos-in? (list r c) stamp-cells))
8
(cell-at g r c))))))Provenance
- Generator
- generators/274345a1792c/generator.py
- Notes and decisions
- generators/274345a1792c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3bbaba80d999266c004e3bd4fd823e0694b419bcd7c9046cf1d0332645376dd9
- Rule hash
- 2a00fd8158ab
- Sources
- bank:7f8a290afe75
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 274345a1792c --count 1 --seed 20261108 --test 1