← 5553241d87bf · 5573cf8e2aa4 →
5566bf611783
0-bg grid with color-5 walls (full divider columns/rows plus connecting segments) carving regions that hold a sparse scatter of color-2 and color-3 markers. Rule: per 4-connected non-5 region, fill its 0-cells with the majority of {2,3} (tie -> 8).
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 (passable? r c v) (or (= v 0) (= v 2) (= v 3)))
(define seen (make-hash))
(define comps (list))
(for ([p (in-list (grid-positions g))])
(let ((r (first p)) (c (second p)))
(when (and (not (hash-has-key? seen p)) (passable? r c (at g r c)))
(let ((comp (connected-region g r c passable?)))
(for ([q (in-list comp)]) (hash-set! seen q #t))
(set! comps (cons comp comps))))))
(foldl
(lambda (comp acc)
(let* ((cnt2 (count-where (lambda (p) (= (at g (first p) (second p)) 2)) comp))
(cnt3 (count-where (lambda (p) (= (at g (first p) (second p)) 3)) comp))
(fill (cond [(> cnt2 cnt3) 2] [(> cnt3 cnt2) 3] [else 8])))
(foldl (lambda (p acc2)
(if (= (at g (first p) (second p)) 0)
(set-cell acc2 (first p) (second p) fill)
acc2))
acc comp)))
g comps)))Provenance
- Generator
- generators/5566bf611783/generator.py
- Notes and decisions
- generators/5566bf611783/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1c9811447fdfa633f52107ba5464a208a37a98b3f7ef07734914c1ff62018182
- Rule hash
- 06016d46a01f
- Sources
- bank:b18129f611a9
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 5566bf611783 --count 1 --seed 20261108 --test 1