← 96c1983b6cb5 · 96d4a788da47 →
96d2d525a266
On a 0-background grid, each color occurring exactly twice at positions in distinct rows and columns marks opposite rectangle corners. Paint that rectangle's outline in the marker color. Ignore singletons, aligned exact pairs, and colors occurring three or more times. Outlines may cross and overwrite existing cells; qualifying colors are applied in row-major first-occurrence order, matching the canonical Racket authority.
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 (rect-border a b)
(let* ((r1 (min (first a) (first b)))
(r2 (max (first a) (first b)))
(c1 (min (second a) (second b)))
(c2 (max (second a) (second b))))
(filter (lambda (p) (or (= (first p) r1) (= (first p) r2)
(= (second p) c1) (= (second p) c2)))
(positions-in-rect r1 c1 r2 c2))))
(for/fold ([out g]) ([color (in-list (remove-duplicates (map third (filter (lambda (cell) (not (= (third cell) 0))) (grid-cells g)))))])
(let ((pts (find-color g color)))
(if (and (= (length pts) 2)
(not (= (first (first pts)) (first (second pts))))
(not (= (second (first pts)) (second (second pts)))))
(paint-cells out (rect-border (first pts) (second pts)) color)
out)))))Provenance
- Generator
- generators/96d2d525a266/generator.py
- Notes and decisions
- generators/96d2d525a266/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- eb15cc04ebcd9bfe69a1c4c04bc4db97588a9e549e5719c6b52857ac3de70d2f
- Rule hash
- c060c7f67bbd
- Sources
- bank:0d41ded5f4cd
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 96d2d525a266 --count 1 --seed 20261108 --test 1