Sets as a semiring under union #
This file defines SetSemiring α
, an alias of Set α
, which we endow with ∪
as addition and
pointwise *
as multiplication. If α
is a (commutative) monoid, SetSemiring α
is a
(commutative) semiring.
An alias for Set α
, which has a semiring structure given by ∪
as "addition" and pointwise
multiplication *
as "multiplication".
Equations
- SetSemiring α = Set α
Instances For
Equations
- instInhabitedSetSemiring α = inferInstance
Equations
- instPartialOrderSetSemiring α = inferInstance
instance
instOrderBotSetSemiringToLEToPreorderInstPartialOrderSetSemiring
(α : Type u_3)
:
OrderBot (SetSemiring α)
Equations
- instOrderBotSetSemiringToLEToPreorderInstPartialOrderSetSemiring α = inferInstance
The identity function SetSemiring α → Set α
.
Equations
- SetSemiring.down = Equiv.refl (SetSemiring α)
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
Equations
- SetSemiring.instAddSetSemiring = { add := fun (s t : SetSemiring α) => Set.up (SetSemiring.down s ∪ SetSemiring.down t) }
Equations
- SetSemiring.instAddCommMonoidSetSemiring = AddCommMonoid.mk ⋯
@[simp]
instance
SetSemiring.covariantClass_add
{α : Type u_1}
:
CovariantClass (SetSemiring α) (SetSemiring α) (fun (x x_1 : SetSemiring α) => x + x_1) fun (x x_1 : SetSemiring α) =>
x ≤ x_1
Equations
- ⋯ = ⋯
Equations
- SetSemiring.instNonUnitalNonAssocSemiringSetSemiring = let __src := inferInstance; NonUnitalNonAssocSemiring.mk ⋯ ⋯ ⋯ ⋯
@[simp]
instance
SetSemiring.instNoZeroDivisorsSetSemiringToMulInstNonUnitalNonAssocSemiringSetSemiringInstZeroSetSemiring
{α : Type u_1}
[Mul α]
:
Equations
- ⋯ = ⋯
instance
SetSemiring.covariantClass_mul_left
{α : Type u_1}
[Mul α]
:
CovariantClass (SetSemiring α) (SetSemiring α) (fun (x x_1 : SetSemiring α) => x * x_1) fun (x x_1 : SetSemiring α) =>
x ≤ x_1
Equations
- ⋯ = ⋯
instance
SetSemiring.covariantClass_mul_right
{α : Type u_1}
[Mul α]
:
CovariantClass (SetSemiring α) (SetSemiring α) (Function.swap fun (x x_1 : SetSemiring α) => x * x_1)
fun (x x_1 : SetSemiring α) => x ≤ x_1
Equations
- ⋯ = ⋯
Equations
- SetSemiring.instOneSetSemiring = { one := Set.up 1 }
Equations
- SetSemiring.instNonAssocSemiringSetSemiring = let __src := inferInstance; let __src_1 := Set.mulOneClass; NonAssocSemiring.mk ⋯ ⋯ ⋯ ⋯
Equations
- SetSemiring.instNonUnitalSemiringSetSemiring = let __src := inferInstance; let __src_1 := Set.semigroup; NonUnitalSemiring.mk ⋯
Equations
- SetSemiring.instIdemSemiringSetSemiring = let __src := inferInstance; let __src_1 := inferInstance; let __src_2 := inferInstance; IdemSemiring.mk ⋯ ⊥ ⋯
Equations
- SetSemiring.instNonUnitalCommSemiringSetSemiring = let __src := inferInstance; let __src_1 := Set.commSemigroup; NonUnitalCommSemiring.mk ⋯
Equations
- SetSemiring.instIdemCommSemiringSetSemiring = let __src := inferInstance; let __src_1 := inferInstance; IdemCommSemiring.mk ⋯ IdemSemiring.bot ⋯
Equations
- SetSemiring.instCommMonoidSetSemiring = let __src := inferInstance; let __src_1 := Set.commSemigroup; CommMonoid.mk ⋯
Equations
- One or more equations did not get rendered due to their size.
def
SetSemiring.imageHom
{α : Type u_1}
{β : Type u_2}
[MulOneClass α]
[MulOneClass β]
(f : α →* β)
:
The image of a set under a multiplicative homomorphism is a ring homomorphism with respect to the pointwise operations on sets.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
SetSemiring.imageHom_def
{α : Type u_1}
{β : Type u_2}
[MulOneClass α]
[MulOneClass β]
(f : α →* β)
(s : SetSemiring α)
:
(SetSemiring.imageHom f) s = Set.up (⇑f '' SetSemiring.down s)
@[simp]
theorem
SetSemiring.down_imageHom
{α : Type u_1}
{β : Type u_2}
[MulOneClass α]
[MulOneClass β]
(f : α →* β)
(s : SetSemiring α)
:
SetSemiring.down ((SetSemiring.imageHom f) s) = ⇑f '' SetSemiring.down s
@[simp]
theorem
Set.up_image
{α : Type u_1}
{β : Type u_2}
[MulOneClass α]
[MulOneClass β]
(f : α →* β)
(s : Set α)
:
Set.up (⇑f '' s) = (SetSemiring.imageHom f) (Set.up s)