← df5e596e5e96 · df92ae881dc8 →

df74e338b4f5

Nested hollow color-9 rectangular frames contain same-colored marker cells. Recolor each marker by its strict frame-containment depth, while leaving every frame and background cell unchanged.

parametric familydepth countingframe containment

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) 9)
           (>= (obj-h obj) 3)
           (>= (obj-w obj) 3)
           (= (obj-size obj) (- (* (obj-h obj) (obj-w obj))
                                (* (- (obj-h obj) 2) (- (obj-w obj) 2))))
           (all? (lambda (p)
                   (or (= (first p) (obj-r1 obj))
                       (= (first p) (obj-r2 obj))
                       (= (second p) (obj-c1 obj))
                       (= (second p) (obj-c2 obj))))
                 (obj-cells obj))))
    (define frames (filter rect-frame? (objects g 0)))
    (grid-from-fn (rows g) (cols g)
      (lambda (r c)
        (let ((v (at g r c)))
          (if (or (= v 0) (= v 9))
              v
              (count-where
                (lambda (obj)
                  (and (> r (obj-r1 obj)) (< r (obj-r2 obj))
                       (> c (obj-c1 obj)) (< c (obj-c2 obj))))
                frames)))))))

Provenance

Generator
generators/df74e338b4f5/generator.py
Notes and decisions
generators/df74e338b4f5/notes.md
Review label
reviewed_safe
Generator SHA-256
c464c7b69ddbca31d8f58c27be9beeb4d4c15bf0f9ea0a70db3bb245bca429e9
Rule hash
3ba84d8589ae
Sources
bank:26462ff56908
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate df74e338b4f5 --count 1 --seed 20261108 --test 1