← 947a1d9ca8f5 · 952d011ee8be →

94d475bf67ba

Two or three distinct-color exact rectangular outlines are strictly nested. Every operative outline owns a visible zero region, and four scheduled profiles teach smallest-enclosing-frame ownership independently of color rank.

parametric familycontainmentnestingregion ownership

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-border? obj)
      (let* ((bb (obj-bbox obj))
             (h (+ (- (third bb) (first bb)) 1))
             (w (+ (- (fourth bb) (second bb)) 1))
             (border-size (- (* h w) (* (max 0 (- h 2)) (max 0 (- w 2))))))
        (and (>= h 3) (>= w 3) (= (obj-size obj) border-size)
             (all? (lambda (p)
                     (or (= (first p) (first bb)) (= (first p) (third bb))
                         (= (second p) (second bb)) (= (second p) (fourth bb))))
                   (obj-cells obj)))))
    (define frames
      (sort (filter rect-border? (objects g 0))
            (lambda (a b) (< (* (obj-h a) (obj-w a)) (* (obj-h b) (obj-w b))))))
    (for*/fold ([out g])
               ([r (in-range (rows g))]
                [c (in-range (cols g))])
      (if (not (= (at out r c) 0))
          out
          (let ((hits (filter (lambda (obj)
                                (and (> r (obj-r1 obj)) (< r (obj-r2 obj))
                                     (> c (obj-c1 obj)) (< c (obj-c2 obj))))
                              frames)))
            (if (empty? hits) out (set-cell out r c (obj-color (first hits)))))))))

Provenance

Generator
generators/94d475bf67ba/generator.py
Notes and decisions
generators/94d475bf67ba/notes.md
Review label
reviewed_safe
Generator SHA-256
a2a1b2e411eb4fb91fe95defa76883605d54fda1ccf7fed7e095eebae69a5079
Rule hash
beb1b900ffc7
Sources
bank:c025e54ed3a2
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 94d475bf67ba --count 1 --seed 20261108 --test 1