← be02b305dd1e · be5d9fa6fec1 →

be05cee2806f

Dense ten-color fields containing both zero components adjacent to color 1 and zero components isolated from color 1; only the adjacent components are absorbed.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (begin
             (define zero-objs
               (filter (lambda (obj) (zero? (obj-color obj))) (objects g -1)))
             (define dirs (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1)))
             (define (touches-one? obj)
               (for/or ((p (obj-cells obj)))
                       (for/or ((d dirs))
                               (= (safe-at g
                                           (+ (first p) (first d))
                                           (+ (second p) (second d))
                                           -1)
                                  1))))
             (for/fold ((out g))
               ((obj zero-objs))
               (if (touches-one? obj) (recolor-cells out (obj-cells obj) 1) out))))))

Provenance

Generator
generators/be05cee2806f/generator.py
Notes and decisions
generators/be05cee2806f/notes.md
Review label
reviewed_safe
Generator SHA-256
27f3f462d080639b16852892ebf41b287e69d8bc5c14a50e7e44cb9a11882202
Rule hash
546de66737cf
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate be05cee2806f --count 1 --seed 20261108 --test 1