← public_eval_21897d95 · public_eval_247ef758 →
public_eval_221dfab4
Project a border yellow marker as periodic stripes and extend every third stripe onto foreground.
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!
;; The only yellow object is a contiguous segment on one outside edge.
;; It defines an inward axis and a band of the same width. Overwrite that
;; band with yellow, background, yellow, background, green, background,
;; repeated from the marker. On green stripes, recolor every original
;; foreground pixel on the whole transverse line, not the gaps between them.
(lambda (g)
(let ()
(define bg (mode g -1))
(define marker (find-color g 4))
(if (null? marker) g
(let ()
(define rlo (min-of first marker))
(define rhi (max-of first marker))
(define clo (min-of second marker))
(define chi (max-of second marker))
(define horizontal (= rlo rhi))
(define forward (if horizontal (= rlo 0) (= clo 0)))
(define lo (if horizontal clo rlo))
(define hi (if horizontal chi rhi))
(define (depth r c)
(if horizontal (if forward r (- h 1 r))
(if forward c (- w 1 c))))
(cellmap g (r c v)
(let* ((d (depth r c))
(t (if horizontal c r))
(green (= (modulo d 6) 4)))
(cond ((and (<= lo t) (<= t hi))
(cond (green 3) ((= (modulo d 2) 0) 4) (else bg)))
((and green (not (= v bg))) 3)
(else v)))))))))
Provenance
- Generator
- generators/public_eval_221dfab4/generator.py
- Notes and decisions
- generators/public_eval_221dfab4/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 8edfdfab8c8c629590f2e87813835778a5165c4c16b61253b87ac8811ca056ad
- Rule hash
- be42209e5ac3
- Sources
- evaluation, public_eval:221dfab4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_221dfab4 --count 1 --seed 20261108 --test 1