← 671a9af906aa · 673e85a3c1cb →

6737eb62cf42

Place two to four non-zero colors inside a padded canonical-scale canvas. The answer is the smallest rectangular subgrid containing every non-zero cell, preserving colors and internal zeros. Ordinary lessons alternate paired-object scenes with a singleton color that alone defines the lower-right crop boundary.

bounding boxcroppingsize 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/6737eb62cf42/generator.py
Notes and decisions
generators/6737eb62cf42/notes.md
Review label
reviewed_safe
Generator SHA-256
750b889656a349294e797f568e578ef3b6da9a191c32f24048bbc794b2cf7647
Rule hash
debb1a8a129a
Sources
bank:9397d19eada0
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6737eb62cf42 --count 1 --seed 20261108 --test 1