← 71492f8cef8f · 7195f447bb20 →
7185b8225f1c
Paint every zero in the clipped one-cell-expanded bounding rectangle of each multi-cell red component green; preserve red cells and red singletons, with alternating concave witnesses against a per-cell-halo shortcut.
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))
(visited (make-hash))
(result (make-hash)))
(for* ((r (range 0 hh)) (c (range 0 ww)))
(hash-set! result (list r c) (at g r c)))
(for* ((r (range 0 hh)) (c (range 0 ww)))
(when
(and (= (at g r c) 2) (not (hash-has-key? visited (list r c))))
(let ((cells (list)))
(let bfs
((q (list (list r c))))
(unless
(null? q)
(let ((cr (first (car q)))
(cc (second (car q))))
(cond
((or
(hash-has-key? visited (list cr cc))
(< cr 0)
(>= cr hh)
(< cc 0)
(>= cc ww)
(!= (at g cr cc) 2)) (bfs (cdr q)))
(else (hash-set! visited (list cr cc) #t)
(set! cells (cons (list cr cc) cells))
(bfs (append (cdr q)
(list (list (- cr 1) cc)
(list (+ cr 1) cc)
(list cr (- cc 1))
(list cr (+ cc 1))))))))))
(when
(>= (length cells) 2)
(let ((r1 (min-of first cells))
(c1 (min-of second cells))
(r2 (max-of first cells))
(c2 (max-of second cells)))
(for* ((br (range (- r1 1) (+ r2 2))) (bc (range (- c1 1) (+ c2 2))))
(when
(and
(>= br 0)
(< br hh)
(>= bc 0)
(< bc ww)
(zero? (hash-ref result (list br bc) 0)))
(hash-set! result (list br bc) 3))))))))
(build-grid hh ww (r c) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/7185b8225f1c/generator.py
- Notes and decisions
- generators/7185b8225f1c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 940518d2d0e4b3ee54487d3cc180bdf6ef1a323bd661053b503a589d17f738c0
- Rule hash
- df2d840acdd1
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 7185b8225f1c --count 1 --seed 20261108 --test 1