← 9e2802ee78bd · 9e6e338d0ca7 →
9e47b59d6afc
A 0-background grid contains exactly one connected red(2) shape and one connected green(3) shape in opposite regions. Normalize each shape to its own bounding-box origin, then overlay the normalized cell sets: shared cells become cyan(8), red-only cells stay 2, and green-only cells stay 3. Generated pairs always have a nonempty overlap and at least one exclusive cell on each side, so all three output colors are required.
boolean_shape_algebranormalizationobjectsoverlay
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 ((dummy 0))
(define (pt< a b)
(if (= (first a) (first b)) (< (second a) (second b)) (< (first a) (first b))))
(define (normalize cells)
(let* ((bb (bbox-of-cells cells))
(r0 (first bb))
(c0 (second bb)))
(sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) pt<)))
(define a (normalize (find-color g 2)))
(define b (normalize (find-color g 3)))
(define allc (remove-duplicates (append a b)))
(define out-h (+ 1 (apply max (map first allc))))
(define out-w (+ 1 (apply max (map second allc))))
(for/fold ([out (empty-grid out-h out-w 0)]) ([p (in-list allc)])
(cond [(and (member p a) (member p b)) (set-cell out (first p) (second p) 8)]
[(member p a) (set-cell out (first p) (second p) 2)]
[else (set-cell out (first p) (second p) 3)]))))Provenance
- Generator
- generators/9e47b59d6afc/generator.py
- Notes and decisions
- generators/9e47b59d6afc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e350f01e1fbe0c029450c31a655409b0a995642a4812faa5a3c48eea8afcf07e
- Rule hash
- cc8053a66713
- Sources
- bank:d7b013a675b4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9e47b59d6afc --count 1 --seed 20261108 --test 1