← ba5056d6102e · ba9d8eb0cd5a →

ba988f8d25d5

Crop the uniquely smallest monochromatic 4-connected object. Vary target size 1..7, polyomino shape, colors, position and distractor sizes. Include sparse/compact ranking inversions, repeated colors, different-color edge contacts and same-color diagonal contacts; retain canonical-scale draws.

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* ((objs (objects g 0))
         (smallest
           (first
             (sort objs
               (lambda (a b)
                 (let ((sa (obj-size a))
                       (sb (obj-size b))
                       (ba (obj-bbox a))
                       (bb (obj-bbox b)))
                   (or (< sa sb)
                       (and (= sa sb)
                            (or (< (first ba) (first bb))
                                (and (= (first ba) (first bb))
                                     (or (< (second ba) (second bb))
                                         (and (= (second ba) (second bb))
                                              (or (< (third ba) (third bb))
                                                  (and (= (third ba) (third bb))
                                                       (< (fourth ba) (fourth bb)))))))))))))))
         (bb (obj-bbox smallest)))
    (crop g (first bb) (second bb) (third bb) (fourth bb))))

Provenance

Generator
generators/ba988f8d25d5/generator.py
Notes and decisions
generators/ba988f8d25d5/notes.md
Review label
reviewed_safe
Generator SHA-256
9d0622afa3a9c5fffe60b482761621d266fc8e0164343a83b4615c9d98f3e42b
Rule hash
f0c7b10ccb1c
Sources
bank:e2825ca16ace
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ba988f8d25d5 --count 1 --seed 20261108 --test 1