← 659980b6f715 · 65d8d5108df1 →

65a142eb4d9b

On a black grid, expand every nonzero cell that has no same-color cardinal neighbor into a same-color plus, clipped at the grid boundary. Same-color cardinal components remain unchanged. The linked three-demo curriculum distinguishes local 4-neighbor isolation, repeated colors, non-singletons, diagonal contact, and edge clipping.

same_size_localshape_growth

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]) ([cell (in-list (filter (lambda (x) (not (= (third x) 0))) (grid-cells g)))])
    (let ((r (first cell)) (c (second cell)) (v (third cell)))
      (if (empty? (filter (lambda (d)
                            (let ((nr (+ r (first d))) (nc (+ c (second d))))
                              (and (in-bounds? nr nc (rows g) (cols g))
                                   (= (at g nr nc) v))))
                          cardinal-deltas))
          (paint-cells out
                       (filter (lambda (p) (in-bounds? (first p) (second p) (rows g) (cols g)))
                               (cons (list r c)
                                     (map (lambda (d) (list (+ r (first d)) (+ c (second d)))) cardinal-deltas)))
                       v)
          out))))

Provenance

Generator
generators/65a142eb4d9b/generator.py
Notes and decisions
generators/65a142eb4d9b/notes.md
Review label
reviewed_safe
Generator SHA-256
813bbc9e683f528b5d7039cca54f528a0706f2d6e4236edd3bb47470c5f99959
Rule hash
7224a7556e4b
Sources
bank:276b5e4c56a1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 65a142eb4d9b --count 1 --seed 20261108 --test 1