← 78ab57735469 · 78e3f26e92aa →
78cc0b96bc87
One hollow rectangular frame on a zero background contains exactly two distinct seed colors on one row. The left seed anchors the top-left interior color, the right seed is the alternating color, and both seeds already agree with the checkerboard parity they demonstrate.
parametric familyframe detectionparity fillseed colors
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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (rect-border? obj)
(let* ((bb (obj-bbox obj))
(h (+ (- (third bb) (first bb)) 1))
(w (+ (- (fourth bb) (second bb)) 1))
(border-size (- (* h w) (* (max 0 (- h 2)) (max 0 (- w 2))))))
(and (>= (obj-size obj) 8)
(= (obj-size obj) border-size)
(all? (lambda (p)
(or (= (first p) (first bb)) (= (first p) (third bb))
(= (second p) (second bb)) (= (second p) (fourth bb))))
(obj-cells obj)))))
(let* ((frame (first (filter rect-border? (objects g 0))))
(bb (obj-bbox frame))
(interior (filter (lambda (cell)
(let ((v (third cell)))
(and (not (= v 0))
(> (first cell) (first bb))
(< (first cell) (third bb))
(> (second cell) (second bb))
(< (second cell) (fourth bb)))))
(grid-cells g)))
(a (third (first interior)))
(b (third (second interior)))
(with-border (paint-cells (empty-grid (rows g) (cols g) 0) (obj-cells frame) (obj-color frame))))
(for*/fold ([out with-border])
([r (in-range (+ (first bb) 1) (third bb))]
[c (in-range (+ (second bb) 1) (fourth bb))])
(set-cell out r c
(if (= (modulo (+ (- r (+ (first bb) 1)) (- c (+ (second bb) 1))) 2) 0) a b))))))Provenance
- Generator
- generators/78cc0b96bc87/generator.py
- Notes and decisions
- generators/78cc0b96bc87/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 0a62551caf756250069d4831784c5d76b04e2bea84a620d638c85f4e4dd2ad6c
- Rule hash
- 5ed55d63a700
- Sources
- bank:f3a2e93ae563
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 78cc0b96bc87 --count 1 --seed 20261108 --test 1