← 9679db24667b · 96c1983b6cb5 →

9686a12edc93

A 7..16 by 9..18 zero-background grid contains 1..5 clear same-color axis-aligned endpoint pairs. The reference draws only their inclusive segments on an otherwise empty output. Scheduled examples may also contain one different-color aligned pair blocked by an endpoint of a clear pair, explicitly teaching the zero-interior precondition while clear-only anchors preserve canonical palette roles.

parametric familyaxis alignmentpairing by colorsame-size construction

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 (line-clear-horizontal? grid r a b) (all? (lambda (c) (or (= (at grid r c) 0) (= c a) (= c b))) (range a (+ b 1)))) (define (line-clear-vertical? grid c a b) (all? (lambda (r) (or (= (at grid r c) 0) (= r a) (= r b))) (range a (+ b 1)))) (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) (let* ((a (first cells)) (b (second cells)) (r1 (first a)) (c1 (second a)) (r2 (first b)) (c2 (second b))) (cond ((= r1 r2) (let ((lo (min c1 c2)) (hi (max c1 c2))) (if (line-clear-horizontal? g r1 lo hi) (for/fold ((acc out)) ((c (in-range lo (+ hi 1)))) (set-cell acc r1 c color)) out))) ((= c1 c2) (let ((lo (min r1 r2)) (hi (max r1 r2))) (if (line-clear-vertical? g c1 lo hi) (for/fold ((acc out)) ((r (in-range lo (+ hi 1)))) (set-cell acc r c1 color)) out))) (else out))) out)))))

Provenance

Generator
generators/9686a12edc93/generator.py
Notes and decisions
generators/9686a12edc93/notes.md
Review label
reviewed_safe
Generator SHA-256
f9310b3189afc01f5fff782bbf95e50f53408b9374763132400a3deb148668b6
Rule hash
74f975abb98b
Sources
bank:0e5302a13aba
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9686a12edc93 --count 1 --seed 20261108 --test 1