← 7b6758552009 · 7bba59d92716 →

7b8cb193f82c

A black grid contains 1-3 disjoint closed rectangular color-8 frames. For each frame, fill its rectangular zero interior by inward layer depth: the outer layer becomes red (2), the next green (3), then red/green continue alternating. Frame thickness, position, count, canvas size, and maximum demonstrated depth are exact observable axes.

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 ((regions (find-0-regions g 0)))
    (define (hole-cells obj)
      (append* (filter (lambda (reg)
                         (all? (lambda (p)
                                 (and (> (first p) (obj-r1 obj)) (< (first p) (obj-r2 obj))
                                      (> (second p) (obj-c1 obj)) (< (second p) (obj-c2 obj))))
                               reg))
                       regions)))
    (define (touches-any? p cells)
      (any? (lambda (d) (member? (list (+ (first p) (first d)) (+ (second p) (second d))) cells))
            cardinal-deltas))
    (define (paint-layers out holes)
      (let loop ([acc out]
                 [remaining holes]
                 [current (filter (lambda (p)
                                    (any? (lambda (d)
                                            (not (member? (list (+ (first p) (first d)) (+ (second p) (second d))) holes)))
                                          cardinal-deltas))
                                  holes)]
                 [d 1])
        (if (empty? current)
            acc
            (let* ((new-acc (paint-cells acc current (if (odd? d) 2 3)))
                   (new-remaining (filter (lambda (p) (not (member? p current))) remaining))
                   (next-current (filter (lambda (p) (touches-any? p current)) new-remaining)))
              (loop new-acc new-remaining next-current (+ d 1))))))
    (for/fold ([out g]) ([obj (in-list (filter (lambda (o) (= (obj-color o) 8)) (objects g 0)))])
      (let ((holes (hole-cells obj)))
        (if (empty? holes) out (paint-layers out holes))))))

Provenance

Generator
generators/7b8cb193f82c/generator.py
Notes and decisions
generators/7b8cb193f82c/notes.md
Review label
reviewed_safe
Generator SHA-256
635443e704565b189ac31fb4688b3d07668591da4e44fc52d1d256b3831f7f5f
Rule hash
5791d4c7a1b1
Sources
bank:e57147319d67
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 7b8cb193f82c --count 1 --seed 20261108 --test 1