← 725513c9d0c9 · 72a261e69372 →

729429f8ea2c

A 0-background grid contains a unique largest color-2 shape and a unique largest color-3 shape, plus 1-3 smaller disconnected distractors of each color. Normalize only the two largest components to their bounding-box origins, intersect their occupied cells, and paint the cropped result color 8. Grid size, shape density, distractor count, shapes, and placements vary while preserving a nonempty normalized intersection.

parametric familyboolean ANDdynamic outputobject normalization

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 ((dummy 0))
    (define (normalize cells)
      (let ((bb (bbox-of-cells cells)))
        (map (lambda (p) (list (- (first p) (first bb)) (- (second p) (second bb)))) cells)))
    (let* ((comp2 (first (sort (objects (keep-only g 2) 0) (lambda (a b) (> (obj-size a) (obj-size b))))))
           (comp3 (first (sort (objects (keep-only g 3) 0) (lambda (a b) (> (obj-size a) (obj-size b))))))
           (n2 (normalize (obj-cells comp2)))
           (n3 (normalize (obj-cells comp3)))
           (pts (sort (filter (lambda (p) (member p n3)) n2)
                      (lambda (a b) (if (= (first a) (first b)) (< (second a) (second b)) (< (first a) (first b)))))))
      (if (empty? pts)
          (list (list 0))
          (paint-cells (empty-grid (+ (apply max (map first pts)) 1)
                                   (+ (apply max (map second pts)) 1)
                                   0)
                         pts
                         8)))))

Provenance

Generator
generators/729429f8ea2c/generator.py
Notes and decisions
generators/729429f8ea2c/notes.md
Review label
reviewed_safe
Generator SHA-256
3fada6aaad7960379cb2eff746331f1d8e2728c97687967a4c2c2062285f0e69
Rule hash
4a6ab81414c9
Sources
bank:f3a2e93ae563
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 729429f8ea2c --count 1 --seed 20261108 --test 1