Skip to content

Canonicalizing Unbounded Intervals #37

@vansivallab

Description

@vansivallab

Canonicalizing an unbounded interval changes the meaning of the interval.

As an example:

>>> a = IntInterval((None, None))
>>> infinity.inf in a
False
>>> b = canonicalize(a, lower_inc=True, upper_inc=True)
>>> b
IntInterval('[,]')
>>> infinity.inf in b
True

The initial version (a) of the interval suggests that infinity is not included in the interval, but after the canonicalization infinity is in the interval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions