← 97d3714964b0 · 97f17772dd96 →

97dd5f3c96b9

Exactly three nonzero colors appear twice each. Every pair is separated and row- or column-aligned; the inclusive pair segments are disjoint and the scene always contains both horizontal and vertical examples.

parametric familyhorizontal/vertical alignmentline drawingpair matching

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 (paint grid cells color) (for/fold ((out grid)) ((p (in-list cells))) (if (in-bounds? (first p) (second p) (rows out) (cols out)) (set-cell out (first p) (second p) color) out))) (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))) (cond ((= (first a) (first b)) (paint out (for/list ((c (in-range (min (second a) (second b)) (+ (max (second a) (second b)) 1)))) (list (first a) c)) color)) ((= (second a) (second b)) (paint out (for/list ((r (in-range (min (first a) (first b)) (+ (max (first a) (first b)) 1)))) (list r (second a))) color)) (else out))) out)))))

Provenance

Generator
generators/97dd5f3c96b9/generator.py
Notes and decisions
generators/97dd5f3c96b9/notes.md
Review label
reviewed_safe
Generator SHA-256
8626cabe946ae140676985a8fae154be1dff2e910cc89b8ebce7b62ed6d9be31
Rule hash
8d1d1f690046
Sources
bank:647beeb937e1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 97dd5f3c96b9 --count 1 --seed 20261108 --test 1