← bee63e6e52bd · bf415be1791c →
bf1c3941f654
Find every closed rectangular color-1 frame. Recolor each color-2 cell strictly inside any such frame to color 4, while preserving color-2 distractors outside all frames and leaving every other cell unchanged.
enclosureframe reasoninginside-vs-outside distinction
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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (rect-frame? obj)
(and (= (obj-color obj) 1)
(>= (obj-h obj) 3)
(>= (obj-w obj) 3)
(= (obj-size obj) (- (* 2 (+ (obj-h obj) (obj-w obj))) 4))))
(define frames (filter rect-frame? (objects g 0)))
(define (inside-frame? r c frame)
(and (> r (obj-r1 frame)) (< r (obj-r2 frame))
(> c (obj-c1 frame)) (< c (obj-c2 frame))))
(for*/fold ([out g])
([r (in-range (rows g))]
[c (in-range (cols g))])
(if (and (= (at g r c) 2)
(not (eq? (find-first (lambda (frame) (inside-frame? r c frame)) frames) #f)))
(set-cell out r c 4)
out))))Provenance
- Generator
- generators/bf1c3941f654/generator.py
- Notes and decisions
- generators/bf1c3941f654/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ee13c4bb0ee3a691f7e361c90f1432d7f9c522218dc8b639b8c09a1e57d2a21f
- Rule hash
- c2152e6fcfee
- Sources
- bank:e06827914c5c
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bf1c3941f654 --count 1 --seed 20261108 --test 1