← aa0b08801e61 · aa2b217615f3 →

aa14c6a9f111

A black 7..16 by 7..16 grid contains 2..3 distinct colors, each in exactly two diagonally opposite cells of an axis-aligned rectangle. Rectangles are either spatially disjoint or form a strictly nested chain; their outlines never overlap. At least one rectangle is hollow and at least one is two cells thick. Draw every rectangle outline in its corner color on a fresh black canvas.

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! (let ((dummy 0)) (define (e8b-outline-box grid box color) (let* ((r1 (first box)) (c1 (second box)) (r2 (third box)) (c2 (fourth box)) (border (filter (lambda (p) (or (= (first p) r1) (= (first p) r2) (= (second p) c1) (= (second p) c2))) (positions-in-rect r1 c1 r2 c2)))) (paint-cells grid border color))) (define (e8b-colors-reading grid) (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at grid (first p) (second p))) (grid-positions grid))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((color (in-list (e8b-colors-reading g)))) (let ((cells (find-color g color))) (if (= (length cells) 2) (let ((a (first cells)) (b (second cells))) (if (and (not (= (first a) (first b))) (not (= (second a) (second b)))) (let ((rlo (min (first a) (first b))) (rhi (max (first a) (first b))) (clo (min (second a) (second b))) (chi (max (second a) (second b)))) (e8b-outline-box out (list rlo clo rhi chi) color)) out)) out)))))

Provenance

Generator
generators/aa14c6a9f111/generator.py
Notes and decisions
generators/aa14c6a9f111/notes.md
Review label
reviewed_safe
Generator SHA-256
6004e5ec63dfaf94538dfba4497fcac964d2685456e318a774138c9165622915
Rule hash
3f7149fda1ec
Sources
bank:84602fe0e9ce
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate aa14c6a9f111 --count 1 --seed 20261108 --test 1