← 11221f58af4b · 113d9bb402d3 →
1137ac565856
Choose the smallest complete rectangular frame that strictly encloses the red marker, then output a solid rectangle with that frame's size and color.
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!
(let* ((marker (first (find-color g 2)))
(mr (fst marker))
(mc (snd marker))
(candidates
(filter
(lambda (obj)
(let* ((bb (obj-bbox obj))
(r0 (first bb))
(c0 (second bb))
(r1 (third bb))
(c1 (fourth bb))
(color (obj-color obj)))
(and (not (= color 2))
(> mr r0) (< mr r1)
(> mc c0) (< mc c1)
(all?
(lambda (p)
(let ((r (fst p)) (c (snd p)))
(= (cell-at g r c) color)))
(filter
(lambda (p)
(let ((r (fst p)) (c (snd p)))
(or (= r r0) (= r r1) (= c c0) (= c c1))))
(positions-in-rect r0 c0 r1 c1))))))
(objects g 0)))
(chosen
(first
(sort candidates
(lambda (a b)
(let* ((ba (obj-bbox a))
(bb (obj-bbox b))
(area-a (* (+ 1 (- (third ba) (first ba))) (+ 1 (- (fourth ba) (second ba)))))
(area-b (* (+ 1 (- (third bb) (first bb))) (+ 1 (- (fourth bb) (second bb))))))
(< area-a area-b))))))
(bb (obj-bbox chosen))
(out-h (+ 1 (- (third bb) (first bb))))
(out-w (+ 1 (- (fourth bb) (second bb)))))
(empty-grid out-h out-w (obj-color chosen))))Provenance
- Generator
- generators/1137ac565856/generator.py
- Notes and decisions
- generators/1137ac565856/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 25eaead4df876be4fc5214d816201b10b0af2420fc9ffee543e614189976cf26
- Rule hash
- 37464b163bd2
- Sources
- bank:765a70430bc9
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1137ac565856 --count 1 --seed 20261108 --test 1