← beb87e1c1b19 · bedf1922195c →
bedcbc1cb6fb
Read every nonzero, non-blue color on the main diagonal in top-to-bottom order. Keep the blue rectangular frame, then fill its interior with those marker colors as nested rectangles from outside to inside.
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* ((markers (let loop
((k 0) (acc (list)))
(cond
((>= k (min h w)) (reverse acc))
(else (let ((v (at g k k)))
(cond
((and (!= v 0) (!= v 1)) (loop (+ k 1) (cons v acc)))
(else (loop (+ k 1) acc))))))))
(blues (find-color g 1))
(fr1 (+ (min-of first blues) 1))
(fc1 (+ (min-of second blues) 1))
(fr2 (- (max-of first blues) 1))
(fc2 (- (max-of second blues) 1))
(painted (make-hash)))
(let loop
((r1 fr1) (c1 fc1) (r2 fr2) (c2 fc2) (ms markers))
(when
(and (not (null? ms)) (<= r1 r2) (<= c1 c2))
(let ((clr (car ms)))
(for* ((r (range r1 (+ r2 1))) (c (range c1 (+ c2 1))))
(hash-set! painted (list r c) clr))
(loop (+ r1 1) (+ c1 1) (- r2 1) (- c2 1) (cdr ms)))))
(cellmap g
(r c v)
(cond
((hash-has-key? painted (list r c)) (hash-ref painted (list r c)))
(else v)))))))Provenance
- Generator
- generators/bedcbc1cb6fb/generator.py
- Notes and decisions
- generators/bedcbc1cb6fb/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 893ce4c00ef7279f7318641b5c299e8cb04f67ce98da8e2a9ed436f5e50ec440
- Rule hash
- 7e5bd081e0cd
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bedcbc1cb6fb --count 1 --seed 20261108 --test 1