← public_eval_d8e07eb2 · public_eval_db0c5428 →
public_eval_da515329
No summary in the catalog.
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!
;; A monochrome hollow cross determines a center and common arm length.
;; Extend its four arms into clockwise interleaved contours, leaving one
;; background cell between paths. Radius one first expands to radius two.
;; Each contour group runs 2+4*n, bends inward by k-2, then extends by k.
;; Move outside the canvas normally and clip only painting: later segments
;; can re-enter. The reflected setting reverses every turn, not the input.
(lambda (g)
(let ()
(define height (rows g))
(define width (cols g))
(define cells (filter (lambda (p) (> (at g (first p) (second p)) 0)) (grid-positions g)))
(define box (bbox-of-cells cells))
(define center-r (/ (+ (first box) (third box)) 2))
(define center-c (/ (+ (second box) (fourth box)) 2))
(define measured-radius (/ (- (third box) (first box)) 2))
(define radius (max 2 measured-radius))
(define ink (at g (first (first cells)) (second (first cells))))
(define handedness 1)
(define directions (list (list -1 0) (list 0 1) (list 1 0) (list 0 -1)))
(define (segment state direction distance)
(let* ((r (second state)) (c (third state))
(delta (list-ref directions (modulo direction 4)))
(dr (first delta)) (dc (second delta))
(points (for/list ((step (range 1 (+ distance 1)))
#:when (in-bounds? (+ r (* dr step)) (+ c (* dc step)) height width))
(list (+ r (* dr step)) (+ c (* dc step))))))
(list (recolor-cells (first state) points ink)
(+ r (* dr distance)) (+ c (* dc distance)))))
(for/fold ((out (empty-grid height width 0))) ((start (range 0 4)))
(let loop ((state (segment (list out center-r center-c) start radius))
(direction (+ start handedness)) (layer 0))
(if (>= layer (+ height width))
(first state)
(let* ((long (segment state direction (+ 2 (* 4 layer))))
(inward (segment long (+ direction handedness) (- radius 2)))
(tip (segment inward direction radius)))
(loop tip (+ direction handedness) (+ layer 1)))))))))
Provenance
- Generator
- generators/public_eval_da515329/generator.py
- Notes and decisions
- generators/public_eval_da515329/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 30584b36c42a22d690e0360afa770f9f745a6434900fbfbbc13cdf506e7d40ca
- Rule hash
- 08233d183fdc
- Sources
- evaluation, public_eval:da515329
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_da515329 --count 1 --seed 20261108 --test 1