← f1668de79fa1 · f1c8ea826b10 →

f191c16f6179

Fill initially empty 45-degree gaps for colors occurring exactly twice. Read eligibility from the original input; later colors in input reading order win at crossings. A three-draw schedule supplies one compact example and two examples teaching non-diagonal, blocker, cardinality and order guards.

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 (e8b-colors-reading g)))) (let ((cells (find-color g color))) (if (= (length cells) 2) (let* ((a (first cells)) (b (second cells)) (dr (- (first b) (first a))) (dc (- (second b) (second a)))) (if (and (= (abs dr) (abs dc)) (>= (abs dr) 2)) (let ((sr (if (> dr 0) 1 -1)) (sc (if (> dc 0) 1 -1))) (if (all? (lambda (k) (= (at g (+ (first a) (* k sr)) (+ (second a) (* k sc))) 0)) (range 1 (abs dr))) (for/fold ((acc out)) ((k (in-range 1 (abs dr)))) (set-cell acc (+ (first a) (* k sr)) (+ (second a) (* k sc)) color)) out)) out)) out)))))

Provenance

Generator
generators/f191c16f6179/generator.py
Notes and decisions
generators/f191c16f6179/notes.md
Review label
reviewed_safe
Generator SHA-256
23e1cd94475e1a4b8ad285a8cfefbae488c04cbb1d5c4e8009472345548b83f2
Rule hash
f7b2de2c3ed0
Sources
bank:bfb58307fa26
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f191c16f6179 --count 1 --seed 20261108 --test 1