Bundled non-unital subsemirings #
We define bundled non-unital subsemirings and some standard constructions:
CompleteLattice
structure, subtype
and inclusion
ring homomorphisms, non-unital subsemiring
map
, comap
and range (srange
) of a NonUnitalRingHom
etc.
NonUnitalSubsemiringClass S R
states that S
is a type of subsets s ⊆ R
that
are both an additive submonoid and also a multiplicative subsemigroup.
- zero_mem : ∀ (s : S), 0 ∈ s
Instances
Equations
- ⋯ = ⋯
A non-unital subsemiring of a NonUnitalNonAssocSemiring
inherits a
NonUnitalNonAssocSemiring
structure
Equations
- NonUnitalSubsemiringClass.toNonUnitalNonAssocSemiring s = Function.Injective.nonUnitalNonAssocSemiring Subtype.val ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ⋯ = ⋯
The natural non-unital ring hom from a non-unital subsemiring of a non-unital semiring R
to
R
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A non-unital subsemiring of a NonUnitalSemiring
is a NonUnitalSemiring
.
Equations
- NonUnitalSubsemiringClass.toNonUnitalSemiring s = Function.Injective.nonUnitalSemiring Subtype.val ⋯ ⋯ ⋯ ⋯ ⋯
A non-unital subsemiring of a NonUnitalCommSemiring
is a NonUnitalCommSemiring
.
Equations
- NonUnitalSubsemiringClass.toNonUnitalCommSemiring s = Function.Injective.nonUnitalCommSemiring Subtype.val ⋯ ⋯ ⋯ ⋯ ⋯
Note: currently, there are no ordered versions of non-unital rings.
A non-unital subsemiring of a non-unital semiring R
is a subset s
that is both an additive
submonoid and a semigroup.
- carrier : Set R
- zero_mem' : 0 ∈ self.carrier
The product of two elements of a subsemigroup belongs to the subsemigroup.
Instances For
Reinterpret a NonUnitalSubsemiring
as a Subsemigroup
.
Equations
- NonUnitalSubsemiring.toSubsemigroup self = { carrier := self.carrier, mul_mem' := ⋯ }
Instances For
Equations
- NonUnitalSubsemiring.instSetLikeNonUnitalSubsemiring = { coe := fun (s : NonUnitalSubsemiring R) => s.carrier, coe_injective' := ⋯ }
Two non-unital subsemirings are equal if they have the same elements.
Copy of a non-unital 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 NonUnitalSubsemiring R
from a set s
, a subsemigroup sg
, and an additive
submonoid sa
such that x ∈ s ↔ x ∈ sg ↔ x ∈ sa
.
Equations
- NonUnitalSubsemiring.mk' s sg hg sa ha = { toAddSubmonoid := { toAddSubsemigroup := { carrier := s, add_mem' := ⋯ }, zero_mem' := ⋯ }, mul_mem' := ⋯ }
Instances For
Note: currently, there are no ordered versions of non-unital rings.
The non-unital subsemiring R
of the non-unital semiring R
.
Equations
- One or more equations did not get rendered due to their size.
The ring equiv between the top element of NonUnitalSubsemiring R
and R
.
Equations
- NonUnitalSubsemiring.topEquiv = let __src := Subsemigroup.topEquiv; let __src_1 := AddSubmonoid.topEquiv; { toEquiv := __src.toEquiv, map_mul' := ⋯, map_add' := ⋯ }
Instances For
The preimage of a non-unital subsemiring along a non-unital ring homomorphism is a non-unital subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The image of a non-unital subsemiring along a ring homomorphism is a non-unital subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A non-unital subsemiring is isomorphic to its image under an injective function
Equations
- NonUnitalSubsemiring.equivMapOfInjective s f hf = let __src := Equiv.Set.image (⇑f) (↑s) hf; { toEquiv := __src, map_mul' := ⋯, map_add' := ⋯ }
Instances For
The range of a non-unital ring homomorphism is a non-unital subsemiring. See note [range copy pattern].
Equations
Instances For
The range of a morphism of non-unital semirings is finite if the domain is a finite.
Equations
- ⋯ = ⋯
Equations
- NonUnitalSubsemiring.instBotNonUnitalSubsemiring = { bot := { toAddSubmonoid := { toAddSubsemigroup := { carrier := {0}, add_mem' := ⋯ }, zero_mem' := ⋯ }, mul_mem' := ⋯ } }
The inf of two non-unital 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.
Non-unital subsemirings of a non-unital semiring form a complete lattice.
Equations
- NonUnitalSubsemiring.instCompleteLatticeNonUnitalSubsemiring = let __src := completeLatticeOfInf (NonUnitalSubsemiring R) ⋯; CompleteLattice.mk ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
The center of a semiring R
is the set of elements that commute and associate with everything
in R
Equations
- NonUnitalSubsemiring.center R = let __src := Subsemigroup.center R; { toAddSubmonoid := { toAddSubsemigroup := { carrier := __src.carrier, add_mem' := ⋯ }, zero_mem' := ⋯ }, mul_mem' := ⋯ }
Instances For
The center is commutative and associative.
Equations
- One or more equations did not get rendered due to their size.
A point-free means of proving membership in the center, for a non-associative ring.
This can be helpful when working with types that have ext lemmas for R →+ R
.
Equations
- NonUnitalSubsemiring.decidableMemCenter x = decidable_of_iff' (∀ (g : R), g * x = x * g) ⋯
The centralizer of a set as non-unital subsemiring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The NonUnitalSubsemiring
generated by a set.
Equations
- NonUnitalSubsemiring.closure s = sInf {S : NonUnitalSubsemiring R | s ⊆ ↑S}
Instances For
The non-unital subsemiring generated by a set includes the set.
A non-unital 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 non-unital subsemigroup is a non-unital subsemiring.
Equations
- Subsemigroup.nonUnitalSubsemiringClosure M = let __src := AddSubmonoid.closure ↑M; { toAddSubmonoid := __src, mul_mem' := ⋯ }
Instances For
The NonUnitalSubsemiring
generated by a multiplicative subsemigroup coincides with the
NonUnitalSubsemiring.closure
of the subsemigroup itself .
The elements of the non-unital subsemiring closure of M
are exactly the elements of the
additive closure of a multiplicative subsemigroup 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
- NonUnitalSubsemiring.gi R = { choice := fun (s : Set R) (x : ↑(NonUnitalSubsemiring.closure s) ≤ s) => NonUnitalSubsemiring.closure s, gc := ⋯, le_l_u := ⋯, choice_eq := ⋯ }
Instances For
Closure of a non-unital subsemiring S
equals S
.
Given NonUnitalSubsemiring
s s
, t
of semirings R
, S
respectively, s.prod t
is
s × t
as a non-unital subsemiring of R × S
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Product of non-unital subsemirings is isomorphic to their product as semigroups.
Equations
- NonUnitalSubsemiring.prodEquiv s t = let __src := Equiv.Set.prod ↑s ↑t; { toEquiv := __src, map_mul' := ⋯, map_add' := ⋯ }
Instances For
Restriction of a non-unital ring homomorphism to a non-unital subsemiring of the codomain.
Equations
- NonUnitalRingHom.codRestrict f s h = { toMulHom := { toFun := fun (n : R) => { val := f n, property := ⋯ }, map_mul' := ⋯ }, map_zero' := ⋯, map_add' := ⋯ }
Instances For
Restriction of a non-unital ring homomorphism to its range interpreted as a non-unital subsemiring.
This is the bundled version of Set.rangeFactorization
.
Equations
Instances For
The range of a surjective non-unital ring homomorphism is the whole of the codomain.
The non-unital 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 non-unital ring homomorphisms are equal on a set, then they are equal on its non-unital 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 non-unital ring homomorphism associated to an inclusion of non-unital subsemirings.
Equations
Instances For
Makes the identity isomorphism from a proof two non-unital subsemirings of a multiplicative monoid are equal.
Equations
- RingEquiv.nonUnitalSubsemiringCongr h = let __src := Equiv.setCongr ⋯; { toEquiv := __src, map_mul' := ⋯, map_add' := ⋯ }
Instances For
Restrict a non-unital ring homomorphism with a left inverse to a ring isomorphism to its
NonUnitalRingHom.srange
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given an equivalence e : R ≃+* S
of non-unital semirings and a non-unital subsemiring
s
of R
, non_unital_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.