← e51349aef7b1 · e5477d32d98b →

e521d16d403e

Extract the bbox of the largest eligible left-right symmetric object. Objects use same-color four-connectivity; eligibility requires width > 1 and exact color equality of every mirrored bbox pixel. Size counts object cells, not bbox area. Default four-draw lessons distinguish larger ineligible objects, varying occupied-size rank, smaller symmetric decoys, scan order, bbox area, width-one bars and disconnected objects sharing a color. Half the default profiles use canonical 10x10 grids with three nonzero colors; two profiles refute the canonical-fitting bottommost-eligible shortcut.

parametric family

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!
  ;; alt: filter `(objects g 0)` by LR symmetry, sort by `obj-size`, then crop the winner's bbox.
  (lambda (g)
    (define objs (objects g 0))
    (define (bbox-lr-symmetric? bb)
      (let* ((r0 (first bb))
             (c0 (second bb))
             (r1 (third bb))
             (c1 (fourth bb))
             (w (+ 1 (- c1 c0))))
        (and (> w 1)
             (for*/and ((r (in-range r0 (+ r1 1)))
                        (c (in-range c0 (+ c1 1))))
               (= (at g r c)
                  (at g r (- (+ c0 c1) c)))))))
    (define symmetric-objs
      (filter (lambda (o) (bbox-lr-symmetric? (obj-bbox o))) objs))
    (define chosen
      (if (empty? symmetric-objs)
          (first objs)
          (first (sort symmetric-objs
                       (lambda (a b) (> (obj-size a) (obj-size b)))))))
    (let* ((bb (obj-bbox chosen))
           (r0 (first bb))
           (c0 (second bb))
           (r1 (third bb))
           (c1 (fourth bb)))
      (subgrid g r0 c0 r1 c1))))

Provenance

Generator
generators/e521d16d403e/generator.py
Notes and decisions
generators/e521d16d403e/notes.md
Review label
reviewed_safe
Generator SHA-256
b012fe138cc2497dc1615e75815a0fc1f05cb5577e5f162cfc942702f8ec685f
Rule hash
9d224076bec5
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e521d16d403e --count 1 --seed 20261108 --test 1