← b765f6c9ebeb · b7d9205dd62d →
b7c3b8bc9805
A 0-background grid contains one complete gray(5) rectangular frame with a blank interior and exactly two distinct singleton colored markers in corner regions outside it. Read markers row-major. Split the frame interior into four quadrants. Quadrants with the same parity as the first marker's corner receive its color; the other two receive the second marker color. The frame, markers, and all exterior cells are preserved.
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))
;; Positions of every gray(5) cell
(gray-cells (find-color g 5))
;; Top edge of the gray bbox
(fr1 (apply min (map first gray-cells)))
;; Left edge of the gray bbox
(fc1 (apply min (map second gray-cells)))
;; Bottom edge of the gray bbox
(fr2 (apply max (map first gray-cells)))
;; Right edge of the gray bbox
(fc2 (apply max (map second gray-cells)))
(ir1 (+ fr1 1)) (ic1 (+ fc1 1))
(ir2 (- fr2 1)) (ic2 (- fc2 1))
;; Positions matching a per-cell condition
(markers (for*/list ((r (range 0 h)) (c (range 0 w))
#:when (and (not (= (cell-at g r c) 0)) (not (= (cell-at g r c) 5))))
(list r c (cell-at g r c))))
(m1 (first markers)) (m2 (second markers))
(cr (quotient (+ fr1 fr2) 2))
(cc (quotient (+ fc1 fc2) 2))
(m1qr (if (< (first m1) cr) 0 1))
(m1qc (if (< (second m1) cc) 0 1))
(m1p (remainder (+ m1qr m1qc) 2))
;; Mutable lookup table for result
(result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w)))
(hash-set! result (list r c) (cell-at g r c)))
(let ((hmid (quotient (+ ir1 ir2) 2))
(wmid (quotient (+ ic1 ic2) 2)))
(for* ((r (range ir1 (+ ir2 1))) (c (range ic1 (+ ic2 1))))
(let* ((qr (if (< r (+ hmid 1)) 0 1))
(qc (if (< c (+ wmid 1)) 0 1))
(p (remainder (+ qr qc) 2))
(color (if (= p m1p) (third m1) (third m2))))
(hash-set! result (list r c) color))))
(grid-from-fn h w
(lambda (r c) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/b7c3b8bc9805/generator.py
- Notes and decisions
- generators/b7c3b8bc9805/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 369a87b8a3f8e3f3159d66b4ad7a356a96a36365bb6288016ffc5e09efc7b7f9
- Rule hash
- a17b11ed3aa1
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b7c3b8bc9805 --count 1 --seed 20261108 --test 1