← 138ffc14ac65 · 13a5c3f25c60 →
139d29b1283d
Select the unique largest 4-connected color-3 template, normalize its bounding-box origin, and stamp it at the color-1 and color-2 anchors. The unchanged Racket rule paints only their in-bounds intersection in 8 on a new zero grid. Smaller green distractors and clipping are supported.
parametric familyset intersectiontemplate extractiontranslation
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 (norm-cells cells) (sort (normalize-cells cells) cell<)) (define (objs-color grid color) (filter (lambda (obj) (= (obj-color obj) color)) (objects grid 0))) (define (first-pos grid color) (first (find-color grid color))) (let* ((template (first (sort (objs-color g 3) (lambda (a b) (> (obj-size a) (obj-size b)))))) (shape (norm-cells (obj-cells template))) (a1 (first-pos g 1)) (a2 (first-pos g 2)) (stamp1 (map (lambda (p) (list (+ (first a1) (first p)) (+ (second a1) (second p)))) shape)) (stamp2 (map (lambda (p) (list (+ (first a2) (first p)) (+ (second a2) (second p)))) shape)) (overlap (filter (lambda (p) (member? p stamp2)) stamp1))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((p (in-list overlap))) (if (in-bounds? (first p) (second p) (rows g) (cols g)) (set-cell out (first p) (second p) 8) out)))))
Provenance
- Generator
- generators/139d29b1283d/generator.py
- Notes and decisions
- generators/139d29b1283d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- d8916c811c9f894e620b29b9344d0eec388c084b31bddcf9e788ff3676217121
- Rule hash
- fcd41965ebef
- Sources
- bank:081996b60750
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 139d29b1283d --count 1 --seed 20261108 --test 1