Subsemigroups: definition #
This file defines bundled multiplicative and additive subsemigroups.
Main definitions #
Subsemigroup M: the type of bundled subsemigroup of a magmaM; the underlying set is given in thecarrierfield of the structure, and should be accessed through coercion as in(S : Set M).AddSubsemigroup M: the type of bundled subsemigroups of an additive magmaM.
For each of the following definitions in the Subsemigroup namespace, there is a corresponding
definition in the AddSubsemigroup namespace.
Subsemigroup.copy: copy of a subsemigroup withcarrierreplaced by a set that is equal but possibly not definitionally equal to the carrier of the originalSubsemigroup.
Similarly, for each of these definitions in the MulHom namespace, there is a corresponding
definition in the AddHom namespace.
MulHom.eqLocus f g: the subsemigroup of thosexsuch thatf x = g x
Implementation notes #
Subsemigroup inclusion is denoted ≤ rather than ⊆, although ∈ is defined as
membership of a subsemigroup's underlying set.
Note that Subsemigroup M does not actually require Semigroup M,
instead requiring only the weaker Mul M.
This file is designed to have very few dependencies. In particular, it should not use natural numbers.
Tags #
subsemigroup, subsemigroups
MulMemClass S M says S is a type of sets s : Set M that are closed under (*)
A substructure satisfying
MulMemClassis closed under multiplication.
Instances
AddMemClass S M says S is a type of sets s : Set M that are closed under (+)
A substructure satisfying
AddMemClassis closed under addition.
Instances
A subsemigroup of a magma M is a subset closed under multiplication.
- carrier : Set M
The carrier of a subsemigroup.
The product of two elements of a subsemigroup belongs to the subsemigroup.
Instances For
An additive subsemigroup of an additive magma M is a subset closed under addition.
- carrier : Set M
The carrier of an additive subsemigroup.
The sum of two elements of an additive subsemigroup belongs to the subsemigroup.
Instances For
Equations
The actual Subsemigroup obtained from an element of a MulMemClass.
Equations
Instances For
The actual AddSubsemigroup obtained from an element of a
AddMemClass
Equations
Instances For
Two subsemigroups are equal if they have the same elements.
Two AddSubsemigroups are equal if they have the same elements.
Copy a subsemigroup replacing carrier with a set that is equal to it.
Equations
Instances For
Copy an additive subsemigroup replacing carrier with a set that is equal to it.
Equations
Instances For
A subsemigroup is closed under multiplication.
An AddSubsemigroup is closed under addition.
The subsemigroup M of the magma M.
Equations
The additive subsemigroup M of the magma M.
Equations
The trivial subsemigroup ∅ of a magma M.
Equations
The trivial AddSubsemigroup ∅ of an additive magma M.
Equations
Equations
Equations
Alias of AddSubsemigroup.notMem_bot.
Alias of Subsemigroup.notMem_bot.
The inf of two subsemigroups is their intersection.
Equations
The inf of two AddSubsemigroups is their intersection.
Equations
The subsemigroup of elements x : M such that f x = g x
Equations
Instances For
The additive subsemigroup of elements x : M such that f x = g x
Equations
Instances For
A submagma of a magma inherits a multiplication.
Equations
An additive submagma of an additive magma inherits an addition.
Equations
A subsemigroup of a semigroup inherits a semigroup structure.
Equations
An AddSubsemigroup of an AddSemigroup inherits an AddSemigroup structure.
Equations
A subsemigroup of a CommSemigroup is a CommSemigroup.
Equations
An AddSubsemigroup of an AddCommSemigroup is an AddCommSemigroup.
Equations
The natural semigroup hom from a subsemigroup of semigroup M to M.
Equations
Instances For
The natural semigroup hom from an AddSubsemigroup of
AddSubsemigroup M to M.