← f65b8464b007 · f6b9f647b109 →

f68fe53c1702

Draw the outline of the bounding box of ALL same-color nonzero markers on a fresh same-size zero grid. Inputs have 2..7 distinct markers and a bbox at least 3x3. Default lessons mix three-corner canonical profiles with distributed extrema and interior markers; positions, aspect ratios, border contact and colors vary. Exact size, color and count overrides are honored in every band.

bboxrectangle completionsame-size border drawing

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* ((cells (filter-cells g (lambda (r c v) (not (= v 0))))))
    (if (empty? cells)
        g
        (let* ((color (at g (first (first cells)) (second (first cells))))
               (bb (bbox-of-cells cells))
               (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))
               (outline
                 (append
                   (for/list ([c (in-range c0 (+ c1 1))]) (list r0 c))
                   (for/list ([c (in-range c0 (+ c1 1))]) (list r1 c))
                   (for/list ([r (in-range r0 (+ r1 1))]) (list r c0))
                   (for/list ([r (in-range r0 (+ r1 1))]) (list r c1)))))
          (paint-cells (empty-grid (rows g) (cols g) 0) outline color)))))

Provenance

Generator
generators/f68fe53c1702/generator.py
Notes and decisions
generators/f68fe53c1702/notes.md
Review label
reviewed_safe
Generator SHA-256
90e4a1ca55d14dc1c78d2e3c5a546d6969fed41e604415df349d01b53a572c30
Rule hash
ab8196a7d821
Sources
bank:ba76b91f26f9
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f68fe53c1702 --count 1 --seed 20261108 --test 1