← ddaee6c28dd7 · de49e9901e3a →

ddea3e6a1791

Crop the grid to the tight joint bounding rectangle of every nonzero cell, preserving colors, zero holes, and gaps between disconnected components. Two of every four scheduled inputs match canonical canvas/palette profiles; the alternating inputs contain two differently colored components.

bboxextraction

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/ddea3e6a1791/generator.py
Notes and decisions
generators/ddea3e6a1791/notes.md
Review label
reviewed_safe
Generator SHA-256
a0cc1e30f8c619816c66cf333f936e1ee0728dbc2559bee1f3410de011cc6d29
Rule hash
debb1a8a129a
Sources
bank:2eea055c3155
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ddea3e6a1791 --count 1 --seed 20261108 --test 1