← 48a4d72eb621 · 48c4c6a42b59 →
48bda9528e71
Erase one connected nested shape, then use its unique least-frequent color to mark one cell beyond each occupied row and column extent.
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)))
(let* ((hh (rows g))
(ww (cols g))
(bg 8)
(cells (for*/list ((r (range 0 hh)) (c (range 0 ww)) #:when (!= (at g r c) bg))
(list r c (at g r c))))
(freq (make-hash))
(dummy (for ((cell cells))
(hash-set! freq
(third cell)
(+ 1 (hash-ref freq (third cell) 0)))))
(inner-color (car (sort (hash-keys freq)
(lambda (a b)
(< (hash-ref freq a 0) (hash-ref freq b 0))))))
(result (make-hash)))
(for* ((r (range 0 hh)) (c (range 0 ww))) (hash-set! result (list r c) bg))
(for ((r (range 0 hh)))
(let ((row-cs (map second
(filter (lambda (cell) (= (first cell) r)) cells))))
(unless
(null? row-cs)
(let ((left (min-list row-cs))
(right (max-list row-cs)))
(when
(>= (- left 1) 0)
(hash-set! result (list r (- left 1)) inner-color))
(when
(< (+ right 1) ww)
(hash-set! result (list r (+ right 1)) inner-color))))))
(for ((c (range 0 ww)))
(let ((col-rs (map first
(filter (lambda (cell) (= (second cell) c)) cells))))
(unless
(null? col-rs)
(let ((top (min-list col-rs))
(bot (max-list col-rs)))
(when
(>= (- top 1) 0)
(hash-set! result (list (- top 1) c) inner-color))
(when
(< (+ bot 1) hh)
(hash-set! result (list (+ bot 1) c) inner-color))))))
(build-grid hh ww (r c) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/48bda9528e71/generator.py
- Notes and decisions
- generators/48bda9528e71/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- fa8f82d356825247d12033364a9c6de885922c2d3829e2de75399d211516cae6
- Rule hash
- b9f9e9bda3f3
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 48bda9528e71 --count 1 --seed 20261108 --test 1