mathlib documentation

data.set.pointwise

Pointwise operations of sets #

This file defines pointwise algebraic operations on sets.

Main declarations #

For sets s and t and scalar a:

For α a semigroup/monoid, set α is a semigroup/monoid. As an unfortunate side effect, this means that n • s, where n : ℕ, is ambiguous between pointwise scaling and repeated pointwise addition; the former has (2 : ℕ) • {1, 2} = {2, 4}, while the latter has (2 : ℕ) • {1, 2} = {2, 3, 4}.

We define set_semiring α, an alias of set α, which we endow with as addition and * as multiplication. If α is a (commutative) monoid, set_semiring α is a (commutative) semiring.

Appropriate definitions and results are also transported to the additive theory via to_additive.

Implementation notes #

Tags #

set multiplication, set addition, pointwise addition, pointwise multiplication, pointwise subtraction

0/1 as sets #

@[protected, instance]
def set.has_one {α : Type u_2} [has_one α] :

The set (1 : set α) is defined as {1} in locale pointwise.

Equations
@[protected, instance]
def set.has_zero {α : Type u_2} [has_zero α] :

The set (0 : set α) is defined as {0} in locale pointwise.

Equations
theorem set.singleton_one {α : Type u_2} [has_one α] :
{1} = 1
theorem set.singleton_zero {α : Type u_2} [has_zero α] :
{0} = 0
@[simp]
theorem set.mem_one {α : Type u_2} [has_one α] {a : α} :
a 1 a = 1
@[simp]
theorem set.mem_zero {α : Type u_2} [has_zero α] {a : α} :
a 0 a = 0
theorem set.zero_mem_zero {α : Type u_2} [has_zero α] :
0 0
theorem set.one_mem_one {α : Type u_2} [has_one α] :
1 1
@[simp]
theorem set.zero_subset {α : Type u_2} [has_zero α] {s : set α} :
0 s 0 s
@[simp]
theorem set.one_subset {α : Type u_2} [has_one α] {s : set α} :
1 s 1 s
theorem set.zero_nonempty {α : Type u_2} [has_zero α] :
theorem set.one_nonempty {α : Type u_2} [has_one α] :
@[simp]
theorem set.image_zero {α : Type u_2} {β : Type u_3} [has_zero α] {f : α → β} :
f '' 0 = {f 0}
@[simp]
theorem set.image_one {α : Type u_2} {β : Type u_3} [has_one α] {f : α → β} :
f '' 1 = {f 1}

Set addition/multiplication #

@[protected, instance]
def set.has_mul {α : Type u_2} [has_mul α] :

The set (s * t : set α) is defined as {x * y | x ∈ s, y ∈ t} in locale pointwise.

Equations
@[protected, instance]
def set.has_add {α : Type u_2} [has_add α] :

The set (s + t : set α) is defined as {x + y | x ∈ s, y ∈ t} in locale pointwise.

Equations
@[simp]
theorem set.image2_mul {α : Type u_2} {s t : set α} [has_mul α] :
@[simp]
theorem set.image2_add {α : Type u_2} {s t : set α} [has_add α] :
theorem set.mem_add {α : Type u_2} {s t : set α} {a : α} [has_add α] :
a s + t ∃ (x y : α), x s y t x + y = a
theorem set.mem_mul {α : Type u_2} {s t : set α} {a : α} [has_mul α] :
a s * t ∃ (x y : α), x s y t x * y = a
theorem set.mul_mem_mul {α : Type u_2} {s t : set α} {a b : α} [has_mul α] (ha : a s) (hb : b t) :
a * b s * t
theorem set.add_mem_add {α : Type u_2} {s t : set α} {a b : α} [has_add α] (ha : a s) (hb : b t) :
a + b s + t
theorem set.add_subset_add {α : Type u_2} {s₁ s₂ t₁ t₂ : set α} [has_add α] (h₁ : s₁ t₁) (h₂ : s₂ t₂) :
s₁ + s₂ t₁ + t₂
theorem set.mul_subset_mul {α : Type u_2} {s₁ s₂ t₁ t₂ : set α} [has_mul α] (h₁ : s₁ t₁) (h₂ : s₂ t₂) :
s₁ * s₂ t₁ * t₂
theorem set.image_mul_prod {α : Type u_2} {s t : set α} [has_mul α] :
(λ (x : α × α), (x.fst) * x.snd) '' s ×ˢ t = s * t
theorem set.add_image_prod {α : Type u_2} {s t : set α} [has_add α] :
(λ (x : α × α), x.fst + x.snd) '' s ×ˢ t = s + t
@[simp]
theorem set.empty_mul {α : Type u_2} {s : set α} [has_mul α] :
@[simp]
theorem set.empty_add {α : Type u_2} {s : set α} [has_add α] :
@[simp]
theorem set.add_empty {α : Type u_2} {s : set α} [has_add α] :
@[simp]
theorem set.mul_empty {α : Type u_2} {s : set α} [has_mul α] :
@[simp]
theorem set.add_singleton {α : Type u_2} {s : set α} {b : α} [has_add α] :
s + {b} = (λ (_x : α), _x + b) '' s
@[simp]
theorem set.mul_singleton {α : Type u_2} {s : set α} {b : α} [has_mul α] :
s * {b} = (λ (_x : α), _x * b) '' s
@[simp]
theorem set.singleton_add {α : Type u_2} {t : set α} {a : α} [has_add α] :
{a} + t = has_add.add a '' t
@[simp]
theorem set.singleton_mul {α : Type u_2} {t : set α} {a : α} [has_mul α] :
{a} * t = has_mul.mul a '' t
@[simp]
theorem set.singleton_mul_singleton {α : Type u_2} {a b : α} [has_mul α] :
{a} * {b} = {a * b}
@[simp]
theorem set.singleton_add_singleton {α : Type u_2} {a b : α} [has_add α] :
{a} + {b} = {a + b}
theorem set.add_subset_add_left {α : Type u_2} {s t₁ t₂ : set α} [has_add α] (h : t₁ t₂) :
s + t₁ s + t₂
theorem set.mul_subset_mul_left {α : Type u_2} {s t₁ t₂ : set α} [has_mul α] (h : t₁ t₂) :
s * t₁ s * t₂
theorem set.mul_subset_mul_right {α : Type u_2} {s₁ s₂ t : set α} [has_mul α] (h : s₁ s₂) :
s₁ * t s₂ * t
theorem set.add_subset_add_right {α : Type u_2} {s₁ s₂ t : set α} [has_add α] (h : s₁ s₂) :
s₁ + t s₂ + t
theorem set.union_mul {α : Type u_2} {s₁ s₂ t : set α} [has_mul α] :
(s₁ s₂) * t = s₁ * t s₂ * t
theorem set.union_add {α : Type u_2} {s₁ s₂ t : set α} [has_add α] :
s₁ s₂ + t = s₁ + t (s₂ + t)
theorem set.mul_union {α : Type u_2} {s t₁ t₂ : set α} [has_mul α] :
s * (t₁ t₂) = s * t₁ s * t₂
theorem set.add_union {α : Type u_2} {s t₁ t₂ : set α} [has_add α] :
s + (t₁ t₂) = s + t₁ (s + t₂)
theorem set.inter_add_subset {α : Type u_2} {s₁ s₂ t : set α} [has_add α] :
s₁ s₂ + t (s₁ + t) (s₂ + t)
theorem set.inter_mul_subset {α : Type u_2} {s₁ s₂ t : set α} [has_mul α] :
(s₁ s₂) * t s₁ * t s₂ * t
theorem set.mul_inter_subset {α : Type u_2} {s t₁ t₂ : set α} [has_mul α] :
s * (t₁ t₂) s * t₁ s * t₂
theorem set.add_inter_subset {α : Type u_2} {s t₁ t₂ : set α} [has_add α] :
s + t₁ t₂ (s + t₁) (s + t₂)
theorem set.Union_mul_left_image {α : Type u_2} {s t : set α} [has_mul α] :
(⋃ (a : α) (H : a s), (λ (x : α), a * x) '' t) = s * t
theorem set.Union_add_left_image {α : Type u_2} {s t : set α} [has_add α] :
(⋃ (a : α) (H : a s), (λ (x : α), a + x) '' t) = s + t
theorem set.Union_mul_right_image {α : Type u_2} {s t : set α} [has_mul α] :
(⋃ (a : α) (H : a t), (λ (x : α), x * a) '' s) = s * t
theorem set.Union_add_right_image {α : Type u_2} {s t : set α} [has_add α] :
(⋃ (a : α) (H : a t), (λ (x : α), x + a) '' s) = s + t
theorem set.Union_add {α : Type u_2} {ι : Sort u_5} [has_add α] (s : ι → set α) (t : set α) :
(⋃ (i : ι), s i) + t = ⋃ (i : ι), s i + t
theorem set.Union_mul {α : Type u_2} {ι : Sort u_5} [has_mul α] (s : ι → set α) (t : set α) :
(⋃ (i : ι), s i) * t = ⋃ (i : ι), (s i) * t
theorem set.add_Union {α : Type u_2} {ι : Sort u_5} [has_add α] (s : set α) (t : ι → set α) :
(s + ⋃ (i : ι), t i) = ⋃ (i : ι), s + t i
theorem set.mul_Union {α : Type u_2} {ι : Sort u_5} [has_mul α] (s : set α) (t : ι → set α) :
(s * ⋃ (i : ι), t i) = ⋃ (i : ι), s * t i
theorem set.Union₂_add {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_add α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋃ (i : ι) (j : κ i), s i j) + t = ⋃ (i : ι) (j : κ i), s i j + t
theorem set.Union₂_mul {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_mul α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋃ (i : ι) (j : κ i), s i j) * t = ⋃ (i : ι) (j : κ i), (s i j) * t
theorem set.add_Union₂ {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_add α] (s : set α) (t : Π (i : ι), κ iset α) :
(s + ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s + t i j
theorem set.mul_Union₂ {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_mul α] (s : set α) (t : Π (i : ι), κ iset α) :
(s * ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s * t i j
theorem set.Inter_add_subset {α : Type u_2} {ι : Sort u_5} [has_add α] (s : ι → set α) (t : set α) :
(⋂ (i : ι), s i) + t ⋂ (i : ι), s i + t
theorem set.Inter_mul_subset {α : Type u_2} {ι : Sort u_5} [has_mul α] (s : ι → set α) (t : set α) :
(⋂ (i : ι), s i) * t ⋂ (i : ι), (s i) * t
theorem set.add_Inter_subset {α : Type u_2} {ι : Sort u_5} [has_add α] (s : set α) (t : ι → set α) :
(s + ⋂ (i : ι), t i) ⋂ (i : ι), s + t i
theorem set.mul_Inter_subset {α : Type u_2} {ι : Sort u_5} [has_mul α] (s : set α) (t : ι → set α) :
(s * ⋂ (i : ι), t i) ⋂ (i : ι), s * t i
theorem set.Inter₂_mul_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_mul α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋂ (i : ι) (j : κ i), s i j) * t ⋂ (i : ι) (j : κ i), (s i j) * t
theorem set.Inter₂_add_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_add α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋂ (i : ι) (j : κ i), s i j) + t ⋂ (i : ι) (j : κ i), s i j + t
theorem set.add_Inter₂_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_add α] (s : set α) (t : Π (i : ι), κ iset α) :
(s + ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s + t i j
theorem set.mul_Inter₂_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_mul α] (s : set α) (t : Π (i : ι), κ iset α) :
(s * ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s * t i j
theorem set.nonempty.add {α : Type u_2} {s t : set α} [has_add α] :
s.nonemptyt.nonempty(s + t).nonempty
theorem set.nonempty.mul {α : Type u_2} {s t : set α} [has_mul α] :
s.nonemptyt.nonempty(s * t).nonempty
theorem set.finite.mul {α : Type u_2} {s t : set α} [has_mul α] :
s.finitet.finite(s * t).finite
theorem set.finite.add {α : Type u_2} {s t : set α} [has_add α] :
s.finitet.finite(s + t).finite
def set.singleton_mul_hom {α : Type u_2} [has_mul α] :
α →ₙ* set α

Under [has_mul M], the singleton map from M to set M as a mul_hom, that is, a map which preserves multiplication.

Equations
@[simp]
theorem set.singleton_add_hom_apply {α : Type u_2} [has_add α] (ᾰ : α) :
def set.singleton_add_hom {α : Type u_2} [has_add α] :
add_hom α (set α)

Under [has_add A], the singleton map from A to set A as an add_hom, that is, a map which preserves addition.

Equations
@[simp]
theorem set.singleton_mul_hom_apply {α : Type u_2} [has_mul α] (ᾰ : α) :
@[simp]
theorem set.image_op_add {α : Type u_2} {s t : set α} [has_add α] :
@[simp]
theorem set.image_op_mul {α : Type u_2} {s t : set α} [has_mul α] :
@[simp]
theorem set.image_add_left {α : Type u_2} {t : set α} {a : α} [add_group α] :
@[simp]
theorem set.image_mul_left {α : Type u_2} {t : set α} {a : α} [group α] :
@[simp]
theorem set.image_mul_right {α : Type u_2} {t : set α} {b : α} [group α] :
(λ (_x : α), _x * b) '' t = (λ (_x : α), _x * b⁻¹) ⁻¹' t
@[simp]
theorem set.image_add_right {α : Type u_2} {t : set α} {b : α} [add_group α] :
(λ (_x : α), _x + b) '' t = (λ (_x : α), _x + -b) ⁻¹' t
theorem set.image_mul_left' {α : Type u_2} {t : set α} {a : α} [group α] :
(λ (b : α), a⁻¹ * b) '' t = (λ (b : α), a * b) ⁻¹' t
theorem set.image_add_left' {α : Type u_2} {t : set α} {a : α} [add_group α] :
(λ (b : α), -a + b) '' t = (λ (b : α), a + b) ⁻¹' t
theorem set.image_mul_right' {α : Type u_2} {t : set α} {b : α} [group α] :
(λ (_x : α), _x * b⁻¹) '' t = (λ (_x : α), _x * b) ⁻¹' t
theorem set.image_add_right' {α : Type u_2} {t : set α} {b : α} [add_group α] :
(λ (_x : α), _x + -b) '' t = (λ (_x : α), _x + b) ⁻¹' t
@[simp]
theorem set.preimage_mul_left_singleton {α : Type u_2} {a b : α} [group α] :
@[simp]
theorem set.preimage_add_left_singleton {α : Type u_2} {a b : α} [add_group α] :
has_add.add a ⁻¹' {b} = {-a + b}
@[simp]
theorem set.preimage_mul_right_singleton {α : Type u_2} {a b : α} [group α] :
(λ (_x : α), _x * a) ⁻¹' {b} = {b * a⁻¹}
@[simp]
theorem set.preimage_add_right_singleton {α : Type u_2} {a b : α} [add_group α] :
(λ (_x : α), _x + a) ⁻¹' {b} = {b + -a}
@[simp]
theorem set.preimage_mul_left_one {α : Type u_2} {a : α} [group α] :
@[simp]
theorem set.preimage_add_left_zero {α : Type u_2} {a : α} [add_group α] :
@[simp]
theorem set.preimage_add_right_zero {α : Type u_2} {b : α} [add_group α] :
(λ (_x : α), _x + b) ⁻¹' 0 = {-b}
@[simp]
theorem set.preimage_mul_right_one {α : Type u_2} {b : α} [group α] :
(λ (_x : α), _x * b) ⁻¹' 1 = {b⁻¹}
theorem set.preimage_add_left_zero' {α : Type u_2} {a : α} [add_group α] :
(λ (b : α), -a + b) ⁻¹' 0 = {a}
theorem set.preimage_mul_left_one' {α : Type u_2} {a : α} [group α] :
(λ (b : α), a⁻¹ * b) ⁻¹' 1 = {a}
theorem set.preimage_add_right_zero' {α : Type u_2} {b : α} [add_group α] :
(λ (_x : α), _x + -b) ⁻¹' 0 = {b}
theorem set.preimage_mul_right_one' {α : Type u_2} {b : α} [group α] :
(λ (_x : α), _x * b⁻¹) ⁻¹' 1 = {b}
@[protected, instance]
def set.add_zero_class {α : Type u_2} [add_zero_class α] :

set α is an add_zero_class under pointwise operations if α is.

Equations
@[protected, instance]
def set.mul_one_class {α : Type u_2} [mul_one_class α] :

set α is a mul_one_class under pointwise operations if α is.

Equations
@[protected, instance]
def set.add_semigroup {α : Type u_2} [add_semigroup α] :

set α is an add_semigroup under pointwise operations if α is.

Equations
@[protected, instance]
def set.semigroup {α : Type u_2} [semigroup α] :

set α is a semigroup under pointwise operations if α is.

Equations
@[protected, instance]

set α is an add_comm_semigroup under pointwise operations if α is.

Equations
@[protected, instance]
def set.comm_semigroup {α : Type u_2} [comm_semigroup α] :

set α is a comm_semigroup under pointwise operations if α is.

Equations
@[protected, instance]
def set.monoid {α : Type u_2} [monoid α] :
monoid (set α)

set α is a monoid under pointwise operations if α is.

Equations
@[protected, instance]
def set.add_monoid {α : Type u_2} [add_monoid α] :

set α is an add_monoid under pointwise operations if α is.

Equations
@[protected, instance]
def set.comm_monoid {α : Type u_2} [comm_monoid α] :

set α is a comm_monoid under pointwise operations if α is.

Equations
@[protected, instance]
def set.add_comm_monoid {α : Type u_2} [add_comm_monoid α] :

set α is an add_comm_monoid under pointwise operations if α is.

Equations
theorem set.nsmul_mem_nsmul {α : Type u_2} {s : set α} {a : α} [add_monoid α] (ha : a s) (n : ) :
n a n s
theorem set.pow_mem_pow {α : Type u_2} {s : set α} {a : α} [monoid α] (ha : a s) (n : ) :
a ^ n s ^ n
theorem set.empty_pow {α : Type u_2} [monoid α] (n : ) (hn : n 0) :
theorem set.empty_nsmul {α : Type u_2} [add_monoid α] (n : ) (hn : n 0) :
@[protected, instance]
def set.decidable_mem_mul {α : Type u_2} {s t : set α} [monoid α] [fintype α] [decidable_eq α] [decidable_pred (λ (_x : α), _x s)] [decidable_pred (λ (_x : α), _x t)] :
decidable_pred (λ (_x : α), _x s * t)
Equations
@[protected, instance]
def set.decidable_mem_pow {α : Type u_2} {s : set α} [monoid α] [fintype α] [decidable_eq α] [decidable_pred (λ (_x : α), _x s)] (n : ) :
decidable_pred (λ (_x : α), _x s ^ n)
Equations
theorem set.subset_mul_left {α : Type u_2} [mul_one_class α] (s : set α) {t : set α} (ht : 1 t) :
s s * t
theorem set.subset_add_left {α : Type u_2} [add_zero_class α] (s : set α) {t : set α} (ht : 0 t) :
s s + t
theorem set.subset_add_right {α : Type u_2} [add_zero_class α] {s : set α} (t : set α) (hs : 0 s) :
t s + t
theorem set.subset_mul_right {α : Type u_2} [mul_one_class α] {s : set α} (t : set α) (hs : 1 s) :
t s * t
theorem set.pow_subset_pow {α : Type u_2} {s t : set α} [monoid α] (hst : s t) (n : ) :
s ^ n t ^ n
@[simp]
theorem set.univ_add_univ {α : Type u_2} [add_monoid α] :
@[simp]
theorem set.univ_mul_univ {α : Type u_2} [monoid α] :
@[simp]
theorem set.mul_univ {α : Type u_2} {s : set α} [group α] (hs : s.nonempty) :
@[simp]
theorem set.add_univ {α : Type u_2} {s : set α} [add_group α] (hs : s.nonempty) :
@[simp]
theorem set.univ_mul {α : Type u_2} {t : set α} [group α] (ht : t.nonempty) :
@[simp]
theorem set.univ_add {α : Type u_2} {t : set α} [add_group α] (ht : t.nonempty) :
def set.singleton_hom {α : Type u_2} [monoid α] :
α →* set α

singleton is a monoid hom.

Equations
def set.fintype_add {α : Type u_2} [has_add α] [decidable_eq α] (s t : set α) [hs : fintype s] [ht : fintype t] :

addition preserves finiteness

Equations
def set.fintype_mul {α : Type u_2} [has_mul α] [decidable_eq α] (s t : set α) [hs : fintype s] [ht : fintype t] :

multiplication preserves finiteness

Equations
theorem set.bdd_above_add {α : Type u_2} [ordered_add_comm_monoid α] {A B : set α} :
bdd_above Abdd_above Bbdd_above (A + B)
theorem set.bdd_above_mul {α : Type u_2} [ordered_comm_monoid α] {A B : set α} :
bdd_above Abdd_above Bbdd_above (A * B)
theorem set.mem_finset_sum {α : Type u_2} {ι : Type u_5} [add_comm_monoid α] (t : finset ι) (f : ι → set α) (a : α) :
a ∑ (i : ι) in t, f i ∃ (g : ι → α) (hg : ∀ {i : ι}, i tg i f i), ∑ (i : ι) in t, g i = a

The n-ary version of set.mem_add.

theorem set.mem_finset_prod {α : Type u_2} {ι : Type u_5} [comm_monoid α] (t : finset ι) (f : ι → set α) (a : α) :
a ∏ (i : ι) in t, f i ∃ (g : ι → α) (hg : ∀ {i : ι}, i tg i f i), ∏ (i : ι) in t, g i = a

The n-ary version of set.mem_mul.

theorem set.mem_fintype_prod {α : Type u_2} {ι : Type u_5} [comm_monoid α] [fintype ι] (f : ι → set α) (a : α) :
a ∏ (i : ι), f i ∃ (g : ι → α) (hg : ∀ (i : ι), g i f i), ∏ (i : ι), g i = a

A version of set.mem_finset_prod with a simpler RHS for products over a fintype.

theorem set.mem_fintype_sum {α : Type u_2} {ι : Type u_5} [add_comm_monoid α] [fintype ι] (f : ι → set α) (a : α) :
a ∑ (i : ι), f i ∃ (g : ι → α) (hg : ∀ (i : ι), g i f i), ∑ (i : ι), g i = a

A version of set.mem_finset_sum with a simpler RHS for sums over a fintype.

theorem set.finset_prod_mem_finset_prod {α : Type u_2} {ι : Type u_5} [comm_monoid α] (t : finset ι) (f : ι → set α) (g : ι → α) (hg : ∀ (i : ι), i tg i f i) :
∏ (i : ι) in t, g i ∏ (i : ι) in t, f i

The n-ary version of set.mul_mem_mul.

theorem set.finset_sum_mem_finset_sum {α : Type u_2} {ι : Type u_5} [add_comm_monoid α] (t : finset ι) (f : ι → set α) (g : ι → α) (hg : ∀ (i : ι), i tg i f i) :
∑ (i : ι) in t, g i ∑ (i : ι) in t, f i

The n-ary version of set.add_mem_add.

theorem set.finset_prod_subset_finset_prod {α : Type u_2} {ι : Type u_5} [comm_monoid α] (t : finset ι) (f₁ f₂ : ι → set α) (hf : ∀ {i : ι}, i tf₁ i f₂ i) :
∏ (i : ι) in t, f₁ i ∏ (i : ι) in t, f₂ i

The n-ary version of set.mul_subset_mul.

theorem set.finset_sum_subset_finset_sum {α : Type u_2} {ι : Type u_5} [add_comm_monoid α] (t : finset ι) (f₁ f₂ : ι → set α) (hf : ∀ {i : ι}, i tf₁ i f₂ i) :
∑ (i : ι) in t, f₁ i ∑ (i : ι) in t, f₂ i

The n-ary version of set.add_subset_add.

theorem set.finset_prod_singleton {M : Type u_1} {ι : Type u_2} [comm_monoid M] (s : finset ι) (I : ι → M) :
∏ (i : ι) in s, {I i} = {∏ (i : ι) in s, I i}
theorem set.finset_sum_singleton {M : Type u_1} {ι : Type u_2} [add_comm_monoid M] (s : finset ι) (I : ι → M) :
∑ (i : ι) in s, {I i} = {∑ (i : ι) in s, I i}

TODO: define decidable_mem_finset_prod and decidable_mem_finset_sum.

Set negation/inversion #

@[protected, instance]
def set.has_neg {α : Type u_2} [has_neg α] :

The set (-s : set α) is defined as {x | -x ∈ s} in locale pointwise. It is equal to {-x | x ∈ s}, see set.image_neg.

Equations
@[protected, instance]
def set.has_inv {α : Type u_2} [has_inv α] :

The set (s⁻¹ : set α) is defined as {x | x⁻¹ ∈ s} in locale pointwise. It is equal to {x⁻¹ | x ∈ s}, see set.image_inv.

Equations
@[simp]
theorem set.neg_empty {α : Type u_2} [has_neg α] :
@[simp]
theorem set.inv_empty {α : Type u_2} [has_inv α] :
@[simp]
theorem set.neg_univ {α : Type u_2} [has_neg α] :
@[simp]
theorem set.inv_univ {α : Type u_2} [has_inv α] :
@[simp]
theorem set.mem_inv {α : Type u_2} [has_inv α] {s : set α} {a : α} :
@[simp]
theorem set.mem_neg {α : Type u_2} [has_neg α] {s : set α} {a : α} :
a -s -a s
@[simp]
theorem set.inv_preimage {α : Type u_2} [has_inv α] {s : set α} :
@[simp]
theorem set.neg_preimage {α : Type u_2} [has_neg α] {s : set α} :
@[simp]
theorem set.inter_neg {α : Type u_2} [has_neg α] {s t : set α} :
-(s t) = -s -t
@[simp]
theorem set.inter_inv {α : Type u_2} [has_inv α] {s t : set α} :
@[simp]
theorem set.union_neg {α : Type u_2} [has_neg α] {s t : set α} :
-(s t) = -s -t
@[simp]
theorem set.union_inv {α : Type u_2} [has_inv α] {s t : set α} :
@[simp]
theorem set.Inter_inv {α : Type u_2} [has_inv α] {ι : Sort u_1} (s : ι → set α) :
(⋂ (i : ι), s i)⁻¹ = ⋂ (i : ι), (s i)⁻¹
@[simp]
theorem set.Inter_neg {α : Type u_2} [has_neg α] {ι : Sort u_1} (s : ι → set α) :
(-⋂ (i : ι), s i) = ⋂ (i : ι), -s i
@[simp]
theorem set.Union_inv {α : Type u_2} [has_inv α] {ι : Sort u_1} (s : ι → set α) :
(⋃ (i : ι), s i)⁻¹ = ⋃ (i : ι), (s i)⁻¹
@[simp]
theorem set.Union_neg {α : Type u_2} [has_neg α] {ι : Sort u_1} (s : ι → set α) :
(-⋃ (i : ι), s i) = ⋃ (i : ι), -s i
@[simp]
theorem set.compl_neg {α : Type u_2} [has_neg α] {s : set α} :
-s = (-s)
@[simp]
theorem set.compl_inv {α : Type u_2} [has_inv α] {s : set α} :
theorem set.inv_mem_inv {α : Type u_2} [has_involutive_inv α] {s : set α} {a : α} :
theorem set.neg_mem_neg {α : Type u_2} [has_involutive_neg α] {s : set α} {a : α} :
-a -s a s
@[simp]
theorem set.nonempty_neg {α : Type u_2} [has_involutive_neg α] {s : set α} :
@[simp]
theorem set.nonempty_inv {α : Type u_2} [has_involutive_inv α] {s : set α} :
theorem set.nonempty.inv {α : Type u_2} [has_involutive_inv α] {s : set α} (h : s.nonempty) :
theorem set.nonempty.neg {α : Type u_2} [has_involutive_neg α] {s : set α} (h : s.nonempty) :
theorem set.finite.inv {α : Type u_2} [has_involutive_inv α] {s : set α} (hs : s.finite) :
theorem set.finite.neg {α : Type u_2} [has_involutive_neg α] {s : set α} (hs : s.finite) :
@[simp]
theorem set.image_inv {α : Type u_2} [has_involutive_inv α] {s : set α} :
@[simp]
theorem set.image_neg {α : Type u_2} [has_involutive_neg α] {s : set α} :
@[protected, simp, instance]
Equations
@[protected, simp, instance]
Equations
@[simp]
theorem set.neg_subset_neg {α : Type u_2} [has_involutive_neg α] {s t : set α} :
-s -t s t
@[simp]
theorem set.inv_subset_inv {α : Type u_2} [has_involutive_inv α] {s t : set α} :
theorem set.inv_subset {α : Type u_2} [has_involutive_inv α] {s t : set α} :
theorem set.neg_subset {α : Type u_2} [has_involutive_neg α] {s t : set α} :
-s t s -t
theorem set.inv_singleton {α : Type u_2} [has_involutive_inv α] (a : α) :
{a}⁻¹ = {a⁻¹}
theorem set.neg_singleton {α : Type u_2} [has_involutive_neg α] (a : α) :
-{a} = {-a}
theorem set.image_op_neg {α : Type u_2} [has_involutive_neg α] {s : set α} :
@[protected]
theorem set.add_neg_rev {α : Type u_2} [add_group α] (s t : set α) :
-(s + t) = -t + -s
@[protected]
theorem set.mul_inv_rev {α : Type u_2} [group α] (s t : set α) :
(s * t)⁻¹ = t⁻¹ * s⁻¹
@[protected]
theorem set.mul_inv_rev₀ {α : Type u_2} [group_with_zero α] (s t : set α) :
(s * t)⁻¹ = t⁻¹ * s⁻¹

Set multiplication/division #

@[protected, instance]
def set.has_div {α : Type u_2} [has_div α] :

The set (s / t : set α) is defined as {x / y | x ∈ s, y ∈ t} in locale pointwise.

Equations
@[protected, instance]
def set.has_sub {α : Type u_2} [has_sub α] :

The set (s - t : set α) is defined as {x - y | x ∈ s, y ∈ t} in locale pointwise.

Equations
@[simp]
theorem set.image2_sub {α : Type u_2} {s t : set α} [has_sub α] :
@[simp]
theorem set.image2_div {α : Type u_2} {s t : set α} [has_div α] :
theorem set.mem_sub {α : Type u_2} {s t : set α} {a : α} [has_sub α] :
a s - t ∃ (x y : α), x s y t x - y = a
theorem set.mem_div {α : Type u_2} {s t : set α} {a : α} [has_div α] :
a s / t ∃ (x y : α), x s y t x / y = a
theorem set.sub_mem_sub {α : Type u_2} {s t : set α} {a b : α} [has_sub α] (ha : a s) (hb : b t) :
a - b s - t
theorem set.div_mem_div {α : Type u_2} {s t : set α} {a b : α} [has_div α] (ha : a s) (hb : b t) :
a / b s / t
theorem set.div_subset_div {α : Type u_2} {s₁ s₂ t₁ t₂ : set α} [has_div α] (h₁ : s₁ t₁) (h₂ : s₂ t₂) :
s₁ / s₂ t₁ / t₂
theorem set.sub_subset_sub {α : Type u_2} {s₁ s₂ t₁ t₂ : set α} [has_sub α] (h₁ : s₁ t₁) (h₂ : s₂ t₂) :
s₁ - s₂ t₁ - t₂
theorem set.image_div_prod {α : Type u_2} {s t : set α} [has_div α] :
(λ (x : α × α), x.fst / x.snd) '' s ×ˢ t = s / t
@[simp]
theorem set.empty_div {α : Type u_2} {s : set α} [has_div α] :
@[simp]
theorem set.empty_sub {α : Type u_2} {s : set α} [has_sub α] :
@[simp]
theorem set.sub_empty {α : Type u_2} {s : set α} [has_sub α] :
@[simp]
theorem set.div_empty {α : Type u_2} {s : set α} [has_div α] :
@[simp]
theorem set.div_singleton {α : Type u_2} {s : set α} {b : α} [has_div α] :
s / {b} = (λ (_x : α), _x / b) '' s
@[simp]
theorem set.sub_singleton {α : Type u_2} {s : set α} {b : α} [has_sub α] :
s - {b} = (λ (_x : α), _x - b) '' s
@[simp]
theorem set.singleton_div {α : Type u_2} {t : set α} {a : α} [has_div α] :
{a} / t = has_div.div a '' t
@[simp]
theorem set.singleton_sub {α : Type u_2} {t : set α} {a : α} [has_sub α] :
{a} - t = has_sub.sub a '' t
@[simp]
theorem set.singleton_sub_singleton {α : Type u_2} {a b : α} [has_sub α] :
{a} - {b} = {a - b}
@[simp]
theorem set.singleton_div_singleton {α : Type u_2} {a b : α} [has_div α] :
{a} / {b} = {a / b}
theorem set.div_subset_div_left {α : Type u_2} {s t₁ t₂ : set α} [has_div α] (h : t₁ t₂) :
s / t₁ s / t₂
theorem set.sub_subset_sub_left {α : Type u_2} {s t₁ t₂ : set α} [has_sub α] (h : t₁ t₂) :
s - t₁ s - t₂
theorem set.sub_subset_sub_right {α : Type u_2} {s₁ s₂ t : set α} [has_sub α] (h : s₁ s₂) :
s₁ - t s₂ - t
theorem set.div_subset_div_right {α : Type u_2} {s₁ s₂ t : set α} [has_div α] (h : s₁ s₂) :
s₁ / t s₂ / t
theorem set.union_div {α : Type u_2} {s₁ s₂ t : set α} [has_div α] :
(s₁ s₂) / t = s₁ / t s₂ / t
theorem set.union_sub {α : Type u_2} {s₁ s₂ t : set α} [has_sub α] :
s₁ s₂ - t = s₁ - t (s₂ - t)
theorem set.div_union {α : Type u_2} {s t₁ t₂ : set α} [has_div α] :
s / (t₁ t₂) = s / t₁ s / t₂
theorem set.sub_union {α : Type u_2} {s t₁ t₂ : set α} [has_sub α] :
s - (t₁ t₂) = s - t₁ (s - t₂)
theorem set.inter_div_subset {α : Type u_2} {s₁ s₂ t : set α} [has_div α] :
s₁ s₂ / t s₁ / t (s₂ / t)
theorem set.inter_sub_subset {α : Type u_2} {s₁ s₂ t : set α} [has_sub α] :
s₁ s₂ - t (s₁ - t) (s₂ - t)
theorem set.div_inter_subset {α : Type u_2} {s t₁ t₂ : set α} [has_div α] :
s / (t₁ t₂) s / t₁ (s / t₂)
theorem set.sub_inter_subset {α : Type u_2} {s t₁ t₂ : set α} [has_sub α] :
s - t₁ t₂ (s - t₁) (s - t₂)
theorem set.Union_sub_left_image {α : Type u_2} {s t : set α} [has_sub α] :
(⋃ (a : α) (H : a s), (λ (x : α), a - x) '' t) = s - t
theorem set.Union_div_left_image {α : Type u_2} {s t : set α} [has_div α] :
(⋃ (a : α) (H : a s), (λ (x : α), a / x) '' t) = s / t
theorem set.Union_div_right_image {α : Type u_2} {s t : set α} [has_div α] :
(⋃ (a : α) (H : a t), (λ (x : α), x / a) '' s) = s / t
theorem set.Union_sub_right_image {α : Type u_2} {s t : set α} [has_sub α] :
(⋃ (a : α) (H : a t), (λ (x : α), x - a) '' s) = s - t
theorem set.Union_div {α : Type u_2} {ι : Sort u_5} [has_div α] (s : ι → set α) (t : set α) :
(⋃ (i : ι), s i) / t = ⋃ (i : ι), s i / t
theorem set.Union_sub {α : Type u_2} {ι : Sort u_5} [has_sub α] (s : ι → set α) (t : set α) :
(⋃ (i : ι), s i) - t = ⋃ (i : ι), s i - t
theorem set.sub_Union {α : Type u_2} {ι : Sort u_5} [has_sub α] (s : set α) (t : ι → set α) :
(s - ⋃ (i : ι), t i) = ⋃ (i : ι), s - t i
theorem set.div_Union {α : Type u_2} {ι : Sort u_5} [has_div α] (s : set α) (t : ι → set α) :
(s / ⋃ (i : ι), t i) = ⋃ (i : ι), s / t i
theorem set.Union₂_sub {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_sub α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋃ (i : ι) (j : κ i), s i j) - t = ⋃ (i : ι) (j : κ i), s i j - t
theorem set.Union₂_div {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_div α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋃ (i : ι) (j : κ i), s i j) / t = ⋃ (i : ι) (j : κ i), s i j / t
theorem set.div_Union₂ {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_div α] (s : set α) (t : Π (i : ι), κ iset α) :
(s / ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s / t i j
theorem set.sub_Union₂ {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_sub α] (s : set α) (t : Π (i : ι), κ iset α) :
(s - ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s - t i j
theorem set.Inter_sub_subset {α : Type u_2} {ι : Sort u_5} [has_sub α] (s : ι → set α) (t : set α) :
(⋂ (i : ι), s i) - t ⋂ (i : ι), s i - t
theorem set.Inter_div_subset {α : Type u_2} {ι : Sort u_5} [has_div α] (s : ι → set α) (t : set α) :
(⋂ (i : ι), s i) / t ⋂ (i : ι), s i / t
theorem set.sub_Inter_subset {α : Type u_2} {ι : Sort u_5} [has_sub α] (s : set α) (t : ι → set α) :
(s - ⋂ (i : ι), t i) ⋂ (i : ι), s - t i
theorem set.div_Inter_subset {α : Type u_2} {ι : Sort u_5} [has_div α] (s : set α) (t : ι → set α) :
(s / ⋂ (i : ι), t i) ⋂ (i : ι), s / t i
theorem set.Inter₂_div_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_div α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋂ (i : ι) (j : κ i), s i j) / t ⋂ (i : ι) (j : κ i), s i j / t
theorem set.Inter₂_sub_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_sub α] (s : Π (i : ι), κ iset α) (t : set α) :
(⋂ (i : ι) (j : κ i), s i j) - t ⋂ (i : ι) (j : κ i), s i j - t
theorem set.div_Inter₂_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_div α] (s : set α) (t : Π (i : ι), κ iset α) :
(s / ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s / t i j
theorem set.sub_Inter₂_subset {α : Type u_2} {ι : Sort u_5} {κ : ι → Sort u_6} [has_sub α] (s : set α) (t : Π (i : ι), κ iset α) :
(s - ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s - t i j
@[protected, instance]
def set.has_nsmul {α : Type u_2} [has_zero α] [has_add α] :

Repeated pointwise addition (not the same as pointwise repeated addition!) of a finset.

Equations
@[protected, instance]
def set.has_npow {α : Type u_2} [has_one α] [has_mul α] :

Repeated pointwise multiplication (not the same as pointwise repeated multiplication!) of a set.

Equations
@[protected, instance]
def set.has_zsmul {α : Type u_2} [has_zero α] [has_add α] [has_neg α] :

Repeated pointwise addition/subtraction (not the same as pointwise repeated addition/subtraction!) of a set.

Equations
@[protected, instance]
def set.has_zpow {α : Type u_2} [has_one α] [has_mul α] [has_inv α] :

Repeated pointwise multiplication/division (not the same as pointwise repeated multiplication/division!) of a set.

Equations
@[protected, instance]
def set.div_inv_monoid {α : Type u_2} [group α] :

s / t = s * t⁻¹ for all s t : set α if a / b = a * b⁻¹ for all a b : α.

Equations
@[protected, instance]
def set.sub_neg_add_monoid {α : Type u_2} [add_group α] :

s - t = s + -t for all s t : set α if a - b = a + -b for all a b : α.

Equations
@[protected, instance]
def set.div_inv_monoid' {α : Type u_2} [group_with_zero α] :

s / t = s * t⁻¹ for all s t : set α if a / b = a * b⁻¹ for all a b : α.

Equations

Translation/scaling of sets #

@[protected, instance]
def set.has_vadd_set {α : Type u_2} {β : Type u_3} [has_vadd α β] :
has_vadd α (set β)

The translation of a set (x +ᵥ s : set β) by a scalar x ∶ α is defined as {x +ᵥ y | y ∈ s} in locale pointwise.

Equations
@[protected, instance]
def set.has_scalar_set {α : Type u_2} {β : Type u_3} [has_scalar α β] :
has_scalar α (set β)

The scaling of a set (x • s : set β) by a scalar x ∶ α is defined as {x • y | y ∈ s} in locale pointwise.

Equations
@[protected, instance]
def set.has_scalar {α : Type u_2} {β : Type u_3} [has_scalar α β] :
has_scalar (set α) (set β)

The pointwise scalar multiplication (s • t : set β) by a set of scalars s ∶ set α is defined as {x • y | x ∈ s, y ∈ t} in locale pointwise.

Equations
@[protected, instance]
def set.has_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] :
has_vadd (set α) (set β)

The pointwise translation (s +ᵥ t : set β) by a set of constants s ∶ set α is defined as {x +ᵥ y | x ∈ s, y ∈ t} in locale pointwise.

Equations
@[simp]
theorem set.image2_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} :
@[simp]
theorem set.image2_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} :
theorem set.image_smul_prod {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} :
(λ (x : α × β), x.fst x.snd) '' s ×ˢ t = s t
theorem set.mem_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} {b : β} :
b s +ᵥ t ∃ (x : α) (y : β), x s y t x +ᵥ y = b
theorem set.mem_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} {b : β} :
b s t ∃ (x : α) (y : β), x s y t x y = b
theorem set.vadd_mem_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} {a : α} {b : β} (ha : a s) (hb : b t) :
a +ᵥ b s +ᵥ t
theorem set.smul_mem_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} {a : α} {b : β} (ha : a s) (hb : b t) :
a b s t
theorem set.smul_subset_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s₁ s₂ : set α} {t₁ t₂ : set β} (hs : s₁ s₂) (ht : t₁ t₂) :
s₁ t₁ s₂ t₂
theorem set.vadd_subset_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s₁ s₂ : set α} {t₁ t₂ : set β} (hs : s₁ s₂) (ht : t₁ t₂) :
s₁ +ᵥ t₁ s₂ +ᵥ t₂
theorem set.vadd_subset_iff {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t u : set β} :
s +ᵥ t u ∀ (a : α), a s∀ (b : β), b ta +ᵥ b u
theorem set.smul_subset_iff {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t u : set β} :
s t u ∀ (a : α), a s∀ (b : β), b ta b u
@[simp]
theorem set.empty_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {t : set β} :
@[simp]
theorem set.empty_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {t : set β} :
@[simp]
theorem set.smul_empty {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} :
@[simp]
theorem set.vadd_empty {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} :
@[simp]
theorem set.vadd_singleton {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {b : β} :
s +ᵥ {b} = (λ (_x : α), _x +ᵥ b) '' s
@[simp]
theorem set.smul_singleton {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {b : β} :
s {b} = (λ (_x : α), _x b) '' s
@[simp]
theorem set.singleton_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {t : set β} {a : α} :
{a} t = a t
@[simp]
theorem set.singleton_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {t : set β} {a : α} :
{a} +ᵥ t = a +ᵥ t
@[simp]
theorem set.singleton_vadd_singleton {α : Type u_2} {β : Type u_3} [has_vadd α β] {a : α} {b : β} :
{a} +ᵥ {b} = {a +ᵥ b}
@[simp]
theorem set.singleton_smul_singleton {α : Type u_2} {β : Type u_3} [has_scalar α β] {a : α} {b : β} :
{a} {b} = {a b}
theorem set.vadd_subset_vadd_left {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t₁ t₂ : set β} (h : t₁ t₂) :
s +ᵥ t₁ s +ᵥ t₂
theorem set.smul_subset_smul_left {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t₁ t₂ : set β} (h : t₁ t₂) :
s t₁ s t₂
theorem set.vadd_subset_vadd_right {α : Type u_2} {β : Type u_3} [has_vadd α β] {s₁ s₂ : set α} {t : set β} (h : s₁ s₂) :
s₁ +ᵥ t s₂ +ᵥ t
theorem set.smul_subset_smul_right {α : Type u_2} {β : Type u_3} [has_scalar α β] {s₁ s₂ : set α} {t : set β} (h : s₁ s₂) :
s₁ t s₂ t
theorem set.union_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s₁ s₂ : set α} {t : set β} :
(s₁ s₂) t = s₁ t s₂ t
theorem set.union_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s₁ s₂ : set α} {t : set β} :
s₁ s₂ +ᵥ t = s₁ +ᵥ t (s₂ +ᵥ t)
theorem set.smul_union {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t₁ t₂ : set β} :
s (t₁ t₂) = s t₁ s t₂
theorem set.vadd_union {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t₁ t₂ : set β} :
s +ᵥ (t₁ t₂) = s +ᵥ t₁ (s +ᵥ t₂)
theorem set.inter_vadd_subset {α : Type u_2} {β : Type u_3} [has_vadd α β] {s₁ s₂ : set α} {t : set β} :
s₁ s₂ +ᵥ t (s₁ +ᵥ t) (s₂ +ᵥ t)
theorem set.inter_smul_subset {α : Type u_2} {β : Type u_3} [has_scalar α β] {s₁ s₂ : set α} {t : set β} :
(s₁ s₂) t s₁ t s₂ t
theorem set.vadd_inter_subset {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t₁ t₂ : set β} :
s +ᵥ t₁ t₂ (s +ᵥ t₁) (s +ᵥ t₂)
theorem set.smul_inter_subset {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t₁ t₂ : set β} :
s (t₁ t₂) s t₁ s t₂
theorem set.Union_smul_left_image {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} :
(⋃ (a : α) (H : a s), a t) = s t
theorem set.Union_vadd_left_image {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} :
(⋃ (a : α) (H : a s), a +ᵥ t) = s +ᵥ t
theorem set.Union_smul_right_image {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} :
(⋃ (a : β) (H : a t), (λ (x : α), x a) '' s) = s t
theorem set.Union_vadd_right_image {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} :
(⋃ (a : β) (H : a t), (λ (x : α), x +ᵥ a) '' s) = s +ᵥ t
theorem set.Union_smul {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_scalar α β] (s : ι → set α) (t : set β) :
(⋃ (i : ι), s i) t = ⋃ (i : ι), s i t
theorem set.Union_vadd {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vadd α β] (s : ι → set α) (t : set β) :
(⋃ (i : ι), s i) +ᵥ t = ⋃ (i : ι), s i +ᵥ t
theorem set.smul_Union {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_scalar α β] (s : set α) (t : ι → set β) :
(s ⋃ (i : ι), t i) = ⋃ (i : ι), s t i
theorem set.vadd_Union {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vadd α β] (s : set α) (t : ι → set β) :
(s +ᵥ ⋃ (i : ι), t i) = ⋃ (i : ι), s +ᵥ t i
theorem set.Union₂_smul {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_scalar α β] (s : Π (i : ι), κ iset α) (t : set β) :
(⋃ (i : ι) (j : κ i), s i j) t = ⋃ (i : ι) (j : κ i), s i j t
theorem set.Union₂_vadd {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vadd α β] (s : Π (i : ι), κ iset α) (t : set β) :
(⋃ (i : ι) (j : κ i), s i j) +ᵥ t = ⋃ (i : ι) (j : κ i), s i j +ᵥ t
theorem set.vadd_Union₂ {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vadd α β] (s : set α) (t : Π (i : ι), κ iset β) :
(s +ᵥ ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s +ᵥ t i j
theorem set.smul_Union₂ {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_scalar α β] (s : set α) (t : Π (i : ι), κ iset β) :
(s ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s t i j
theorem set.Inter_vadd_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vadd α β] (s : ι → set α) (t : set β) :
(⋂ (i : ι), s i) +ᵥ t ⋂ (i : ι), s i +ᵥ t
theorem set.Inter_smul_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_scalar α β] (s : ι → set α) (t : set β) :
(⋂ (i : ι), s i) t ⋂ (i : ι), s i t
theorem set.vadd_Inter_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vadd α β] (s : set α) (t : ι → set β) :
(s +ᵥ ⋂ (i : ι), t i) ⋂ (i : ι), s +ᵥ t i
theorem set.smul_Inter_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_scalar α β] (s : set α) (t : ι → set β) :
(s ⋂ (i : ι), t i) ⋂ (i : ι), s t i
theorem set.Inter₂_vadd_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vadd α β] (s : Π (i : ι), κ iset α) (t : set β) :
(⋂ (i : ι) (j : κ i), s i j) +ᵥ t ⋂ (i : ι) (j : κ i), s i j +ᵥ t
theorem set.Inter₂_smul_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_scalar α β] (s : Π (i : ι), κ iset α) (t : set β) :
(⋂ (i : ι) (j : κ i), s i j) t ⋂ (i : ι) (j : κ i), s i j t
theorem set.vadd_Inter₂_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vadd α β] (s : set α) (t : Π (i : ι), κ iset β) :
(s +ᵥ ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s +ᵥ t i j
theorem set.smul_Inter₂_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_scalar α β] (s : set α) (t : Π (i : ι), κ iset β) :
(s ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s t i j
theorem set.nonempty.smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} :
s.nonemptyt.nonempty(s t).nonempty
theorem set.nonempty.vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} :
s.nonemptyt.nonempty(s +ᵥ t).nonempty
theorem set.finite.smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set α} {t : set β} :
s.finitet.finite(s t).finite
theorem set.finite.vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set α} {t : set β} :
s.finitet.finite(s +ᵥ t).finite
@[simp]
theorem set.image_vadd {α : Type u_2} {β : Type u_3} [has_vadd α β] {t : set β} {a : α} :
(λ (x : β), a +ᵥ x) '' t = a +ᵥ t
@[simp]
theorem set.image_smul {α : Type u_2} {β : Type u_3} [has_scalar α β] {t : set β} {a : α} :
(λ (x : β), a x) '' t = a t
theorem set.mem_vadd_set {α : Type u_2} {β : Type u_3} [has_vadd α β] {t : set β} {a : α} {x : β} :
x a +ᵥ t ∃ (y : β), y t a +ᵥ y = x
theorem set.mem_smul_set {α : Type u_2} {β : Type u_3} [has_scalar α β] {t : set β} {a : α} {x : β} :
x a t ∃ (y : β), y t a y = x
theorem set.smul_mem_smul_set {α : Type u_2} {β : Type u_3} [has_scalar α β] {t : set β} {a : α} {y : β} (hy : y t) :
a y a t
theorem set.vadd_mem_vadd_set {α : Type u_2} {β : Type u_3} [has_vadd α β] {t : set β} {a : α} {y : β} (hy : y t) :
a +ᵥ y a +ᵥ t
theorem set.mem_smul_of_mem {α : Type u_2} {β : Type u_3} [has_scalar α β] {t : set β} {a : α} {b : β} {s : set α} (ha : a s) (hb : b t) :
a b s t
theorem set.mem_vadd_of_mem {α : Type u_2} {β : Type u_3} [has_vadd α β] {t : set β} {a : α} {b : β} {s : set α} (ha : a s) (hb : b t) :
a +ᵥ b s +ᵥ t
@[simp]
theorem set.smul_set_empty {α : Type u_2} {β : Type u_3} [has_scalar α β] {a : α} :
@[simp]
theorem set.vadd_set_empty {α : Type u_2} {β : Type u_3} [has_vadd α β] {a : α} :
@[simp]
theorem set.vadd_set_singleton {α : Type u_2} {β : Type u_3} [has_vadd α β] {a : α} {b : β} :
a +ᵥ {b} = {a +ᵥ b}
@[simp]
theorem set.smul_set_singleton {α : Type u_2} {β : Type u_3} [has_scalar α β] {a : α} {b : β} :
a {b} = {a b}
theorem set.vadd_set_mono {α : Type u_2} {β : Type u_3} [has_vadd α β] {s t : set β} {a : α} (h : s t) :
a +ᵥ s a +ᵥ t
theorem set.smul_set_mono {α : Type u_2} {β : Type u_3} [has_scalar α β] {s t : set β} {a : α} (h : s t) :
a s a t
theorem set.vadd_set_union {α : Type u_2} {β : Type u_3} [has_vadd α β] {t₁ t₂ : set β} {a : α} :
a +ᵥ (t₁ t₂) = a +ᵥ t₁ (a +ᵥ t₂)
theorem set.smul_set_union {α : Type u_2} {β : Type u_3} [has_scalar α β] {t₁ t₂ : set β} {a : α} :
a (t₁ t₂) = a t₁ a t₂
theorem set.smul_set_inter_subset {α : Type u_2} {β : Type u_3} [has_scalar α β] {t₁ t₂ : set β} {a : α} :
a (t₁ t₂) a t₁ a t₂
theorem set.vadd_set_inter_subset {α : Type u_2} {β : Type u_3} [has_vadd α β] {t₁ t₂ : set β} {a : α} :
a +ᵥ t₁ t₂ (a +ᵥ t₁) (a +ᵥ t₂)
theorem set.vadd_set_Union {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vadd α β] (a : α) (s : ι → set β) :
(a +ᵥ ⋃ (i : ι), s i) = ⋃ (i : ι), a +ᵥ s i
theorem set.smul_set_Union {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_scalar α β] (a : α) (s : ι → set β) :
(a ⋃ (i : ι), s i) = ⋃ (i : ι), a s i
theorem set.smul_set_Union₂ {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_scalar α β] (a : α) (s : Π (i : ι), κ iset β) :
(a ⋃ (i : ι) (j : κ i), s i j) = ⋃ (i : ι) (j : κ i), a s i j
theorem set.vadd_set_Union₂ {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vadd α β] (a : α) (s : Π (i : ι), κ iset β) :
(a +ᵥ ⋃ (i : ι) (j : κ i), s i j) = ⋃ (i : ι) (j : κ i), a +ᵥ s i j
theorem set.vadd_set_Inter_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vadd α β] (a : α) (t : ι → set β) :
(a +ᵥ ⋂ (i : ι), t i) ⋂ (i : ι), a +ᵥ t i
theorem set.smul_set_Inter_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_scalar α β] (a : α) (t : ι → set β) :
(a ⋂ (i : ι), t i) ⋂ (i : ι), a t i
theorem set.vadd_set_Inter₂_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vadd α β] (a : α) (t : Π (i : ι), κ iset β) :
(a +ᵥ ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), a +ᵥ t i j
theorem set.smul_set_Inter₂_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_scalar α β] (a : α) (t : Π (i : ι), κ iset β) :
(a ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), a t i j
theorem set.nonempty.vadd_set {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set β} {a : α} :
s.nonempty(a +ᵥ s).nonempty
theorem set.nonempty.smul_set {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set β} {a : α} :
s.nonempty(a s).nonempty
theorem set.finite.vadd_set {α : Type u_2} {β : Type u_3} [has_vadd α β] {s : set β} {a : α} :
s.finite(a +ᵥ s).finite
theorem set.finite.smul_set {α : Type u_2} {β : Type u_3} [has_scalar α β] {s : set β} {a : α} :
s.finite(a s).finite
theorem set.vadd_set_inter {α : Type u_2} {β : Type u_3} {a : α} [add_group α] [add_action α β] {s t : set β} :
a +ᵥ s t = (a +ᵥ s) (a +ᵥ t)
theorem set.smul_set_inter {α : Type u_2} {β : Type u_3} {a : α} [group α] [mul_action α β] {s t : set β} :
a (s t) = a s a t
theorem set.smul_set_inter₀ {α : Type u_2} {β : Type u_3} {a : α} [group_with_zero α] [mul_action α β] {s t : set β} (ha : a 0) :
a (s t) = a s a t
@[simp]
theorem set.smul_set_univ {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {a : α} :
@[simp]
theorem set.vadd_set_univ {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {a : α} :
@[simp]
theorem set.vadd_univ {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {s : set α} (hs : s.nonempty) :
@[simp]
theorem set.smul_univ {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {s : set α} (hs : s.nonempty) :
theorem set.range_vadd_range {α : Type u_2} {β : Type u_3} {ι : Type u_1} {κ : Type u_4} [has_vadd α β] (b : ι → α) (c : κ → β) :
set.range b +ᵥ set.range c = set.range (λ (p : ι × κ), b p.fst +ᵥ c p.snd)
theorem set.range_smul_range {α : Type u_2} {β : Type u_3} {ι : Type u_1} {κ : Type u_4} [has_scalar α β] (b : ι → α) (c : κ → β) :
set.range b set.range c = set.range (λ (p : ι × κ), b p.fst c p.snd)
@[protected, instance]
def set.vadd_comm_class_set {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_vadd α γ] [has_vadd β γ] [vadd_comm_class α β γ] :
vadd_comm_class α (set β) (set γ)
@[protected, instance]
def set.smul_comm_class_set {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_scalar α γ] [has_scalar β γ] [smul_comm_class α β γ] :
smul_comm_class α (set β) (set γ)
@[protected, instance]
def set.vadd_comm_class_set' {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_vadd α γ] [has_vadd β γ] [vadd_comm_class α β γ] :
vadd_comm_class (set α) β (set γ)
@[protected, instance]
def set.smul_comm_class_set' {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_scalar α γ] [has_scalar β γ] [smul_comm_class α β γ] :
smul_comm_class (set α) β (set γ)
@[protected, instance]
def set.vadd_comm_class {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_vadd α γ] [has_vadd β γ] [vadd_comm_class α β γ] :
vadd_comm_class (set α) (set β) (set γ)
@[protected, instance]
def set.smul_comm_class {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_scalar α γ] [has_scalar β γ] [smul_comm_class α β γ] :
smul_comm_class (set α) (set β) (set γ)
@[protected, instance]
def set.is_scalar_tower {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_scalar α β] [has_scalar α γ] [has_scalar β γ] [is_scalar_tower α β γ] :
is_scalar_tower α β (set γ)
@[protected, instance]
def set.is_scalar_tower' {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_scalar α β] [has_scalar α γ] [has_scalar β γ] [is_scalar_tower α β γ] :
is_scalar_tower α (set β) (set γ)
@[protected, instance]
def set.is_scalar_tower'' {α : Type u_2} {β : Type u_3} {γ : Type u_4} [has_scalar α β] [has_scalar α γ] [has_scalar β γ] [is_scalar_tower α β γ] :
is_scalar_tower (set α) (set β) (set γ)
@[protected, instance]
def set.is_central_scalar {α : Type u_2} {β : Type u_3} [has_scalar α β] [has_scalar αᵐᵒᵖ β] [is_central_scalar α β] :
@[protected, instance]
def set.mul_action {α : Type u_2} {β : Type u_3} [monoid α] [mul_action α β] :
mul_action (set α) (set β)

A multiplicative action of a monoid α on a type β gives a multiplicative action of set α on set β.

Equations
@[protected, instance]
def set.add_action {α : Type u_2} {β : Type u_3} [add_monoid α] [add_action α β] :
add_action (set α) (set β)

An additive action of an additive monoid α on a type β gives an additive action of set α on set β

Equations
@[protected, instance]
def set.add_action_set {α : Type u_2} {β : Type u_3} [add_monoid α] [add_action α β] :
add_action α (set β)

An additive action of an additive monoid on a type β gives an additive action on set β.

Equations
@[protected, instance]
def set.mul_action_set {α : Type u_2} {β : Type u_3} [monoid α] [mul_action α β] :
mul_action α (set β)

A multiplicative action of a monoid on a type β gives a multiplicative action on set β.

Equations
@[protected, instance]
def set.distrib_mul_action_set {α : Type u_2} {β : Type u_3} [monoid α] [add_monoid β] [distrib_mul_action α β] :

A distributive multiplicative action of a monoid on an additive monoid β gives a distributive multiplicative action on set β.

Equations
@[protected, instance]
def set.mul_distrib_mul_action_set {α : Type u_2} {β : Type u_3} [monoid α] [monoid β] [mul_distrib_mul_action α β] :

A multiplicative action of a monoid on a monoid β gives a multiplicative action on set β.

Equations
@[protected, instance]
def set.has_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] :
has_vsub (set α) (set β)
Equations
@[simp]
theorem set.image2_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} :
theorem set.image_vsub_prod {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} :
(λ (x : β × β), x.fst -ᵥ x.snd) '' s ×ˢ t = s -ᵥ t
theorem set.mem_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} {a : α} :
a s -ᵥ t ∃ (x y : β), x s y t x -ᵥ y = a
theorem set.vsub_mem_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} {b c : β} (hb : b s) (hc : c t) :
b -ᵥ c s -ᵥ t
theorem set.vsub_subset_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s₁ s₂ t₁ t₂ : set β} (hs : s₁ s₂) (ht : t₁ t₂) :
s₁ -ᵥ t₁ s₂ -ᵥ t₂
theorem set.vsub_subset_iff {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} {u : set α} :
s -ᵥ t u ∀ (x : β), x s∀ (y : β), y tx -ᵥ y u
@[simp]
theorem set.empty_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] (t : set β) :
@[simp]
theorem set.vsub_empty {α : Type u_2} {β : Type u_3} [has_vsub α β] (s : set β) :
@[simp]
theorem set.vsub_singleton {α : Type u_2} {β : Type u_3} [has_vsub α β] (s : set β) (b : β) :
s -ᵥ {b} = (λ (_x : β), _x -ᵥ b) '' s
@[simp]
theorem set.singleton_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] (t : set β) (b : β) :
@[simp]
theorem set.singleton_vsub_singleton {α : Type u_2} {β : Type u_3} [has_vsub α β] {b c : β} :
{b} -ᵥ {c} = {b -ᵥ c}
theorem set.vsub_subset_vsub_left {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t₁ t₂ : set β} (h : t₁ t₂) :
s -ᵥ t₁ s -ᵥ t₂
theorem set.vsub_subset_vsub_right {α : Type u_2} {β : Type u_3} [has_vsub α β] {s₁ s₂ t : set β} (h : s₁ s₂) :
s₁ -ᵥ t s₂ -ᵥ t
theorem set.union_vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s₁ s₂ t : set β} :
s₁ s₂ -ᵥ t = s₁ -ᵥ t (s₂ -ᵥ t)
theorem set.vsub_union {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t₁ t₂ : set β} :
s -ᵥ (t₁ t₂) = s -ᵥ t₁ (s -ᵥ t₂)
theorem set.inter_vsub_subset {α : Type u_2} {β : Type u_3} [has_vsub α β] {s₁ s₂ t : set β} :
s₁ s₂ -ᵥ t (s₁ -ᵥ t) (s₂ -ᵥ t)
theorem set.vsub_inter_subset {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t₁ t₂ : set β} :
s -ᵥ t₁ t₂ (s -ᵥ t₁) (s -ᵥ t₂)
theorem set.Union_vsub_left_image {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} :
(⋃ (a : β) (H : a s), has_vsub.vsub a '' t) = s -ᵥ t
theorem set.Union_vsub_right_image {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} :
(⋃ (a : β) (H : a t), (λ (_x : β), _x -ᵥ a) '' s) = s -ᵥ t
theorem set.Union_vsub {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vsub α β] (s : ι → set β) (t : set β) :
(⋃ (i : ι), s i) -ᵥ t = ⋃ (i : ι), s i -ᵥ t
theorem set.vsub_Union {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vsub α β] (s : set β) (t : ι → set β) :
(s -ᵥ ⋃ (i : ι), t i) = ⋃ (i : ι), s -ᵥ t i
theorem set.Union₂_vsub {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vsub α β] (s : Π (i : ι), κ iset β) (t : set β) :
(⋃ (i : ι) (j : κ i), s i j) -ᵥ t = ⋃ (i : ι) (j : κ i), s i j -ᵥ t
theorem set.vsub_Union₂ {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vsub α β] (s : set β) (t : Π (i : ι), κ iset β) :
(s -ᵥ ⋃ (i : ι) (j : κ i), t i j) = ⋃ (i : ι) (j : κ i), s -ᵥ t i j
theorem set.Inter_vsub_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vsub α β] (s : ι → set β) (t : set β) :
(⋂ (i : ι), s i) -ᵥ t ⋂ (i : ι), s i -ᵥ t
theorem set.vsub_Inter_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} [has_vsub α β] (s : set β) (t : ι → set β) :
(s -ᵥ ⋂ (i : ι), t i) ⋂ (i : ι), s -ᵥ t i
theorem set.Inter₂_vsub_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vsub α β] (s : Π (i : ι), κ iset β) (t : set β) :
(⋂ (i : ι) (j : κ i), s i j) -ᵥ t ⋂ (i : ι) (j : κ i), s i j -ᵥ t
theorem set.vsub_Inter₂_subset {α : Type u_2} {β : Type u_3} {ι : Sort u_5} {κ : ι → Sort u_6} [has_vsub α β] (s : set β) (t : Π (i : ι), κ iset β) :
(s -ᵥ ⋂ (i : ι) (j : κ i), t i j) ⋂ (i : ι) (j : κ i), s -ᵥ t i j
theorem set.nonempty.vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} :
s.nonemptyt.nonempty(s -ᵥ t).nonempty
theorem set.finite.vsub {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} (hs : s.finite) (ht : t.finite) :
(s -ᵥ t).finite
theorem set.vsub_self_mono {α : Type u_2} {β : Type u_3} [has_vsub α β] {s t : set β} (h : s t) :
s -ᵥ s t -ᵥ t
@[simp]
theorem set.neg_smul_set {α : Type u_2} {β : Type u_3} [ring α] [add_comm_group β] [module α β] {t : set β} {a : α} :
-a t = -(a t)
@[simp]
theorem set.smul_set_neg {α : Type u_2} {β : Type u_3} [ring α] [add_comm_group β] [module α β] {t : set β} {a : α} :
a -t = -(a t)
@[protected, simp]
theorem set.neg_smul {α : Type u_2} {β : Type u_3} [ring α] [add_comm_group β] [module α β] {s : set α} {t : set β} :
-s t = -(s t)
@[protected, simp]
theorem set.smul_neg {α : Type u_2} {β : Type u_3} [ring α] [add_comm_group β] [module α β] {s : set α} {t : set β} :
s -t = -(s t)

set α as a (∪, *)-semiring #

@[protected, instance]
@[protected, instance]
def set.set_semiring (α : Type u_1) :
Type u_1

An alias for set α, which has a semiring structure given by as "addition" and pointwise multiplication * as "multiplication".

Equations
@[protected, instance]
@[protected]
def set.up {α : Type u_2} (s : set α) :

The identity function set α → set_semiring α.

Equations
@[protected]
def set.set_semiring.down {α : Type u_2} (s : set.set_semiring α) :
set α

The identity function set_semiring α → set α.

Equations
@[protected, simp]
theorem set.down_up {α : Type u_2} {s : set α} :
s.up.down = s
@[protected, simp]
theorem set.up_down {α : Type u_2} {s : set.set_semiring α} :
s.down.up = s
theorem set.up_le_up {α : Type u_2} {s t : set α} :
s.up t.up s t
theorem set.up_lt_up {α : Type u_2} {s t : set α} :
s.up < t.up s t
@[simp]
theorem set.down_subset_down {α : Type u_2} {s t : set.set_semiring α} :
s.down t.down s t
@[simp]
theorem set.down_ssubset_down {α : Type u_2} {s t : set.set_semiring α} :
s.down t.down s < t
@[protected, instance]
Equations
theorem set.image_add {F : Type u_1} {α : Type u_2} {β : Type u_3} [has_add α] [has_add β] [add_hom_class F α β] (m : F) {s t : set α} :
m '' (s + t) = m '' s + m '' t
theorem set.image_mul {F : Type u_1} {α : Type u_2} {β : Type u_3} [has_mul α] [has_mul β] [mul_hom_class F α β] (m : F) {s t : set α} :
m '' s * t = (m '' s) * m '' t
theorem set.preimage_mul_preimage_subset {F : Type u_1} {α : Type u_2} {β : Type u_3} [has_mul α] [has_mul β] [mul_hom_class F α β] (m : F) {s t : set β} :
theorem set.preimage_add_preimage_subset {F : Type u_1} {α : Type u_2} {β : Type u_3} [has_add α] [has_add β] [add_hom_class F α β] (m : F) {s t : set β} :
@[protected, instance]
def set.image_hom {α : Type u_2} {β : Type u_3} [monoid α] [monoid β] (f : α →* β) :

The image of a set under a multiplicative homomorphism is a ring homomorphism with respect to the pointwise operations on sets.

Equations
theorem zero_smul_set {α : Type u_2} {β : Type u_3} [has_zero α] [has_zero β] [smul_with_zero α β] {s : set β} (h : s.nonempty) :
0 s = 0

A nonempty set is scaled by zero to the singleton set containing 0.

theorem zero_smul_subset {α : Type u_2} {β : Type u_3} [has_zero α] [has_zero β] [smul_with_zero α β] (s : set β) :
0 s 0
theorem subsingleton_zero_smul_set {α : Type u_2} {β : Type u_3} [has_zero α] [has_zero β] [smul_with_zero α β] (s : set β) :
theorem zero_mem_smul_set {α : Type u_2} {β : Type u_3} [has_zero α] [has_zero β] [smul_with_zero α β] {t : set β} {a : α} (h : 0 t) :
0 a t
theorem zero_mem_smul_iff {α : Type u_2} {β : Type u_3} [has_zero α] [has_zero β] [smul_with_zero α β] [no_zero_smul_divisors α β] {s : set α} {t : set β} :
0 s t 0 s t.nonempty 0 t s.nonempty
theorem zero_mem_smul_set_iff {α : Type u_2} {β : Type u_3} [has_zero α] [has_zero β] [smul_with_zero α β] [no_zero_smul_divisors α β] {t : set β} {a : α} (ha : a 0) :
0 a t 0 t
theorem smul_add_set {α : Type u_2} {β : Type u_3} [monoid α] [add_monoid β] [distrib_mul_action α β] (c : α) (s t : set β) :
c (s + t) = c s + c t
@[simp]
theorem smul_mem_smul_set_iff {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {A : set β} {a : α} {x : β} :
a x a A x A
@[simp]
theorem vadd_mem_vadd_set_iff {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {A : set β} {a : α} {x : β} :
a +ᵥ x a +ᵥ A x A
theorem mem_vadd_set_iff_neg_vadd_mem {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {A : set β} {a : α} {x : β} :
x a +ᵥ A -a +ᵥ x A
theorem mem_smul_set_iff_inv_smul_mem {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {A : set β} {a : α} {x : β} :
x a A a⁻¹ x A
theorem mem_neg_vadd_set_iff {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {A : set β} {a : α} {x : β} :
x -a +ᵥ A a +ᵥ x A
theorem mem_inv_smul_set_iff {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {A : set β} {a : α} {x : β} :
x a⁻¹ A a x A
theorem preimage_smul {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] (a : α) (t : set β) :
(λ (x : β), a x) ⁻¹' t = a⁻¹ t
theorem preimage_vadd {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] (a : α) (t : set β) :
(λ (x : β), a +ᵥ x) ⁻¹' t = -a +ᵥ t
theorem preimage_smul_inv {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] (a : α) (t : set β) :
(λ (x : β), a⁻¹ x) ⁻¹' t = a t
theorem preimage_vadd_neg {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] (a : α) (t : set β) :
(λ (x : β), -a +ᵥ x) ⁻¹' t = a +ᵥ t
@[simp]
theorem set_smul_subset_set_smul_iff {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {A B : set β} {a : α} :
a A a B A B
@[simp]
theorem set_vadd_subset_set_vadd_iff {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {A B : set β} {a : α} :
a +ᵥ A a +ᵥ B A B
theorem set_vadd_subset_iff {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {A B : set β} {a : α} :
a +ᵥ A B A -a +ᵥ B
theorem set_smul_subset_iff {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {A B : set β} {a : α} :
a A B A a⁻¹ B
theorem subset_set_smul_iff {α : Type u_2} {β : Type u_3} [group α] [mul_action α β] {A B : set β} {a : α} :
A a B a⁻¹ A B
theorem subset_set_vadd_iff {α : Type u_2} {β : Type u_3} [add_group α] [add_action α β] {A B : set β} {a : α} :
A a +ᵥ B -a +ᵥ A B
@[simp]
theorem smul_mem_smul_set_iff₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) (A : set β) (x : β) :
a x a A x A
theorem mem_smul_set_iff_inv_smul_mem₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) (A : set β) (x : β) :
x a A a⁻¹ x A
theorem mem_inv_smul_set_iff₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) (A : set β) (x : β) :
x a⁻¹ A a x A
theorem preimage_smul₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) (t : set β) :
(λ (x : β), a x) ⁻¹' t = a⁻¹ t
theorem preimage_smul_inv₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) (t : set β) :
(λ (x : β), a⁻¹ x) ⁻¹' t = a t
@[simp]
theorem set_smul_subset_set_smul_iff₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) {A B : set β} :
a A a B A B
theorem set_smul_subset_iff₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) {A B : set β} :
a A B A a⁻¹ B
theorem subset_set_smul_iff₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) {A B : set β} :
A a B a⁻¹ A B
theorem smul_univ₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {s : set α} (hs : ¬s 0) :
theorem smul_set_univ₀ {α : Type u_2} {β : Type u_3} [group_with_zero α] [mul_action α β] {a : α} (ha : a 0) :

Some lemmas about pointwise multiplication and submonoids. Ideally we put these in group_theory.submonoid.basic, but currently we cannot because that file is imported by this.

theorem submonoid.mul_subset {M : Type u_5} [monoid M] {s t : set M} {S : submonoid M} (hs : s S) (ht : t S) :
s * t S
theorem add_submonoid.add_subset {M : Type u_5} [add_monoid M] {s t : set M} {S : add_submonoid M} (hs : s S) (ht : t S) :
s + t S
theorem add_submonoid.add_subset_closure {M : Type u_5} [add_monoid M] {s t u : set M} (hs : s u) (ht : t u) :
theorem submonoid.mul_subset_closure {M : Type u_5} [monoid M] {s t u : set M} (hs : s u) (ht : t u) :
theorem add_submonoid.coe_add_self_eq {M : Type u_5} [add_monoid M] (s : add_submonoid M) :
theorem submonoid.coe_mul_self_eq {M : Type u_5} [monoid M] (s : submonoid M) :
(s) * s = s
theorem submonoid.sup_eq_closure {M : Type u_5} [monoid M] (H K : submonoid M) :
theorem submonoid.pow_smul_mem_closure_smul {M : Type u_5} [monoid M] {N : Type u_1} [comm_monoid N] [mul_action M N] [is_scalar_tower M N N] (r : M) (s : set N) {x : N} (hx : x submonoid.closure s) :
∃ (n : ), r ^ n x submonoid.closure (r s)
theorem group.card_pow_eq_card_pow_card_univ_aux {f : } (h1 : monotone f) {B : } (h2 : ∀ (n : ), f n B) (h3 : ∀ (n : ), f n = f (n + 1)f (n + 1) = f (n + 2)) (k : ) :
B kf k = f B
theorem group.card_pow_eq_card_pow_card_univ {G : Type u_5} [group G] [fintype G] (S : set G) [Π (k : ), decidable_pred (λ (_x : G), _x S ^ k)] (k : ) :
theorem add_group.card_nsmul_eq_card_nsmul_card_univ {G : Type u_5} [add_group G] [fintype G] (S : set G) [Π (k : ), decidable_pred (λ (_x : G), _x k S)] (k : ) :