← 95524d104174 · 95705262dbee →

956425dc719c

Recolor only orange components touching exactly one border to gray; preserve interior/corner orange components and all non-orange 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!
  (let ((dummy 0))
    (define h (rows g))
    (define w (cols g))
    (define (side-count obj)
      (+ (if (= (obj-r1 obj) 0) 1 0)
         (if (= (obj-r2 obj) (- h 1)) 1 0)
         (if (= (obj-c1 obj) 0) 1 0)
         (if (= (obj-c2 obj) (- w 1)) 1 0)))
    (for/fold ([out g]) ([obj (filter (lambda (o) (and (= (obj-color o) 7) (= (side-count o) 1))) (objects g 0))])
      (paint-cells out (obj-cells obj) 5))))

Provenance

Generator
generators/956425dc719c/generator.py
Notes and decisions
generators/956425dc719c/notes.md
Review label
reviewed_safe
Generator SHA-256
eda810015a88b0a6a3c77d2fd958c3f76b47d9fd0d305837b0f280f3ad27626d
Rule hash
69dae4a2243d
Sources
bank:3cb9777539c7
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 956425dc719c --count 1 --seed 20261108 --test 1