Esempio n. 1
0
 def get_ground_set(self) -> _structure.Structure:
     """Return the :term:`ground set` of the lowest-level algebra of this :class:`Set`."""
     if len(self.data) == 0:
         return _structure.Structure()
     elements_ground_set = _structure.Union(elem.get_ground_set() for elem in self.data)
     if len(elements_ground_set.data) == 1:
         return _structure.PowerSet(_misc.get_single_iter_elem(elements_ground_set.data))
     else:
         return _structure.PowerSet(elements_ground_set)
Esempio n. 2
0
def get_absolute_ground_set() -> _structure.Structure:
    """Return the :term:`absolute ground set` of this :term:`algebra`."""
    return _structure.PowerSet(
        _structure.CartesianProduct(_relations.get_absolute_ground_set(),
                                    _structure.GenesisSetN()))
Esempio n. 3
0
def get_ground_set() -> _structure.Structure:
    """Return the :term:`ground set` of this :term:`algebra`."""
    return _structure.PowerSet(_relations.get_ground_set())
Esempio n. 4
0
def get_absolute_ground_set() -> _structure.Structure:
    """Return the :term:`absolute ground set` of this :term:`algebra`."""
    return _structure.PowerSet(_structure.GenesisSetA())
Esempio n. 5
0
def get_ground_set() -> _structure.Structure:
    """Return the :term:`ground set` of this :term:`algebra`."""
    return _structure.PowerSet(
        _structure.CartesianProduct(_structure.GenesisSetM(),
                                    _structure.GenesisSetN()))