← e3f1bc75d654 · e410357cf67e →

e3f72a0f2ebb

Replace every 4-connected, same-color nonzero object by the frame of its tight bounding box on a fresh zero grid. Draw 2..4 separated objects with 1..4 distinct colors, varied positions and shapes, including fixed points. Disconnected objects may share a color; their frames stay separate.

bounding_boxframesobjectssame_size

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 ((dummy 0))
    (define (border obj)
      (append (for/list ([c (in-range (obj-c1 obj) (+ (obj-c2 obj) 1))]) (list (obj-r1 obj) c))
              (for/list ([c (in-range (obj-c1 obj) (+ (obj-c2 obj) 1))]) (list (obj-r2 obj) c))
              (for/list ([r (in-range (+ (obj-r1 obj) 1) (obj-r2 obj))]) (list r (obj-c1 obj)))
              (for/list ([r (in-range (+ (obj-r1 obj) 1) (obj-r2 obj))]) (list r (obj-c2 obj)))))
    (for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([obj (in-list (objects g 0))])
      (paint-cells out (border obj) (obj-color obj)))))

Provenance

Generator
generators/e3f72a0f2ebb/generator.py
Notes and decisions
generators/e3f72a0f2ebb/notes.md
Review label
reviewed_safe
Generator SHA-256
e8d40d9158ab2f44ad2a3964d4cebf835bfea909effebcd8c6ce1573ba2a970f
Rule hash
8d3a7f6a327b
Sources
bank:a54e1d9e1d4b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e3f72a0f2ebb --count 1 --seed 20261108 --test 1