← c953833a3fba · c9db537b5068 →

c9b2eae14052

On a zero-background grid with 3-6 separated, uniquely colored objects, copy exactly the objects whose bounding boxes touch one grid border. Erase interior objects and corner/multi-border objects.

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 (f4-border-count cells h w) (let ((sides (remove-duplicates (apply append (map (lambda (p) (append (if (= (first p) 0) (list 'top) (list)) (if (= (first p) (- h 1)) (list 'bottom) (list)) (if (= (second p) 0) (list 'left) (list)) (if (= (second p) (- w 1)) (list 'right) (list)))) cells))))) (length sides))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (if (= (f4-border-count (obj-cells obj) (rows g) (cols g)) 1) (paint-cells out (obj-cells obj) (obj-color obj)) out))))

Provenance

Generator
generators/c9b2eae14052/generator.py
Notes and decisions
generators/c9b2eae14052/notes.md
Review label
reviewed_safe
Generator SHA-256
eabe4c07ccc507e4e27d90a43d735aef25c2b07bb0b63899926ade0ca92615ea
Rule hash
83a03df6b45f
Sources
bank:884454e62c49
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c9b2eae14052 --count 1 --seed 20261108 --test 1