← 4842b1ca59e2 · 486794347a11 →

486375757aca

On a 0-background grid, blue(1) rectangular frames contain colored seed cells. For each 4-connected blue object, take its bounding box, choose the last non-{0,1} seed in row-major order from that box's interior, and fill the entire bounding-box interior with that color. Disconnected frames act independently; touching frames merge, so internal blue frame segments and earlier seeds can be overwritten.

parametric familycontainmentframe detectioninterior fill

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!
  (for/fold ([out g]) ([obj (in-list (filter (lambda (o) (= (obj-color o) 1)) (objects g 0)))])
    (let ((seed
           (first (reverse (filter (lambda (v) (not (member v (list 0 1))))
                             (for*/list ([r (in-range (+ (obj-r1 obj) 1) (obj-r2 obj))]
                                         [c (in-range (+ (obj-c1 obj) 1) (obj-c2 obj))])
                               (at g r c)))))))
      (for*/fold ([acc out])
                 ([r (in-range (+ (obj-r1 obj) 1) (obj-r2 obj))]
                  [c (in-range (+ (obj-c1 obj) 1) (obj-c2 obj))])
        (set-cell acc r c seed)))))

Provenance

Generator
generators/486375757aca/generator.py
Notes and decisions
generators/486375757aca/notes.md
Review label
reviewed_safe
Generator SHA-256
943ae6682b0f4888022d61335ffcb098bf87b0f66c069e94c91bb1dd00d75255
Rule hash
32695808b436
Sources
bank:8ed83d4e427b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 486375757aca --count 1 --seed 20261108 --test 1