The areas / V04. Order and lattices
Mathlib.Algebra.Order.Group.Finset
17 declarations. Mathlib docs · Source
theorem Multiset.toFinset_nsmul E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : Multiset α) (n : ℕ), n ≠ 0 → (n • s).toFinset = s.toFinset
theorem Multiset.toFinset_eq_singleton_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : Multiset α) (a : α), s.toFinset = {a} ↔ s.card ≠ 0 ∧ s = s.card • {a}
theorem Multiset.toFinset_card_eq_one_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : Multiset α), s.toFinset.card = 1 ↔ s.card ≠ 0 ∧ ∃ a, s = s.card • {a}
theorem Finset.fold_max_add E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : LinearOrder M] [inst_1 : Add M] [AddRightMono M] (s : Finset ι) (a : WithBot M)
(f : ι → M), Finset.fold max ⊥ (fun i ↦ ↑(f i) + a) s = Finset.fold max ⊥ (WithBot.some ∘ f) s + a
theorem Finset.inf'_pow E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : LinearOrder M] [inst_1 : Monoid M] [MulLeftMono M] [MulRightMono M]
(s : Finset ι) (f : ι → M) (n : ℕ) (hs : s.Nonempty), s.inf' hs f ^ n = s.inf' hs fun a ↦ f a ^ n
theorem Finset.nsmul_inf' E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : LinearOrder M] [inst_1 : AddMonoid M] [AddLeftMono M] [AddRightMono M]
(s : Finset ι) (f : ι → M) (n : ℕ) (hs : s.Nonempty), n • s.inf' hs f = s.inf' hs fun a ↦ n • f a
theorem Finset.sup'_pow E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : LinearOrder M] [inst_1 : Monoid M] [MulLeftMono M] [MulRightMono M]
(s : Finset ι) (f : ι → M) (n : ℕ) (hs : s.Nonempty), s.sup' hs f ^ n = s.sup' hs fun a ↦ f a ^ n
theorem Finset.nsmul_sup' E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : LinearOrder M] [inst_1 : AddMonoid M] [AddLeftMono M] [AddRightMono M]
(s : Finset ι) (f : ι → M) (n : ℕ) (hs : s.Nonempty), n • s.sup' hs f = s.sup' hs fun a ↦ n • f a
theorem Finset.sup'_add E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : AddGroup G] [inst_1 : LinearOrder G] [AddRightMono G] (s : Finset ι) (f : ι → G)
(a : G) (hs : s.Nonempty), s.sup' hs f + a = s.sup' hs fun i ↦ f i + a
Also see Finset.sup'_add' that works for canonically ordered monoids.
theorem Finset.sup'_mul E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] [inst_1 : LinearOrder G] [MulRightMono G] (s : Finset ι) (f : ι → G)
(a : G) (hs : s.Nonempty), s.sup' hs f * a = s.sup' hs fun i ↦ f i * a
theorem Finset.add_sup' E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : AddGroup G] [inst_1 : LinearOrder G] [AddLeftMono G] (s : Finset ι) (f : ι → G)
(a : G) (hs : s.Nonempty), a + s.sup' hs f = s.sup' hs fun i ↦ a + f i
Also see Finset.add_sup'' that works for canonically ordered monoids.
theorem Finset.mul_sup' E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] [inst_1 : LinearOrder G] [MulLeftMono G] (s : Finset ι) (f : ι → G)
(a : G) (hs : s.Nonempty), a * s.sup' hs f = s.sup' hs fun i ↦ a * f i
theorem Finset.sup'_add' E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] [CanonicallyOrderedAdd M]
[inst_3 : Sub M] [AddLeftReflectLE M] [OrderedSub M] (s : Finset ι) (f : ι → M) (a : M) (hs : s.Nonempty),
s.sup' hs f + a = s.sup' hs fun i ↦ f i + a
Also see Finset.sup'_add that works for ordered groups.
theorem Finset.add_sup'' E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] [CanonicallyOrderedAdd M]
[inst_3 : Sub M] [AddLeftReflectLE M] [OrderedSub M] {s : Finset ι} (hs : s.Nonempty) (f : ι → M) (a : M),
a + s.sup' hs f = s.sup' hs fun i ↦ a + f i
Also see Finset.add_sup' that works for ordered groups.
theorem Finset.sup_add E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] [CanonicallyOrderedAdd M]
[inst_3 : Sub M] [AddLeftReflectLE M] [OrderedSub M] {s : Finset ι} [inst_6 : OrderBot M],
s.Nonempty → ∀ (f : ι → M) (a : M), s.sup f + a = s.sup fun i ↦ f i + a
theorem Finset.add_sup E1 #
∀ {ι : Type u_1} {M : Type u_3} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] [CanonicallyOrderedAdd M]
[inst_3 : Sub M] [AddLeftReflectLE M] [OrderedSub M] {s : Finset ι} [inst_6 : OrderBot M],
s.Nonempty → ∀ (f : ι → M) (a : M), a + s.sup f = s.sup fun i ↦ a + f i
theorem Finset.sup_add_sup E1 #
∀ {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [inst : AddCommMonoid M] [inst_1 : LinearOrder M]
[CanonicallyOrderedAdd M] [inst_3 : Sub M] [AddLeftReflectLE M] [OrderedSub M] {s : Finset ι} {t : Finset κ}
[inst_6 : OrderBot M],
s.Nonempty → t.Nonempty → ∀ (f : ι → M) (g : κ → M), s.sup f + t.sup g = (s ×ˢ t).sup fun ij ↦ f ij.1 + g ij.2