Bundled subsemirings #
We define bundled subsemirings and some standard constructions: CompleteLattice
structure,
Subtype
and inclusion
ring homomorphisms, subsemiring map
, comap
and range (rangeS
) of
a RingHom
etc.
AddSubmonoidWithOneClass S R
says S
is a type of subsets s ≤ R
that contain 0
, 1
,
and are closed under (+)
Instances
Equations
- AddSubmonoidWithOneClass.toAddMonoidWithOne s = let src := AddSubmonoidClass.toAddMonoid s; AddMonoidWithOne.mk
SubsemiringClass S R
states that S
is a type of subsets s ⊆ R
that
are both a multiplicative and an additive submonoid.
Instances
Equations
- (_ : AddSubmonoidWithOneClass S R) = (_ : AddSubmonoidWithOneClass S R)
A subsemiring of a NonAssocSemiring
inherits a NonAssocSemiring
structure
Equations
- One or more equations did not get rendered due to their size.
Equations
- (_ : Nontrivial ↥s) = (_ : Nontrivial ↥s)
Equations
- (_ : NoZeroDivisors ↥s) = (_ : NoZeroDivisors ↥s)
The natural ring hom from a subsemiring of semiring R
to R
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A subsemiring of a Semiring
is a Semiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a CommSemiring
is a CommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of an OrderedSemiring
is an OrderedSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a StrictOrderedSemiring
is a StrictOrderedSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of an OrderedCommSemiring
is an OrderedCommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a StrictOrderedCommSemiring
is a StrictOrderedCommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a LinearOrderedSemiring
is a LinearOrderedSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a LinearOrderedCommSemiring
is a LinearOrderedCommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
Reinterpret a Subsemiring
as an AddSubmonoid
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- (_ : SubsemiringClass (Subsemiring R) R) = (_ : SubsemiringClass (Subsemiring R) R)
Two subsemirings are equal if they have the same elements.
Copy of a subsemiring with a new carrier
equal to the old one. Useful to fix definitional
equalities.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Construct a Subsemiring R
from a set s
, a submonoid sm
, and an additive
submonoid sa
such that x ∈ s ↔ x ∈ sm ↔ x ∈ sa
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A subsemiring contains the semiring's 1.
A subsemiring contains the semiring's 0.
A subsemiring is closed under multiplication.
A subsemiring is closed under addition.
Product of a list of elements in a Subsemiring
is in the Subsemiring
.
Sum of a list of elements in a Subsemiring
is in the Subsemiring
.
Product of a multiset of elements in a Subsemiring
of a CommSemiring
is in the Subsemiring
.
Sum of a multiset of elements in a Subsemiring
of a Semiring
is
in the add_subsemiring
.
Product of elements of a subsemiring of a CommSemiring
indexed by a Finset
is in the
subsemiring.
Sum of elements in a Subsemiring
of a Semiring
indexed by a Finset
is in the add_subsemiring
.
A subsemiring of a NonAssocSemiring
inherits a NonAssocSemiring
structure
Equations
- (_ : Nontrivial ↥s) = (_ : Nontrivial ↥s)
Equations
- (_ : NoZeroDivisors ↥s) = (_ : NoZeroDivisors ↥s)
A subsemiring of a CommSemiring
is a CommSemiring
.
Equations
- Subsemiring.toCommSemiring s = let src := Subsemiring.toSemiring s; CommSemiring.mk (_ : ∀ (x x_1 : ↥s), x * x_1 = x_1 * x)
The natural ring hom from a subsemiring of semiring R
to R
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A subsemiring of an OrderedSemiring
is an OrderedSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a StrictOrderedSemiring
is a StrictOrderedSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of an OrderedCommSemiring
is an OrderedCommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a StrictOrderedCommSemiring
is a StrictOrderedCommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a LinearOrderedSemiring
is a LinearOrderedSemiring
.
Equations
- One or more equations did not get rendered due to their size.
A subsemiring of a LinearOrderedCommSemiring
is a LinearOrderedCommSemiring
.
Equations
- One or more equations did not get rendered due to their size.
The subsemiring R
of the semiring R
.
Equations
- One or more equations did not get rendered due to their size.
The ring equiv between the top element of Subsemiring R
and R
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The preimage of a subsemiring along a ring homomorphism is a subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The image of a subsemiring along a ring homomorphism is a subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A subsemiring is isomorphic to its image under an injective function
Equations
- One or more equations did not get rendered due to their size.
Instances For
The range of a ring homomorphism is a subsemiring. See Note [range copy pattern].
Equations
- RingHom.rangeS f = Subsemiring.copy (Subsemiring.map f ⊤) (Set.range ⇑f) (_ : Set.range ⇑f = ⇑f '' Set.univ)
Instances For
The range of a morphism of semirings is a fintype, if the domain is a fintype.
Note: this instance can form a diamond with Subtype.fintype
in the
presence of Fintype S
.
Equations
Equations
- Subsemiring.instBotSubsemiring = { bot := RingHom.rangeS (Nat.castRingHom R) }
The inf of two subsemirings is their intersection.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Subsemirings of a semiring form a complete lattice.
Equations
- One or more equations did not get rendered due to their size.
The center of a non-associative semiring R
is the set of elements that commute and associate
with everything in R
Equations
- One or more equations did not get rendered due to their size.
Instances For
The center is commutative and associative.
This is not an instance as it forms a non-defeq diamond with
NonUnitalSubringClass.tNonUnitalring
in the npow
field.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The center is commutative.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Subsemiring.decidableMemCenter x = decidable_of_iff' (∀ (g : R), g * x = x * g) (_ : x ∈ Subsemiring.center R ↔ ∀ (g : R), g * x = x * g)
The centralizer of a set as subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Subsemiring
generated by a set.
Equations
- Subsemiring.closure s = sInf {S : Subsemiring R | s ⊆ ↑S}
Instances For
The subsemiring generated by a set includes the set.
A subsemiring S
includes closure s
if and only if it includes s
.
Subsemiring closure of a set is monotone in its argument: if s ⊆ t
,
then closure s ≤ closure t
.
The additive closure of a submonoid is a subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Subsemiring
generated by a multiplicative submonoid coincides with the
Subsemiring.closure
of the submonoid itself .
The elements of the subsemiring closure of M
are exactly the elements of the additive closure
of a multiplicative submonoid M
.
An induction principle for closure membership. If p
holds for 0
, 1
, and all elements
of s
, and is preserved under addition and multiplication, then p
holds for all elements
of the closure of s
.
An induction principle for closure membership for predicates with two arguments.
closure
forms a Galois insertion with the coercion to set.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Closure of a subsemiring S
equals S
.
Given Subsemiring
s s
, t
of semirings R
, S
respectively, s.prod t
is s × t
as a subsemiring of R × S
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Product of subsemirings is isomorphic to their product as monoids.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Restriction of a ring homomorphism to a subsemiring of the domain.
Equations
Instances For
Restriction of a ring homomorphism to a subsemiring of the codomain.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The ring homomorphism from the preimage of s
to s
.
Equations
- RingHom.restrict f s' s h = RingHom.codRestrict (RingHom.domRestrict f s') s (_ : ∀ (x : ↥s'), f ↑x ∈ s)
Instances For
Restriction of a ring homomorphism to its range interpreted as a subsemiring.
This is the bundled version of Set.rangeFactorization
.
Equations
- RingHom.rangeSRestrict f = RingHom.codRestrict f (RingHom.rangeS f) (_ : ∀ (x : R), f x ∈ RingHom.rangeS f)
Instances For
The range of a surjective ring homomorphism is the whole of the codomain.
The subsemiring of elements x : R
such that f x = g x
Equations
- One or more equations did not get rendered due to their size.
Instances For
If two ring homomorphisms are equal on a set, then they are equal on its subsemiring closure.
The image under a ring homomorphism of the subsemiring generated by a set equals the subsemiring generated by the image of the set.
The ring homomorphism associated to an inclusion of subsemirings.
Equations
- Subsemiring.inclusion h = RingHom.codRestrict (Subsemiring.subtype S) T (_ : ∀ (x : ↥S), (Subsemiring.subtype S) x ∈ T)
Instances For
Makes the identity isomorphism from a proof two subsemirings of a multiplicative monoid are equal.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Restrict a ring homomorphism with a left inverse to a ring isomorphism to its
RingHom.rangeS
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given an equivalence e : R ≃+* S
of semirings and a subsemiring s
of R
,
subsemiring_map e s
is the induced equivalence between s
and s.map e
Equations
- One or more equations did not get rendered due to their size.
Instances For
Actions by Subsemiring
s #
These are just copies of the definitions about Submonoid
starting from submonoid.mul_action
.
The only new result is subsemiring.module
.
When R
is commutative, Algebra.ofSubsemiring
provides a stronger result than those found in
this file, which uses the same scalar action.
The action by a subsemiring is the action by the underlying semiring.
Equations
- Subsemiring.smul S = Submonoid.smul S.toSubmonoid
Equations
- (_ : SMulCommClass (↥S) α β) = (_ : SMulCommClass (↥S.toSubmonoid) α β)
Equations
- (_ : SMulCommClass α (↥S) β) = (_ : SMulCommClass α (↥S.toSubmonoid) β)
Note that this provides IsScalarTower S R R
which is needed by smul_mul_assoc
.
Equations
- (_ : IsScalarTower (↥S) α β) = (_ : IsScalarTower (↥S.toSubmonoid) α β)
Equations
- (_ : FaithfulSMul (↥S) α) = (_ : FaithfulSMul (↥S.toSubmonoid) α)
The action by a subsemiring is the action by the underlying semiring.
Equations
- One or more equations did not get rendered due to their size.
The action by a subsemiring is the action by the underlying semiring.
Equations
- Subsemiring.mulAction S = Submonoid.mulAction S.toSubmonoid
The action by a subsemiring is the action by the underlying semiring.
Equations
- Subsemiring.distribMulAction S = Submonoid.distribMulAction S.toSubmonoid
The action by a subsemiring is the action by the underlying semiring.
Equations
- Subsemiring.mulDistribMulAction S = Submonoid.mulDistribMulAction S.toSubmonoid
The action by a subsemiring is the action by the underlying semiring.
The action by a subsemiring is the action by the underlying semiring.
Equations
The action by a subsemiring is the action by the underlying semiring.
Equations
- One or more equations did not get rendered due to their size.
The center of a semiring acts commutatively on that semiring.
Equations
- (_ : SMulCommClass (↥(Subsemiring.center R')) R' R') = (_ : SMulCommClass (↥(Submonoid.center R')) R' R')
The center of a semiring acts commutatively on that semiring.
Equations
- (_ : SMulCommClass R' (↥(Subsemiring.center R')) R') = (_ : SMulCommClass R' (↥(Submonoid.center R')) R')
If all the elements of a set s
commute, then closure s
is a commutative monoid.
Equations
- Subsemiring.closureCommSemiringOfComm hcomm = let src := Subsemiring.toSemiring (Subsemiring.closure s); CommSemiring.mk (_ : ∀ (x y : ↥(Subsemiring.closure s)), x * y = y * x)
Instances For
Submonoid of positive elements of an ordered semiring.