Example of facade set¶
-
class
sage.categories.examples.facade_sets.
IntegersCompletion
¶ Bases:
sage.structure.unique_representation.UniqueRepresentation
,sage.structure.parent.Parent
An example of a facade parent: the set of integers completed with \(+-\infty\)
This class illustrates a minimal implementation of a facade parent that models the union of several other parents.
EXAMPLES:
sage: S = Sets().Facade().example("union"); S An example of a facade set: the integers completed by +-infinity
-
class
sage.categories.examples.facade_sets.
PositiveIntegerMonoid
¶ Bases:
sage.structure.unique_representation.UniqueRepresentation
,sage.structure.parent.Parent
An example of a facade parent: the positive integers viewed as a multiplicative monoid
This class illustrates a minimal implementation of a facade parent which models a subset of a set.
EXAMPLES:
sage: S = Sets().Facade().example(); S An example of facade set: the monoid of positive integers