← 56c0055fd65f · 56f043832ecb →

56e5ade4e829

An 8..10 by 10..13 zero-background grid contains one connected color-1 shape, one connected color-2 shape, and one isolated singleton marker. Normalize each shape to its own bbox. Marker 3 selects intersection, marker 4 selects union, and marker 5..9 selects symmetric difference. Crop the selected nonempty result to its bbox and paint it color 8. Normalized shapes overlap but are nonidentical; both partial-overlap and strict-subset relations are generated, and all three operation outputs are observably distinct.

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* ((a (normalize-cells (obj-cells (first (filter (lambda (o) (= (obj-color o) 1)) (objects g 0))))))
         (b (normalize-cells (obj-cells (first (filter (lambda (o) (= (obj-color o) 2)) (objects g 0))))))
         (cells (cond [(not (empty? (find-color g 3))) (filter (lambda (p) (member? p b)) a)]
                      [(not (empty? (find-color g 4))) (remove-duplicates (append a b))]
                      [else (append (filter (lambda (p) (not (member? p b))) a)
                                    (filter (lambda (p) (not (member? p a))) b))])))
    (if (empty? cells)
        (empty-grid 1 1 0)
        (let* ((norm (normalize-cells cells))
               (h (+ 1 (apply max (map first norm))))
               (w (+ 1 (apply max (map second norm)))))
          (grid-from-fn h w (lambda (r c) (if (member? (list r c) norm) 8 0)))))))

Provenance

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