← public_eval_abc82100 · public_eval_b10624e5 →
public_eval_b0039139
Repeat a recolored cropped template once per green connected marker.
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!
;; Blue separators delimit template, green markers and two palette panels.
;; Normalize vertical layout by transposition. Count the 4-connected green
;; objects, crop the yellow template, recolor it and tile along the layout axis.
;; One background cell separates neighboring copies.
(lambda (g)
(let ()
(define vertical (= (length (filter (lambda (r) (and (row-uniform? g r) (= (at g r 0) 1))) (range (rows g)))) 3))
(define t (if vertical (transpose g) g))
(define separators (filter (lambda (c) (and (col-uniform? t c) (= (at t 0 c) 1))) (range (cols t))))
(define a (first separators))
(define b (second separators))
(define c (third separators))
(define template (crop-to-content (subgrid t 0 0 (- (rows t) 1) (- a 1)) 0))
(define markers (subgrid t 0 (+ a 1) (- (rows t) 1) (- b 1)))
(define parts (filter (lambda (o) (= (obj-color o) 3)) (objects markers 0)))
(define foreground (at t 0 (+ b 1)))
(define background (at t 0 (+ c 1)))
(define tw (cols template))
(define th (rows template))
(define sizes (map obj-size parts))
(define result
(build-grid th (- (* (length parts) (+ tw 1)) 1) (r col)
(let* ((copy-index (quotient col (+ tw 1)))
(offset (modulo col (+ tw 1)))
(reflect #f))
(if (= offset tw) background
(if (= (at template r (if reflect (- tw 1 offset) offset)) 4) foreground background)))))
(if vertical (transpose result) result))))
Provenance
- Generator
- generators/public_eval_b0039139/generator.py
- Notes and decisions
- generators/public_eval_b0039139/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c6a9aee284091ffef0ce111972a275e130aa86fe2b8064b8fdd9e1c4c4c40473
- Rule hash
- 013b7fae74a2
- Sources
- evaluation, public_eval:b0039139
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_b0039139 --count 1 --seed 20261108 --test 1