← 2db2974cdb04 · 2e02ca69563c →
2dbcb80623f9
A 0-background 8..14 by 8..14 grid contains 1..4 separated clear 45-degree endpoint pairs and 0..2 non-diagonal same-color distractor pairs. Each nonzero color occurs exactly twice. For every color whose two cells lie on a clear 45-degree diagonal, fill the inclusive segment with that color; leave non-diagonal pairs unchanged. Default lessons use three foreground colors and regularly include a clear axis-aligned distractor to distinguish the rule from connecting all straight pairs.
connectiondiagonalmarkers
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 (positions-of-color grid color) (filter (lambda (p) (= (at grid (first p) (second p)) color)) (grid-positions grid))) (for/fold ((out g)) ((col (in-list (filter (lambda (v) (not (= v 0))) (grid-colors g 0))))) (let ((cells (positions-of-color g col))) (for*/fold ((acc out)) ((i (in-range (length cells))) (j (in-range (+ i 1) (length cells)))) (let* ((a (list-ref cells i)) (b (list-ref cells j)) (dr (- (first b) (first a))) (dc (- (second b) (second a)))) (if (and (not (= dr 0)) (= (abs dr) (abs dc))) (let* ((sr (if (> dr 0) 1 -1)) (sc (if (> dc 0) 1 -1)) (between (let loop ((rr (+ (first a) sr)) (cc (+ (second a) sc)) (ok #t)) (cond ((and (= rr (first b)) (= cc (second b))) ok) ((not (= (at g rr cc) 0)) #f) (else (loop (+ rr sr) (+ cc sc) ok)))))) (if between (let draw ((rr (first a)) (cc (second a)) (aout acc)) (let ((next (set-cell aout rr cc col))) (if (and (= rr (first b)) (= cc (second b))) next (draw (+ rr sr) (+ cc sc) next)))) acc)) acc)))))))
Provenance
- Generator
- generators/2dbcb80623f9/generator.py
- Notes and decisions
- generators/2dbcb80623f9/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 81ce79fdd5ce12922a82dd30e093edadf7f1082ef8d949605ad591e57bc08dd4
- Rule hash
- 1c2557609ca3
- Sources
- bank:d994e8798bff
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2dbcb80623f9 --count 1 --seed 20261108 --test 1