← 2ca60ab198d6 · 2d2b102b7740 →
2d2455d1008d
Fill zero cells inside each complete yellow frame that contains exactly one distinct marker color.
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 (cell<? a b)
(or (< (first a) (first b))
(and (= (first a) (first b)) (< (second a) (second b)))))
(define (rect-border r0 c0 r1 c1)
(filter (lambda (p)
(or (= (first p) r0) (= (first p) r1)
(= (second p) c0) (= (second p) c1)))
(positions-in-rect r0 c0 r1 c1)))
(define (hollow-rect? obj)
(let ((bb (obj-bbox obj)))
(and (>= (- (third bb) (first bb)) 2)
(>= (- (fourth bb) (second bb)) 2)
(equal? (sort (obj-cells obj) cell<?)
(sort (rect-border (first bb) (second bb) (third bb) (fourth bb)) cell<?)))))
(for/fold ([out g]) ([obj (filter (lambda (o) (and (= (obj-color o) 4) (hollow-rect? o))) (objects g 0))])
(let* ((inside (bbox-interior-cells obj))
(markers (filter (lambda (p)
(let ((v (at g (first p) (second p))))
(and (not (= v 0)) (not (= v 4)))))
inside)))
(if (= (length (remove-duplicates (map (lambda (p) (at g (first p) (second p))) markers))) 1)
(let ((fill (at g (first (first markers)) (second (first markers)))))
(foldl (lambda (p acc)
(if (= (at acc (first p) (second p)) 0)
(set-cell acc (first p) (second p) fill)
acc))
out inside))
out)))))Provenance
- Generator
- generators/2d2455d1008d/generator.py
- Notes and decisions
- generators/2d2455d1008d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5c50aa566fa8a0f4f2b650d2c13fbd7e998b7b7deed3ef52081865f0ed3657e7
- Rule hash
- cfe81ed70c6a
- Sources
- bank:3cb9777539c7
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2d2455d1008d --count 1 --seed 20261108 --test 1