← dcfb4c64c914 · dd3fa537fa22 →
dd038eb3d459
A black canonical-scale grid contains exactly one blue control in a corner, one connected red polyomino, and one connected green polyomino. The control maps TL/TR/BR/BL to 0/1/2/3 clockwise quarter-turns. Normalize red, rotate then normalize green, take their symmetric XOR, normalize that mask, and emit its tight cyan(8) crop.
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 (rot90 cells)
(let ((h (+ 1 (apply max (map first cells)))))
(normalize-cells (map (lambda (p) (list (second p) (- h 1 (first p)))) cells))))
(define (rotate cells k)
(let loop ([i 0] [cur (normalize-cells cells)])
(if (= i (modulo k 4)) cur (loop (+ i 1) (rot90 cur)))))
(define ctrl (first (find-color g 1)))
(define code (cond [(and (= (first ctrl) 0) (= (second ctrl) 0)) 0]
[(and (= (first ctrl) 0) (= (second ctrl) (- (cols g) 1))) 1]
[(and (= (first ctrl) (- (rows g) 1)) (= (second ctrl) (- (cols g) 1))) 2]
[else 3]))
(define a (normalize-cells (obj-cells (first (filter (lambda (o) (= (obj-color o) 2)) (objects g 0))))))
(define b (rotate (obj-cells (first (filter (lambda (o) (= (obj-color o) 3)) (objects g 0)))) code))
(define xor (append (filter (lambda (p) (not (member? p b))) a)
(filter (lambda (p) (not (member? p a))) b)))
(if (empty? xor)
(empty-grid 1 1 0)
(let* ((norm (normalize-cells xor))
(h (+ 1 (apply max (map first norm))))
(w (+ 1 (apply max (map second norm)))))
(grid-from-fn h w
(lambda (r c) (if (member? (list r c) norm) 8 0)))))))Provenance
- Generator
- generators/dd038eb3d459/generator.py
- Notes and decisions
- generators/dd038eb3d459/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e873df6c30d6fc14727c9152cb2af0c64d4d7505221cf9ef3ef9b53b6d4bad09
- Rule hash
- 624c38e915df
- Sources
- bank:53ccebf2a36f
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate dd038eb3d459 --count 1 --seed 20261108 --test 1