← 61aeeba19268 · 61f255726e2e →
61c0bcd32328
Copy corner-anchored components clockwise while preserving all input cells.
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! (lambda (g)
(let* ((h (rows g))
(w (cols g)))
(let* ((bg (mode g 0))
(comps (objects g bg))
(corner-shapes (filter (lambda (x) x)
(map (lambda (o)
(with-bbox o
(r1 c1 r2 c2)
(let* ((corner (cond
((and
(zero? r1)
(zero? c1)) 'tl)
((and
(zero? r1)
(= c2
(- w
1))) 'tr)
((and
(= r2
(- h
1))
(= c2
(- w
1))) 'br)
((and
(= r2
(- h
1))
(zero? c1)) 'bl)
(else #f))))
(cond
(corner (list corner o))
(else #f)))))
comps)))
(new-cells (apply append
(map (lambda (cs)
(let* ((corner (first cs))
(o (second cs))
(cells (obj-cells o))
(col (obj-color o)))
(with-bbox o
(r1 c1 r2 c2)
(let* ((dr (cond
((eq? corner 'tl) 0)
((eq? corner 'tr) (- h 1 r2))
((eq? corner 'br) 0)
((eq? corner 'bl) (- 0 r1))))
(dc (cond
((eq? corner 'tl) (- w 1 c2))
((eq? corner 'tr) 0)
((eq? corner 'br) (- 0 c1))
((eq? corner 'bl) 0))))
(map (lambda (cell)
(list (+ (first cell)
dr)
(+ (second cell)
dc)
col))
cells)))))
corner-shapes))))
(for/fold ((out g))
((nc new-cells))
(let ((r (first nc))
(c (second nc))
(col (third nc)))
(cond
((or (< r 0) (>= r h) (< c 0) (>= c w)) out)
(else (set-cell out r c col)))))))))Provenance
- Generator
- generators/61c0bcd32328/generator.py
- Notes and decisions
- generators/61c0bcd32328/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4f45d334880485ba8e7926f352f6f9c919dad53df3a9b868af43703964dff4ec
- Rule hash
- e3835c9a174e
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 61c0bcd32328 --count 1 --seed 20261108 --test 1