Example of facade set#

class sage.categories.examples.facade_sets.IntegersCompletion[source]#

Bases: UniqueRepresentation, 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
>>> from sage.all import *
>>> S = Sets().Facade().example("union"); S
An example of a facade set: the integers completed by +-infinity
class sage.categories.examples.facade_sets.PositiveIntegerMonoid[source]#

Bases: UniqueRepresentation, 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
>>> from sage.all import *
>>> S = Sets().Facade().example(); S
An example of facade set: the monoid of positive integers