← 27bc4c66eed7 · 28119d6d0e10 →

27f5eba1051c

Read the one-based rank at (0,0), clear that marker, sort three disconnected objects by area descending, left column ascending, then color ascending, and crop the selected object's bounding box.

component rankingcroppingselection

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* ((rank (at g 0 0))
         (clean (set-cell g 0 0 0))
         (objs (sort (objects clean 0)
                     (lambda (a b)
                       (cond [(not (= (obj-size a) (obj-size b))) (> (obj-size a) (obj-size b))]
                             [(not (= (obj-c1 a) (obj-c1 b))) (< (obj-c1 a) (obj-c1 b))]
                             [else (< (obj-color a) (obj-color b))]))))
         (obj (list-ref objs (- rank 1))))
    (subgrid clean (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))))

Provenance

Generator
generators/27f5eba1051c/generator.py
Notes and decisions
generators/27f5eba1051c/notes.md
Review label
reviewed_safe
Generator SHA-256
7c11190c553e9591778e3b6a52e121eea074881c44511c70291dc11395c35bc4
Rule hash
fb00fc6fefe5
Sources
bank:dc02f6f7c147
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 27f5eba1051c --count 1 --seed 20261108 --test 1