← f60cfd11346a · f65b8464b007 →
f65705efd235
A 7..24 by 7..24 zero-background grid contains 2..6 distinct nonzero colors. Each color occupies exactly the four corners of one axis-aligned rectangle. Draw every full rectangle border on a fresh zero canvas in ascending color order; larger colors overwrite smaller colors where borders cross. The scheduled curriculum includes canonical two-cell-wide rectangles, hollow interiors, overlapping outlines, and >2 colors.
border drawingcornersrectangle inference
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 r0 c0 r1 c1)
(append (for/list ([c (in-range c0 (+ c1 1))]) (list r0 c))
(for/list ([c (in-range c0 (+ c1 1))]) (list r1 c))
(for/list ([r (in-range (+ r0 1) r1)]) (list r c0))
(for/list ([r (in-range (+ r0 1) r1)]) (list r c1))))
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([color (in-list (grid-colors g 0))])
(let ((pts (find-color g color)))
(if (= (length pts) 4)
(let* ((rs (remove-duplicates (sort (map first pts) <)))
(cs (remove-duplicates (sort (map second pts) <)))
(corners (if (and (= (length rs) 2) (= (length cs) 2))
(list (list (first rs) (first cs))
(list (first rs) (second cs))
(list (second rs) (first cs))
(list (second rs) (second cs)))
(list))))
(if (and (= (length rs) 2) (= (length cs) 2)
(all? (lambda (p) (member p corners)) pts))
(paint-cells out (border-cells (first rs) (first cs) (second rs) (second cs)) color)
out))
out)))))Provenance
- Generator
- generators/f65705efd235/generator.py
- Notes and decisions
- generators/f65705efd235/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- df598a4c9f22f38e6fec481d948022bf5f82bb8a32b8f6c31c1b6eb9500b2fb4
- Rule hash
- 635fcfe4fd6f
- Sources
- bank:0527e10c7137
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f65705efd235 --count 1 --seed 20261108 --test 1