Range(stop) or Range(start, stop, step) is the set of integers
start, start + step, ... before stop, in SymPy's canonical form
(the stop moves to the first value past the last element, and an empty
range is Range(0, 0, 1)). It supports membership with contains(),
intersections with intervals, ranges and the integers, and
sequence_terms(r, n) for its first elements. DisjointUnion(...)
tags the elements of each set with the set's index, like SymPy.
Examples
Range(1, 10, 3)
#> Range(1, 10, 3)
contains(Range(1, 10, 3), 7)
#> [1] TRUE
Intersection(Range(1, 10, 3), Interval(3, 8))
#> Range(4, 10, 3)