← d47a6fca9d15 · d48ec0001283 →

d48317a7c7c8

Cap each straight, monochrome 4-connected yellow component of exactly three cells with color 8 at each independently available endpoint. Nonzero and off-grid cap positions, other colors, and other components stay unchanged. Ordinary scenes supply contrasting distractors.

parametric family

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!
  (for/fold ([out g]) ([obj (in-list (filter (lambda (o) (and (= (obj-color o) 4) (= (obj-size o) 3))) (objects g 0)))])
    (let* ((rs (remove-duplicates (map first (obj-cells obj))))
           (cs (remove-duplicates (map second (obj-cells obj)))))
      (cond [(= (length rs) 1)
             (let* ((r (first rs))
                    (lo (apply min cs))
                    (hi (apply max cs)))
               (if (and (= (- hi lo) 2) (= (length cs) 3))
                   (foldl (lambda (c acc)
                            (if (and (in-bounds? r c (rows g) (cols g)) (= (at g r c) 0))
                                (set-cell acc r c 8)
                                acc))
                          out
                          (list (- lo 1) (+ hi 1)))
                   out))]
            [(= (length cs) 1)
             (let* ((c (first cs))
                    (lo (apply min rs))
                    (hi (apply max rs)))
               (if (and (= (- hi lo) 2) (= (length rs) 3))
                   (foldl (lambda (r acc)
                            (if (and (in-bounds? r c (rows g) (cols g)) (= (at g r c) 0))
                                (set-cell acc r c 8)
                                acc))
                          out
                          (list (- lo 1) (+ hi 1)))
                   out))]
            [else out]))))

Provenance

Generator
generators/d48317a7c7c8/generator.py
Notes and decisions
generators/d48317a7c7c8/notes.md
Review label
reviewed_safe
Generator SHA-256
7f65ed5ebc7cd917e71a8c6f121bcbdd6d411a6a98bf7c2db5bb5cf69b6717e2
Rule hash
b2af6531f18d
Sources
bank:d3d681cdb82a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate d48317a7c7c8 --count 1 --seed 20261108 --test 1