← 91ba301501c5 · 924a6f0f0549 →
91c488d9ffdc
A 7..12 by 7..12 zero-background grid contains one to three distinct nonzero colors. Each color appears exactly twice at different rows and columns, marking opposite corners of a rectangle at least 3x3. Rectangle borders do not intersect, although one rectangle may be nested inside another. On a fresh zero grid of the same size, draw all four border edges of every marked rectangle in its pair color; interiors remain zero.
parametric familybounding boxesopposite cornerssame-size drawing
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 (border-cells bb)
(append
(for/list ([c (in-range (second bb) (+ (fourth bb) 1))]) (list (first bb) c))
(for/list ([c (in-range (second bb) (+ (fourth bb) 1))]) (list (third bb) c))
(for/list ([r (in-range (+ (first bb) 1) (third bb))]) (list r (second bb)))
(for/list ([r (in-range (+ (first bb) 1) (third bb))]) (list r (fourth bb)))))
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([color (in-list (grid-colors g 0))])
(let ((cells (find-color g color)))
(if (= (length cells) 2)
(paint-cells out (border-cells (bbox-of-cells cells)) color)
out)))))Provenance
- Generator
- generators/91c488d9ffdc/generator.py
- Notes and decisions
- generators/91c488d9ffdc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cd8e5459153d6c26d65a65143f12d2f398cf1c596b038f53c34f8fc27d397aa8
- Rule hash
- 515ca330e152
- Sources
- bank:f2c80d62966a
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 91c488d9ffdc --count 1 --seed 20261108 --test 1