← 49197f3c9375 · 496bcaf83a46 →

492fe98aff2b

Crop the input to the tight bounding rectangle containing every nonzero cell. Preserve all colours, component spacing, and interior background cells exactly. Ordinary scenes place two to four disconnected, multicolour components inside a visible zero margin, so the output is a strictly smaller sparse rectangle and cannot be explained by identity, largest-object-only, solid-bbox, or monochrome-crop shortcuts.

bounding boxexact cropsize change

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 (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (crop-nonzero grid) (let ((cells (nonzero-cells grid))) (if (empty? cells) (list (list 0)) (let* ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))))) (crop-nonzero g)))

Provenance

Generator
generators/492fe98aff2b/generator.py
Notes and decisions
generators/492fe98aff2b/notes.md
Review label
reviewed_safe
Generator SHA-256
67ae930e0020b85bb74b94760abdd479f6d8859f33e2f9c7c15b3154b9dca847
Rule hash
debb1a8a129a
Sources
bank:6ee66428b984
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 492fe98aff2b --count 1 --seed 20261108 --test 1