← c739fcbc6cbd · c782972f840b →

c753cc4a2652

Outline in red the first non-red component touching the first red marker, clearing markers, interiors, and distractors.

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 marker (first (find-color g 2)))
    (define (touches-marker? obj)
      (any? (lambda (p)
              (any? (lambda (d) (and (= (+ (first marker) (first d)) (first p))
                                      (= (+ (second marker) (second d)) (second p))))
                    cardinal-deltas))
            (obj-cells obj)))
    (define target (first (filter (lambda (o) (and (not (= (obj-color o) 2)) (touches-marker? o))) (objects g 0))))
    (define target-set (for/set ([p (in-list (obj-cells target))]) (cons (first p) (second p))))
    (define perim
      (filter (lambda (p)
                (any? (lambda (d)
                        (not (set-member? target-set (cons (+ (first p) (first d)) (+ (second p) (second d))))))
                      cardinal-deltas))
              (obj-cells target)))
    (paint-cells (empty-grid (rows g) (cols g) 0) perim 2)))

Provenance

Generator
generators/c753cc4a2652/generator.py
Notes and decisions
generators/c753cc4a2652/notes.md
Review label
reviewed_safe
Generator SHA-256
b13c1408b1c296fed0c7bfa2ce8c76ad88014f4f8fcc29ec95e8a13e3dfc76b0
Rule hash
9fffa90f1037
Sources
bank:e57147319d67
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c753cc4a2652 --count 1 --seed 20261108 --test 1