← b7c3b8bc9805 · b7e4aaffabac →
b7d9205dd62d
A zero-background grid contains at least two nonzero colours whose two cells are diagonally opposite corners of separate axis-aligned rectangles. Fill every cell of each implied rectangle with that pair's colour. Some lessons also contain a different colour appearing twice on one row or one column; that collinear pair stays unchanged because it is not diagonal.
geometry from cornersmulti-object handlingrectangle fill
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-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 g)) ((color (in-list (sort (e8b-colors-reading g) <)))) (let ((cells (find-color g color))) (if (= (length cells) 2) (let* ((a (first cells)) (b (second cells)) (ra (min (first a) (first b))) (rb (max (first a) (first b))) (ca (min (second a) (second b))) (cb (max (second a) (second b)))) (if (and (not (= (first a) (first b))) (not (= (second a) (second b)))) (paint-cells out (positions-in-rect ra ca rb cb) color) out)) out)))))
Provenance
- Generator
- generators/b7d9205dd62d/generator.py
- Notes and decisions
- generators/b7d9205dd62d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 05267cf590f998054d9f132eb8d2c0a901c5009618d2d5410ba3d656b8e17543
- Rule hash
- 913178465622
- Sources
- bank:3cbcef69c8ec
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b7d9205dd62d --count 1 --seed 20261108 --test 1