← ee5295e1813b · ee602abaa45a →
ee53f991985b
A 0-background grid contains one or more closed rectangular outlines and at least one connected incomplete rectangular frame. Fill the full bounding box of each complete outline with its color; leave incomplete frames and other non-outline components unchanged.
fillframesgeometry
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 ((dummy 0)) (define (rect-outline? obj) (let* ((cells (obj-cells obj)) (r0 (obj-r1 obj)) (r1 (obj-r2 obj)) (c0 (obj-c1 obj)) (c1 (obj-c2 obj)) (outline (remove-duplicates (append (for/list ((c (in-range c0 (add1 c1)))) (list r0 c)) (for/list ((c (in-range c0 (add1 c1)))) (list r1 c)) (for/list ((r (in-range r0 (add1 r1)))) (list r c0)) (for/list ((r (in-range r0 (add1 r1)))) (list r c1)))))) (and (= (length cells) (length outline)) (all? (lambda (p) (member? p cells)) outline)))) (for/fold ((out g)) ((obj (in-list (objects g 0)))) (if (rect-outline? obj) (for*/fold ((acc out)) ((r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1))) (c (in-range (obj-c1 obj) (+ (obj-c2 obj) 1)))) (set-cell acc r c (obj-color obj))) out))))
Provenance
- Generator
- generators/ee53f991985b/generator.py
- Notes and decisions
- generators/ee53f991985b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4d71ea90417191524be11aabf67e213180e4e3334a2882cfa55f1ec0b2c93fa4
- Rule hash
- 638445812e80
- Sources
- bank:fec6a16dfcc9
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ee53f991985b --count 1 --seed 20261108 --test 1