← public_eval_58490d8a · public_eval_5961cc34 →
public_eval_58f5dbd5
Public 58f5dbd5: associate stencils by color, then carve plate interiors.
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!
;; Find the large solid monochrome plates on the modal background.
;; For each plate, recover the small same-color stencil outside the plate.
;; Normalize that stencil and punch its occupied cells out of the plate's
;; one-cell-bordered interior. Keep the plate arrangement; crop with one
;; background cell of margin. Unmatched small colored stencils are distractors.
(lambda (g)
(let ()
(define bg (mode g -1))
(define plates (filter (lambda (o) (and (>= (obj-h o) 4) (>= (obj-w o) 4) (solid-rect? o))) (objects g bg)))
(define painted
(for/fold ((out g)) ((plate plates))
(let ()
(define color (obj-color plate))
(define raw (filter (lambda (p) (not (member p (obj-cells plate)))) (find-color g color)))
(define mask (normalize-cells raw))
(for*/fold ((acc out)) ((rr (range 0 (- (obj-h plate) 2))) (cc (range 0 (- (obj-w plate) 2))))
(set-cell acc (+ (obj-r1 plate) 1 rr) (+ (obj-c1 plate) 1 cc)
(if (member (list rr cc) mask) bg color))))))
(define bounds (bbox-of-cells (apply append (map obj-cells plates))))
(subgrid painted (- (first bounds) 1) (- (second bounds) 1)
(+ (third bounds) 1) (+ (fourth bounds) 1)))))
Provenance
- Generator
- generators/public_eval_58f5dbd5/generator.py
- Notes and decisions
- generators/public_eval_58f5dbd5/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 9edae0a67b7d8adcdec548e96a4d90ab43fc10d5d14fc8fec727cf6583faab95
- Rule hash
- c6d0e42c71c2
- Sources
- evaluation, public_eval:58f5dbd5
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_58f5dbd5 --count 1 --seed 20261108 --test 1