Submonoids: definition #
This file defines bundled multiplicative and additive submonoids. We also define
a CompleteLattice structure on Submonoids, define the closure of a set as the minimal submonoid
that includes this set, and prove a few results about extending properties from a dense set (i.e.
a set with closure s = ⊤) to the whole monoid, see Submonoid.dense_induction and
MonoidHom.ofClosureEqTopLeft/MonoidHom.ofClosureEqTopRight.
Main definitions #
Submonoid M: the type of bundled submonoids of a monoidM; the underlying set is given in thecarrierfield of the structure, and should be accessed through coercion as in(S : Set M).AddSubmonoid M: the type of bundled submonoids of an additive monoidM.
For each of the following definitions in the Submonoid namespace, there is a corresponding
definition in the AddSubmonoid namespace.
Submonoid.copy: copy of a submonoid withcarrierreplaced by a set that is equal but possibly not definitionally equal to the carrier of the originalSubmonoid.MonoidHom.eqLocusM: the submonoid of elementsx : Msuch thatf x = g x;
Implementation notes #
Submonoid inclusion is denoted ≤ rather than ⊆, although ∈ is defined as
membership of a submonoid's underlying set.
Note that Submonoid M does not actually require Monoid M, instead requiring only the weaker
MulOneClass M.
This file is designed to have very few dependencies. In particular, it should not use natural
numbers. Submonoid is implemented by extending Subsemigroup requiring one_mem'.
Tags #
submonoid, submonoids
OneMemClass S M says S is a type of subsets s ≤ M, such that 1 ∈ s for all s.
By definition, if we have
OneMemClass S M, we have1 ∈ sfor alls : S.
Instances
ZeroMemClass S M says S is a type of subsets s ≤ M, such that 0 ∈ s for all s.
By definition, if we have
ZeroMemClass S M, we have0 ∈ sfor alls : S.
Instances
A submonoid of a monoid M is a subset containing 1 and closed under multiplication.
A submonoid contains
1.
Instances For
SubmonoidClass S M says S is a type of subsets s ≤ M that contain 1
and are closed under (*)
Instances
An additive submonoid of an additive monoid M is a subset containing 0 and
closed under addition.
An additive submonoid contains
0.
Instances For
AddSubmonoidClass S M says S is a type of subsets s ≤ M that contain 0
and are closed under (+)
Instances
Equations
Equations
The actual Submonoid obtained from an element of a SubmonoidClass
Equations
Instances For
The actual AddSubmonoid obtained from an element of a
AddSubmonoidClass
Equations
Instances For
Two submonoids are equal if they have the same elements.
Two AddSubmonoids are equal if they have the same elements.
Copy a submonoid replacing carrier with a set that is equal to it.
Equations
Instances For
Copy an additive submonoid replacing carrier with a set that is equal to it.
Equations
Instances For
A submonoid contains the monoid's 1.
An AddSubmonoid contains the monoid's 0.
A submonoid is closed under multiplication.
An AddSubmonoid is closed under addition.
The submonoid M of the monoid M.
Equations
The additive submonoid M of the AddMonoid M.
Equations
The trivial submonoid {1} of a monoid M.
Equations
The trivial AddSubmonoid {0} of an AddMonoid M.
Equations
Equations
Equations
The inf of two submonoids is their intersection.
Equations
The inf of two AddSubmonoids is their intersection.
Equations
Equations
Equations
The submonoid of elements x : M such that f x = g x
Equations
Instances For
The additive submonoid of elements x : M such that f x = g x
Equations
Instances For
A submonoid of a monoid inherits a 1.
Equations
An AddSubmonoid of an AddMonoid inherits a zero.
Equations
An AddSubmonoid of an AddMonoid inherits a scalar multiplication.
Equations
A submonoid of a monoid inherits a power operator.
Equations
A submonoid of a unital magma inherits a unital magma structure.
Equations
An AddSubmonoid of a unital additive magma inherits a unital additive magma structure.
Equations
A submonoid of a monoid inherits a monoid structure.
Equations
An AddSubmonoid of an AddMonoid inherits an AddMonoid structure.
Equations
A submonoid of a CommMonoid is a CommMonoid.
Equations
An AddSubmonoid of an AddCommMonoid is an AddCommMonoid.
Equations
The natural monoid hom from a submonoid of monoid M to M.
Equations
Instances For
The natural monoid hom from an AddSubmonoid of AddMonoid M to M.
Equations
Instances For
A submonoid of a monoid inherits a multiplication.
Equations
An AddSubmonoid of an AddMonoid inherits an addition.
Equations
A submonoid of a monoid inherits a 1.
Equations
An AddSubmonoid of an AddMonoid inherits a zero.
Equations
A submonoid of a unital magma inherits a unital magma structure.
Equations
An AddSubmonoid of a unital additive magma inherits a unital additive magma structure.
Equations
An AddSubmonoid of an AddMonoid inherits an AddMonoid structure.
Equations
A submonoid of a CommMonoid is a CommMonoid.
Equations
An AddSubmonoid of an AddCommMonoid is an AddCommMonoid.
Equations
A submonoid of a left cancellative unital magma inherits left cancellation.
An AddSubmonoid of a left cancellative unital additive magma inherits left cancellation.
A submonoid of a right cancellative unital magma inherits right cancellation.
An AddSubmonoid of a right cancellative unital additive magma inherits right
cancellation.
A submonoid of a cancellative unital magma inherits cancellation.
An AddSubmonoid of a cancellative unital additive magma inherits cancellation.
The natural monoid hom from a submonoid of monoid M to M.