← 1a58c96bb078 · 1a8932958b14 →

1a5d49e539de

A square grid contains four separated monochrome objects. Exactly three objects are left-right symmetric and exactly one is not; crop the unique left-right-asymmetric object to its bounding box.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (begin
             (define bg 0)
             (define objs (objects-8 g bg))
             (define (asym? obj)
               (let* ((cells (obj-cells obj))
                      (rs (map first cells))
                      (cs (map second cells))
                      (rmin (min-list rs))
                      (rmax (max-list rs))
                      (cmin (min-list cs))
                      (cmax (max-list cs))
                      (ow (+ (- cmax cmin) 1))
                      (norm (map (lambda (c)
                                   (list (- (first c) rmin) (- (second c) cmin)))
                                 cells)))
                 (not (andmap (lambda (c)
                                (any? (lambda (c2)
                                        (= c2 (list (first c) (- (- ow 1) (second c)))))
                                      norm))
                              norm))))
             (define target (find asym? objs))
             (let* ((cells (obj-cells target))
                    (rs (map first cells))
                    (cs (map second cells))
                    (rmin (min-list rs))
                    (rmax (max-list rs))
                    (cmin (min-list cs))
                    (cmax (max-list cs))
                    (oh (+ (- rmax rmin) 1))
                    (ow (+ (- cmax cmin) 1))
                    (color (obj-color target))
                    (base (empty-grid oh ow 0)))
               (reduce (lambda (gg c)
                         (set-cell gg (- (first c) rmin) (- (second c) cmin) color))
                       base
                       cells))))))

Provenance

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