← 7ef325b21961 · 7f181d3b0012 →

7f03452e81df

On a zero background, find every same-color 4-connected nonzero object. Sort components by (cell count ascending, top row ascending, left column ascending), choose the first, and return the inclusive subgrid bounded by that object's tight bounding box. Preserve every original cell in that box, including background and any separate object that lies inside it.

connected componentssize comparisontight cropping

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 ((chosen
          (first
            (sort (objects g 0)
              (lambda (a b)
                (cond [(not (= (obj-size a) (obj-size b))) (< (obj-size a) (obj-size b))]
                      [(not (= (obj-r1 a) (obj-r1 b))) (< (obj-r1 a) (obj-r1 b))]
                      [else (< (obj-c1 a) (obj-c1 b))]))))))
    (subgrid g (obj-r1 chosen) (obj-c1 chosen) (obj-r2 chosen) (obj-c2 chosen))))

Provenance

Generator
generators/7f03452e81df/generator.py
Notes and decisions
generators/7f03452e81df/notes.md
Review label
reviewed_safe
Generator SHA-256
82d4d1f6ff25817f3c45ceca47c04e0926d0651f92d319e9c3f07ff09f0bcba9
Rule hash
677cf77c7816
Sources
bank:e06827914c5c
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 7f03452e81df --count 1 --seed 20261108 --test 1