← 724d5770b986 · 729429f8ea2c →
725513c9d0c9
A 0-background grid contains three 4-connected nonzero components and one color-8 marker. Exactly one component has a cell at Manhattan distance 1 from the marker; diagonal-only distractors may also be present. The target component may contain one or two colors. Render only the full multicolor target into its tight bounding box, clear non-target intruders, and upscale the crop by 2 while preserving target colors and holes.
adjacency to markercomponent selectionscaling
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!
;; Treat every nonzero, non-marker cell as foreground so a target may contain
;; multiple colors while remaining one 4-connected component.
(let* ((marker (first (find-color g 8)))
(mask (cellmap g (r c v)
(if (or (= v 0) (= v 8)) 0 1)))
(components (map obj-cells (objects mask 0)))
;; The key relation is CARDINAL adjacency. Diagonal proximity is a
;; distractor and must not depend on component discovery order.
(target (first
(filter
(lambda (cells)
(any? (lambda (p)
(= (+ (abs (- (first p) (first marker)))
(abs (- (second p) (second marker))))
1))
cells))
components)))
(bb (bbox-of-cells target))
(r0 (first bb))
(c0 (second bb))
(r1 (third bb))
(c1 (fourth bb)))
;; Render only target cells into the crop. A marker or distractor that lies
;; inside a concavity of the target bbox is not part of the answer.
(upscale
(grid-from-fn (+ 1 (- r1 r0)) (+ 1 (- c1 c0))
(lambda (r c)
(let ((rr (+ r r0)) (cc (+ c c0)))
(if (member? (list rr cc) target) (at g rr cc) 0))))
2)))Provenance
- Generator
- generators/725513c9d0c9/generator.py
- Notes and decisions
- generators/725513c9d0c9/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e89c7caace24c4732945d75ee99e1886afd4e19298aabec30ad483f813b7490a
- Rule hash
- d635ca555626
- Sources
- bank:61554c4a7bfb
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 725513c9d0c9 --count 1 --seed 20261108 --test 1