← 60d5b73ff222 · 611cc0f4e0fe →
61090a45e458
One to three separated rectangular frames each contain one singleton seed and one connected 2..5-cell target. Recolor every target cell to its frame's seed color. Generated lessons move targets away from the canonical interior upper-left anchor.
parametric familyconditional_recolorcontainment
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 (frame? obj)
(let* ((h (obj-h obj))
(w (obj-w obj))
(border-size (- (* h w) (* (max 0 (- h 2)) (max 0 (- w 2))))))
(and (>= h 3) (>= w 3) (= (obj-size obj) border-size)
(all? (lambda (p)
(or (= (first p) (obj-r1 obj)) (= (first p) (obj-r2 obj))
(= (second p) (obj-c1 obj)) (= (second p) (obj-c2 obj))))
(obj-cells obj)))))
(for/fold ([out g]) ([frame (in-list (filter frame? (objects g 0)))])
(let* ((inside (filter (lambda (cell)
(let ((r (first cell)) (c (second cell)) (v (third cell)))
(and (> r (obj-r1 frame)) (< r (obj-r2 frame))
(> c (obj-c1 frame)) (< c (obj-c2 frame))
(not (= v 0)))))
(grid-cells g)))
(colors (remove-duplicates (map third inside)))
(seed (first (filter (lambda (color)
(= (length (filter (lambda (cell) (= (third cell) color)) inside)) 1))
colors))))
(for/fold ([acc out]) ([cell (in-list inside)])
(if (= (third cell) seed)
acc
(set-cell acc (first cell) (second cell) seed)))))))Provenance
- Generator
- generators/61090a45e458/generator.py
- Notes and decisions
- generators/61090a45e458/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 91e10a278f8fc66c9e8a99b61d0c4a7ecd4c95cd57344703a52c4143b61d3e2b
- Rule hash
- 1041403d0f0a
- Sources
- bank:276b5e4c56a1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 61090a45e458 --count 1 --seed 20261108 --test 1