← 9c50790b939c · 9c5bdbcdcd50 →
9c5259babb4b
Remove singleton noise and recolor each 8-connected object by top-bottom, left-right-only, or asymmetric shape class.
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 bg (mode g))
(define objs (objects-8 g bg))
(define (sym-color obj)
(let* ((cells (obj-cells obj))
(rs (map first cells))
(cs (map second cells))
(rmin (min-list rs))
(rmax (max-list rs))
(cmin (min-list cs))
(cmax (max-list cs))
(oh (+ (- rmax rmin) 1))
(ow (+ (- cmax cmin) 1))
(norm (map (lambda (c)
(list (- (first c) rmin) (- (second c) cmin)))
cells))
(h-sym (andmap (lambda (c)
(any? (lambda (c2)
(= c2
(list (- (- oh 1) (first c))
(second c))))
norm))
norm))
(v-sym (andmap (lambda (c)
(any? (lambda (c2)
(= c2
(list (first c)
(- (- ow 1) (second c)))))
norm))
norm)))
(cond (h-sym 1) (v-sym 3) (else 6))))
(define base (empty-grid h w bg))
(reduce (lambda (gg obj)
(if (> (obj-size obj) 1)
(let ((c (sym-color obj)))
(recolor-cells gg (obj-cells obj) c))
gg))
base
objs)))))Provenance
- Generator
- generators/9c5259babb4b/generator.py
- Notes and decisions
- generators/9c5259babb4b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7c5d2997e758859f0ebebb8ce8b7ed86c4f7e9c5e40be49312220fc3a532fe83
- Rule hash
- 6a2cfe9a66b0
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9c5259babb4b --count 1 --seed 20261108 --test 1