The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.Finset.Lattice.Fold

225 declarations and 6 deprecated aliases. Mathlib docs · Source

Lattice operations on finsets

This file is concerned with folding binary lattice operations over finsets.

For the special case of maximum and minimum of a finset, see Max.lean.

See also Mathlib/Order/CompleteLattice/Finset.lean, which is instead concerned with how big lattice or set operations behave when indexed by a finset.

sup and inf

theorem Finset.inf'.congr_simp E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] (s s_1 : Finset β) (e_s : s = s_1) (H : s.Nonempty)
  (f f_1 : β → α), f = f_1 → s.inf' H f = s_1.inf' ⋯ f_1

theorem Finset.sup'.congr_simp E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] (s s_1 : Finset β) (e_s : s = s_1) (H : s.Nonempty)
  (f f_1 : β → α), f = f_1 → s.sup' H f = s_1.sup' ⋯ f_1

def Finset.sup E1 #

{α : Type u_2} → {β : Type u_3} → [inst : SemilatticeSup α] → [OrderBot α] → Finset β → (β → α) → α

Supremum of a finite set: sup {a, b, c} f = f a ⊔ f b ⊔ f c

def Finset.inf E1 #

{α : Type u_2} → {β : Type u_3} → [inst : SemilatticeInf α] → [OrderTop α] → Finset β → (β → α) → α

Infimum of a finite set: inf {a, b, c} f = f a ⊓ f b ⊓ f c

theorem Finset.inf_def E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α},
  s.inf f = (Multiset.map f s.val).inf

theorem Finset.sup_def E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α},
  s.sup f = (Multiset.map f s.val).sup

theorem Finset.sup_empty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {f : β → α}, ∅.sup f = ⊥

theorem Finset.inf_empty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {f : β → α}, ∅.inf f = ⊤

theorem Finset.sup_cons E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α} {b : β}
  (h : b ∉ s), (Finset.cons b s h).sup f = f b ⊔ s.sup f

theorem Finset.inf_cons E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α} {b : β}
  (h : b ∉ s), (Finset.cons b s h).inf f = f b ⊓ s.inf f

theorem Finset.sup_insert E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α}
  [inst_2 : DecidableEq β] {b : β}, (insert b s).sup f = f b ⊔ s.sup f

theorem Finset.inf_insert E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α}
  [inst_2 : DecidableEq β] {b : β}, (insert b s).inf f = f b ⊓ s.inf f

theorem Finset.inf_image E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq β]
  (s : Finset γ) (f : γ → β) (g : β → α), (Finset.image f s).inf g = s.inf (g ∘ f)

theorem Finset.sup_image E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq β]
  (s : Finset γ) (f : γ → β) (g : β → α), (Finset.image f s).sup g = s.sup (g ∘ f)

theorem Finset.inf_map E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset γ)
  (f : γ ↪ β) (g : β → α), (Finset.map f s).inf g = s.inf (g ∘ ⇑f)

theorem Finset.sup_map E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset γ)
  (f : γ ↪ β) (g : β → α), (Finset.map f s).sup g = s.sup (g ∘ ⇑f)

theorem Finset.sup_singleton E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {f : β → α} {b : β}, {b}.sup f = f b

theorem Finset.inf_singleton E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {f : β → α} {b : β}, {b}.inf f = f b

theorem Finset.inf_inf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f g : β → α},
  s.inf (f ⊓ g) = s.inf f ⊓ s.inf g

theorem Finset.sup_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f g : β → α},
  s.sup (f ⊔ g) = s.sup f ⊔ s.sup g

theorem Finset.inf_congr E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s₁ s₂ : Finset β} {f g : β → α},
  s₁ = s₂ → (∀ a ∈ s₂, f a = g a) → s₁.inf f = s₂.inf g

theorem Finset.sup_congr E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s₁ s₂ : Finset β} {f g : β → α},
  s₁ = s₂ → (∀ a ∈ s₂, f a = g a) → s₁.sup f = s₂.sup g

theorem map_finset_inf E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : SemilatticeInf α] [inst_1 : OrderTop α]
  [inst_2 : SemilatticeInf β] [inst_3 : OrderTop β] [inst_4 : FunLike F α β] [InfTopHomClass F α β] (f : F)
  (s : Finset ι) (g : ι → α), f (s.inf g) = s.inf (⇑f ∘ g)

theorem map_finset_sup E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : SemilatticeSup α] [inst_1 : OrderBot α]
  [inst_2 : SemilatticeSup β] [inst_3 : OrderBot β] [inst_4 : FunLike F α β] [SupBotHomClass F α β] (f : F)
  (s : Finset ι) (g : ι → α), f (s.sup g) = s.sup (⇑f ∘ g)

theorem Finset.le_inf_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α} {a : α},
  a ≤ s.inf f ↔ ∀ b ∈ s, a ≤ f b

theorem Finset.sup_le_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α} {a : α},
  s.sup f ≤ a ↔ ∀ b ∈ s, f b ≤ a

theorem Finset.sup_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α} {a : α},
  (∀ b ∈ s, f b ≤ a) → s.sup f ≤ a

Alias of the reverse direction of Finset.sup_le_iff.

theorem Finset.le_inf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α} {a : α},
  (∀ b ∈ s, a ≤ f b) → a ≤ s.inf f

Alias of the reverse direction of Finset.le_inf_iff.

theorem BddBelow.range_finsetInf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {f : β → α},
  BddBelow (Set.range f) → BddBelow (Set.range fun s ↦ s.inf f)

theorem BddAbove.range_finsetSup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {f : β → α},
  BddAbove (Set.range f) → BddAbove (Set.range fun s ↦ s.sup f)

theorem Finset.le_inf_const E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {a : α},
  a ≤ s.inf fun x ↦ a

theorem Finset.sup_const_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {a : α},
  (s.sup fun x ↦ a) ≤ a

theorem Finset.inf_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α} {b : β},
  b ∈ s → s.inf f ≤ f b

theorem Finset.le_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α} {b : β},
  b ∈ s → f b ≤ s.sup f

theorem Finset.isGLB_inf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α},
  IsGLB (f '' ↑s) (s.inf f)

theorem Finset.isLUB_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α},
  IsLUB (f '' ↑s) (s.sup f)

theorem Finset.isLUB_sup_id E1 #

∀ {α : Type u_2} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset α}, IsLUB (↑s) (s.sup id)

theorem Finset.isGLB_inf_id E1 #

∀ {α : Type u_2} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset α}, IsGLB (↑s) (s.inf id)

theorem Finset.le_sup_of_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α} {a : α}
  {b : β}, b ∈ s → a ≤ f b → a ≤ s.sup f

theorem Finset.inf_le_of_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α} {a : α}
  {b : β}, b ∈ s → f b ≤ a → s.inf f ≤ a

theorem Finset.inf_union E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s₁ s₂ : Finset β} {f : β → α}
  [inst_2 : DecidableEq β], (s₁ ∪ s₂).inf f = s₁.inf f ⊓ s₂.inf f

theorem Finset.sup_union E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s₁ s₂ : Finset β} {f : β → α}
  [inst_2 : DecidableEq β], (s₁ ∪ s₂).sup f = s₁.sup f ⊔ s₂.sup f

theorem Finset.inf_const E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β},
  s.Nonempty → ∀ (c : α), (s.inf fun x ↦ c) = c

theorem Finset.sup_const E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β},
  s.Nonempty → ∀ (c : α), (s.sup fun x ↦ c) = c

theorem Finset.sup_bot E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset β), (s.sup fun x ↦ ⊥) = ⊥

theorem Finset.inf_top E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset β), (s.inf fun x ↦ ⊤) = ⊤

theorem Finset.inf_ite E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f g : β → α}
  (p : β → Prop) [inst_2 : DecidablePred p],
  (s.inf fun i ↦ if p i then f i else g i) = (Finset.filter p s).inf f ⊓ {i ∈ s | ¬p i}.inf g

theorem Finset.sup_ite E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f g : β → α}
  (p : β → Prop) [inst_2 : DecidablePred p],
  (s.sup fun i ↦ if p i then f i else g i) = (Finset.filter p s).sup f ⊔ {i ∈ s | ¬p i}.sup g

theorem Finset.inf_mono_fun E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f g : β → α},
  (∀ b ∈ s, g b ≤ f b) → s.inf g ≤ s.inf f

theorem Finset.sup_mono_fun E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f g : β → α},
  (∀ b ∈ s, f b ≤ g b) → s.sup f ≤ s.sup g

theorem Finset.inf_mono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s₁ s₂ : Finset β} {f : β → α},
  s₁ ⊆ s₂ → s₂.inf f ≤ s₁.inf f

theorem Finset.sup_mono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s₁ s₂ : Finset β} {f : β → α},
  s₁ ⊆ s₂ → s₁.sup f ≤ s₂.sup f

theorem Finset.monotone_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (f : β → α), Monotone fun s ↦ s.sup f

theorem Finset.antitone_inf E1 #

∀ {β : Type u_3} {α : Type u_6} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (f : β → α), Antitone fun s ↦ s.inf f

theorem Finset.inf_comm E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset β)
  (t : Finset γ) (f : β → γ → α), (s.inf fun b ↦ t.inf (f b)) = t.inf fun c ↦ s.inf fun b ↦ f b c

theorem Finset.sup_comm E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset β)
  (t : Finset γ) (f : β → γ → α), (s.sup fun b ↦ t.sup (f b)) = t.sup fun c ↦ s.sup fun b ↦ f b c

theorem Finset.sup_attach E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset β) (f : β → α),
  (s.attach.sup fun x ↦ f ↑x) = s.sup f

theorem Finset.inf_attach E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset β) (f : β → α),
  (s.attach.inf fun x ↦ f ↑x) = s.inf f

theorem Finset.sup_erase_bot E0 #

∀ {α : Type u_2} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq α] (s : Finset α),
  (s.erase ⊥).sup id = s.sup id

theorem Finset.inf_erase_top E0 #

∀ {α : Type u_2} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq α] (s : Finset α),
  (s.erase ⊤).inf id = s.inf id

theorem Finset.sup_sdiff_right E1 #

∀ {α : Type u_6} {β : Type u_7} [inst : GeneralizedBooleanAlgebra α] (s : Finset β) (f : β → α) (a : α),
  (s.sup fun b ↦ f b \ a) = s.sup f \ a

theorem Finset.apply_inf_eq_inf_comp E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : OrderTop α]
  [inst_2 : SemilatticeInf γ] [inst_3 : OrderTop γ] {s : Finset β} {f : β → α} (g : α → γ),
  (∀ (x y : α), g (x ⊓ y) = g x ⊓ g y) → g ⊤ = ⊤ → g (s.inf f) = s.inf (g ∘ f)

theorem Finset.apply_sup_eq_sup_comp E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : OrderBot α]
  [inst_2 : SemilatticeSup γ] [inst_3 : OrderBot γ] {s : Finset β} {f : β → α} (g : α → γ),
  (∀ (x y : α), g (x ⊔ y) = g x ⊔ g y) → g ⊥ = ⊥ → g (s.sup f) = s.sup (g ∘ f)

theorem Finset.sup_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {P : α → Prop} {Pbot : P ⊥}
  {Psup : ∀ ⦃x y : α⦄, P x → P y → P (x ⊔ y)} (t : Finset β) (f : β → { x // P x }), ↑(t.sup f) = t.sup fun x ↦ ↑(f x)

Computing sup in a subtype (closed under sup) is the same as computing it in α.

theorem Finset.inf_coe E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {P : α → Prop} {Ptop : P ⊤}
  {Pinf : ∀ ⦃x y : α⦄, P x → P y → P (x ⊓ y)} (t : Finset β) (f : β → { x // P x }), ↑(t.inf f) = t.inf fun x ↦ ↑(f x)

Computing inf in a subtype (closed under inf) is the same as computing it in α.

theorem Finset.sup_toFinset E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : DecidableEq β] (s : Finset α) (f : α → Multiset β),
  (s.sup f).toFinset = s.sup fun x ↦ (f x).toFinset

theorem List.foldr_inf_eq_inf_toFinset E1 #

∀ {α : Type u_2} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq α] (l : List α),
  List.foldr (fun x1 x2 ↦ x1 ⊓ x2) ⊤ l = l.toFinset.inf id

theorem List.foldr_sup_eq_sup_toFinset E1 #

∀ {α : Type u_2} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq α] (l : List α),
  List.foldr (fun x1 x2 ↦ x1 ⊔ x2) ⊥ l = l.toFinset.sup id

theorem Finset.subset_range_sup_succ E1 #

∀ (s : Finset ℕ), s ⊆ Finset.range (s.sup id).succ

theorem Finset.sup_induction E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α}
  {p : α → Prop}, p ⊥ → (∀ (a₁ : α), p a₁ → ∀ (a₂ : α), p a₂ → p (a₁ ⊔ a₂)) → (∀ b ∈ s, p (f b)) → p (s.sup f)

theorem Finset.inf_induction E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} {f : β → α}
  {p : α → Prop}, p ⊤ → (∀ (a₁ : α), p a₁ → ∀ (a₂ : α), p a₂ → p (a₁ ⊓ a₂)) → (∀ b ∈ s, p (f b)) → p (s.inf f)

theorem Finset.sup_le_of_le_directed E1 #

∀ {α : Type u_6} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Set α),
  s.Nonempty → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → ∀ (t : Finset α), (∀ x ∈ t, ∃ y ∈ s, x ≤ y) → ∃ x ∈ s, t.sup id ≤ x

theorem Finset.le_inf_of_directed_le E1 #

∀ {α : Type u_6} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Set α),
  s.Nonempty → DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → ∀ (t : Finset α), (∀ x ∈ t, ∃ y ∈ s, y ≤ x) → ∃ x ∈ s, x ≤ t.inf id

theorem Finset.inf_mem E1 #

∀ {α : Type u_2} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Set α),
  ⊤ ∈ s → (∀ x ∈ s, ∀ y ∈ s, x ⊓ y ∈ s) → ∀ {ι : Type u_6} (t : Finset ι) (p : ι → α), (∀ i ∈ t, p i ∈ s) → t.inf p ∈ s

theorem Finset.sup_mem E1 #

∀ {α : Type u_2} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Set α),
  ⊥ ∈ s → (∀ x ∈ s, ∀ y ∈ s, x ⊔ y ∈ s) → ∀ {ι : Type u_6} (t : Finset ι) (p : ι → α), (∀ i ∈ t, p i ∈ s) → t.sup p ∈ s

theorem Finset.inf_eq_top_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (f : β → α) (S : Finset β),
  S.inf f = ⊤ ↔ ∀ s ∈ S, f s = ⊤

theorem Finset.sup_eq_bot_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (f : β → α) (S : Finset β),
  S.sup f = ⊥ ↔ ∀ s ∈ S, f s = ⊥

theorem Finset.sup_eq_zero E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α}
  [inst_2 : Zero α] [IsBotZeroClass α], s.sup f = 0 ↔ ∀ i ∈ s, f i = 0

theorem Finset.sup_eq_one E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} {f : β → α}
  [inst_2 : One α] [IsBotOneClass α], s.sup f = 1 ↔ ∀ i ∈ s, f i = 1

theorem Finset.sup_disjSum E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset β)
  (t : Finset γ) (f : β ⊕ γ → α), (s.disjSum t).sup f = (s.sup fun x ↦ f (Sum.inl x)) ⊔ t.sup fun x ↦ f (Sum.inr x)

theorem Finset.inf_disjSum E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset β)
  (t : Finset γ) (f : β ⊕ γ → α), (s.disjSum t).inf f = (s.inf fun x ↦ f (Sum.inl x)) ⊓ t.inf fun x ↦ f (Sum.inr x)

theorem Finset.sup_eq_bot_of_isEmpty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [IsEmpty β] (f : β → α) (S : Finset β),
  S.sup f = ⊥

theorem Finset.inf_eq_top_of_isEmpty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [IsEmpty β] (f : β → α) (S : Finset β),
  S.inf f = ⊤

theorem Finset.le_sup_dite_pos E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} (p : β → Prop)
  [inst_2 : DecidablePred p] {f : (b : β) → p b → α} {g : (b : β) → ¬p b → α} {b : β},
  b ∈ s → ∀ (h₁ : p b), f b h₁ ≤ s.sup fun i ↦ if h : p i then f i h else g i h

theorem Finset.inf_dite_pos_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} (p : β → Prop)
  [inst_2 : DecidablePred p] {f : (b : β) → p b → α} {g : (b : β) → ¬p b → α} {b : β},
  b ∈ s → ∀ (h₁ : p b), (s.inf fun i ↦ if h : p i then f i h else g i h) ≤ f b h₁

theorem Finset.inf_dite_neg_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} (p : β → Prop)
  [inst_2 : DecidablePred p] {f : (b : β) → p b → α} {g : (b : β) → ¬p b → α} {b : β},
  b ∈ s → ∀ (h₁ : ¬p b), (s.inf fun i ↦ if h : p i then f i h else g i h) ≤ g b h₁

theorem Finset.le_sup_dite_neg E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} (p : β → Prop)
  [inst_2 : DecidablePred p] {f : (b : β) → p b → α} {g : (b : β) → ¬p b → α} {b : β},
  b ∈ s → ∀ (h₁ : ¬p b), g b h₁ ≤ s.sup fun i ↦ if h : p i then f i h else g i h

theorem Finset.sup_eq_iSup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset α) (f : α → β), s.sup f = ⨆ a ∈ s, f a

theorem Finset.inf_eq_iInf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset α) (f : α → β), s.inf f = ⨅ a ∈ s, f a

theorem Finset.inf_id_eq_sInf E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] (s : Finset α), s.inf id = sInf ↑s

theorem Finset.sup_id_eq_sSup E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] (s : Finset α), s.sup id = sSup ↑s

theorem Finset.sup_id_set_eq_sUnion E1 #

∀ {α : Type u_2} (s : Finset (Set α)), s.sup id = ⋃₀ ↑s

theorem Finset.inf_id_set_eq_sInter E1 #

∀ {α : Type u_2} (s : Finset (Set α)), s.inf id = ⋂₀ ↑s

theorem Finset.sup_set_eq_biUnion E0 #

∀ {α : Type u_2} {β : Type u_3} (s : Finset α) (f : α → Set β), s.sup f = ⋃ x ∈ s, f x

theorem Finset.inf_set_eq_iInter E0 #

∀ {α : Type u_2} {β : Type u_3} (s : Finset α) (f : α → Set β), s.inf f = ⋂ x ∈ s, f x

theorem Finset.sup_eq_sSup_image E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset α) (f : α → β), s.sup f = sSup (f '' ↑s)

theorem Finset.inf_eq_sInf_image E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset α) (f : α → β), s.inf f = sInf (f '' ↑s)

theorem Finset.exists_sup_ge E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup β] [inst_1 : OrderBot β] [WellFoundedGT β] (f : α → β),
  ∃ t, ∀ (a : α), f a ≤ t.sup f

theorem Finset.exists_inf_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf β] [inst_1 : OrderTop β] [WellFoundedLT β] (f : α → β),
  ∃ t, ∀ (a : α), t.inf f ≤ f a

theorem Finset.exists_inf_eq_iInf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : CompleteLattice β] [WellFoundedLT β] (f : α → β), ∃ t, t.inf f = ⨅ a, f a

theorem Finset.exists_sup_eq_iSup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : CompleteLattice β] [WellFoundedGT β] (f : α → β), ∃ t, t.sup f = ⨆ a, f a

theorem Finset.toDual_inf E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset β) (f : β → α),
  OrderDual.toDual (s.inf f) = s.sup (⇑OrderDual.toDual ∘ f)

theorem Finset.toDual_sup E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset β) (f : β → α),
  OrderDual.toDual (s.sup f) = s.inf (⇑OrderDual.toDual ∘ f)

theorem Finset.ofDual_inf E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s : Finset β) (f : β → αᵒᵈ),
  OrderDual.ofDual (s.inf f) = s.sup (⇑OrderDual.ofDual ∘ f)

theorem Finset.ofDual_sup E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s : Finset β) (f : β → αᵒᵈ),
  OrderDual.ofDual (s.sup f) = s.inf (⇑OrderDual.ofDual ∘ f)

theorem Finset.inf_sup_distrib_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderTop α] (s : Finset ι) (f : ι → α) (a : α),
  a ⊔ s.inf f = s.inf fun i ↦ a ⊔ f i

theorem Finset.sup_inf_distrib_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderBot α] (s : Finset ι) (f : ι → α) (a : α),
  a ⊓ s.sup f = s.sup fun i ↦ a ⊓ f i

theorem Finset.inf_sup_distrib_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderTop α] (s : Finset ι) (f : ι → α) (a : α),
  s.inf f ⊔ a = s.inf fun i ↦ f i ⊔ a

theorem Finset.sup_inf_distrib_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderBot α] (s : Finset ι) (f : ι → α) (a : α),
  s.sup f ⊓ a = s.sup fun i ↦ f i ⊓ a

theorem Finset.disjoint_sup_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α} {a : α},
  Disjoint a (s.sup f) ↔ ∀ ⦃i : ι⦄, i ∈ s → Disjoint a (f i)

theorem Finset.codisjoint_inf_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α} {a : α},
  Codisjoint a (s.inf f) ↔ ∀ ⦃i : ι⦄, i ∈ s → Codisjoint a (f i)

theorem Finset.disjoint_sup_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α} {a : α},
  Disjoint (s.sup f) a ↔ ∀ ⦃i : ι⦄, i ∈ s → Disjoint (f i) a

theorem Finset.codisjoint_inf_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α} {a : α},
  Codisjoint (s.inf f) a ↔ ∀ ⦃i : ι⦄, i ∈ s → Codisjoint (f i) a

theorem Finset.sup_sdiff_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] (s : Finset ι) (f : ι → α) (a : α),
  (s.sup fun b ↦ a \ f b) = a \ s.inf f

theorem Finset.inf_sdiff_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] {s : Finset ι},
  s.Nonempty → ∀ (f : ι → α) (a : α), (s.inf fun b ↦ a \ f b) = a \ s.sup f

theorem Finset.inf_sdiff_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] {s : Finset ι},
  s.Nonempty → ∀ (f : ι → α) (a : α), (s.inf fun b ↦ f b \ a) = s.inf f \ a

theorem Finset.inf_himp_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] (s : Finset ι) (f : ι → α) (a : α),
  (s.inf fun b ↦ f b ⇨ a) = s.sup f ⇨ a

theorem Finset.sup_himp_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] {s : Finset ι},
  s.Nonempty → ∀ (f : ι → α) (a : α), (s.sup fun b ↦ f b ⇨ a) = s.inf f ⇨ a

theorem Finset.sup_himp_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] {s : Finset ι},
  s.Nonempty → ∀ (f : ι → α) (a : α), (s.sup fun b ↦ a ⇨ f b) = a ⇨ s.sup f

theorem Finset.compl_sup E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] (s : Finset ι) (f : ι → α), (s.sup f)ᶜ = s.inf fun i ↦ (f i)ᶜ

theorem Finset.compl_inf E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : BooleanAlgebra α] (s : Finset ι) (f : ι → α), (s.inf f)ᶜ = s.sup fun i ↦ (f i)ᶜ

theorem Finset.apply_inf_eq_inf_comp_of_linearOrder E1 #

∀ {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α}
  [inst_2 : SemilatticeInf β] [inst_3 : OrderTop β] (g : α → β), Monotone g → g ⊤ = ⊤ → g (s.inf f) = s.inf (g ∘ f)

theorem Finset.apply_sup_eq_sup_comp_of_linearOrder E1 #

∀ {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α}
  [inst_2 : SemilatticeSup β] [inst_3 : OrderBot β] (g : α → β), Monotone g → g ⊥ = ⊥ → g (s.sup f) = s.sup (g ∘ f)

theorem Finset.inf_le_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α} {a : α},
  a < ⊤ → (s.inf f ≤ a ↔ ∃ b ∈ s, f b ≤ a)

theorem Finset.le_sup_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α} {a : α},
  ⊥ < a → (a ≤ s.sup f ↔ ∃ b ∈ s, a ≤ f b)

theorem Finset.sup_eq_top_iff E0 #

∀ {ι : Type u_5} {α : Type u_6} [inst : LinearOrder α] [inst_1 : BoundedOrder α] [Nontrivial α] {s : Finset ι}
  {f : ι → α}, s.sup f = ⊤ ↔ ∃ b ∈ s, f b = ⊤

theorem Finset.inf_eq_bot_iff E0 #

∀ {ι : Type u_5} {α : Type u_6} [inst : LinearOrder α] [inst_1 : BoundedOrder α] [Nontrivial α] {s : Finset ι}
  {f : ι → α}, s.inf f = ⊥ ↔ ∃ b ∈ s, f b = ⊥

theorem Finset.Nonempty.sup_eq_top_iff E0 #

∀ {ι : Type u_5} {α : Type u_6} [inst : LinearOrder α] [inst_1 : BoundedOrder α] {s : Finset ι} {f : ι → α},
  s.Nonempty → (s.sup f = ⊤ ↔ ∃ b ∈ s, f b = ⊤)

theorem Finset.Nonempty.inf_eq_bot_iff E0 #

∀ {ι : Type u_5} {α : Type u_6} [inst : LinearOrder α] [inst_1 : BoundedOrder α] {s : Finset ι} {f : ι → α},
  s.Nonempty → (s.inf f = ⊥ ↔ ∃ b ∈ s, f b = ⊥)

theorem Finset.inf_lt_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α} {a : α},
  s.inf f < a ↔ ∃ b ∈ s, f b < a

theorem Finset.lt_sup_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α} {a : α},
  a < s.sup f ↔ ∃ b ∈ s, a < f b

theorem Finset.sup_lt_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α} {a : α},
  ⊥ < a → (s.sup f < a ↔ ∀ b ∈ s, f b < a)

theorem Finset.lt_inf_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α} {a : α},
  a < ⊤ → (a < s.inf f ↔ ∀ b ∈ s, a < f b)

theorem Finset.sup_mem_of_nonempty E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderBot α] {s : Finset ι} {f : ι → α},
  s.Nonempty → s.sup f ∈ f '' ↑s

theorem Finset.inf_mem_of_nonempty E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderTop α] {s : Finset ι} {f : ι → α},
  s.Nonempty → s.inf f ∈ f '' ↑s

theorem Finset.inf_of_mem E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (f : β → α) {b : β},
  b ∈ s → ∃ a, s.inf (WithTop.some ∘ f) = ↑a

theorem Finset.sup_of_mem E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (f : β → α) {b : β},
  b ∈ s → ∃ a, s.sup (WithBot.some ∘ f) = ↑a

def Finset.sup' E1 #

{α : Type u_2} → {β : Type u_3} → [SemilatticeSup α] → (s : Finset β) → s.Nonempty → (β → α) → α

Given nonempty finset s then s.sup' H f is the supremum of its image under f in (possibly unbounded) join-semilattice α, where H is a proof of nonemptiness. If α has a bottom element you may instead use Finset.sup which does not require s nonempty.

def Finset.inf' E1 #

{α : Type u_2} → {β : Type u_3} → [SemilatticeInf α] → (s : Finset β) → s.Nonempty → (β → α) → α

Given nonempty finset s then s.inf' H f is the infimum of its image under f in (possibly unbounded) meet-semilattice α, where H is a proof of nonemptiness. If α has a top element you may instead use Finset.inf which does not require s nonempty.

theorem Finset.coe_inf' E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α),
  ↑(s.inf' H f) = s.inf (WithTop.some ∘ f)

theorem Finset.coe_sup' E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α),
  ↑(s.sup' H f) = s.sup (WithBot.some ∘ f)

theorem Finset.inf'_cons E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α) {b : β}
  {hb : b ∉ s}, (Finset.cons b s hb).inf' ⋯ f = f b ⊓ s.inf' H f

theorem Finset.sup'_cons E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α) {b : β}
  {hb : b ∉ s}, (Finset.cons b s hb).sup' ⋯ f = f b ⊔ s.sup' H f

theorem Finset.sup'_insert E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α)
  [inst_1 : DecidableEq β] {b : β}, (insert b s).sup' ⋯ f = f b ⊔ s.sup' H f

theorem Finset.inf'_insert E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α)
  [inst_1 : DecidableEq β] {b : β}, (insert b s).inf' ⋯ f = f b ⊓ s.inf' H f

theorem Finset.sup'_singleton E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] (f : β → α) {b : β}, {b}.sup' ⋯ f = f b

theorem Finset.inf'_singleton E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] (f : β → α) {b : β}, {b}.inf' ⋯ f = f b

theorem Finset.le_inf'_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α) {a : α},
  a ≤ s.inf' H f ↔ ∀ b ∈ s, a ≤ f b

theorem Finset.sup'_le_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α) {a : α},
  s.sup' H f ≤ a ↔ ∀ b ∈ s, f b ≤ a

theorem Finset.sup'_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α) {a : α},
  (∀ b ∈ s, f b ≤ a) → s.sup' H f ≤ a

Alias of the reverse direction of Finset.sup'_le_iff.

theorem Finset.le_inf' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α) {a : α},
  (∀ b ∈ s, a ≤ f b) → a ≤ s.inf' H f

Alias of the reverse direction of Finset.le_inf'_iff.

theorem Finset.le_sup' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (f : β → α) {b : β} (h : b ∈ s),
  f b ≤ s.sup' ⋯ f

theorem Finset.inf'_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (f : β → α) {b : β} (h : b ∈ s),
  s.inf' ⋯ f ≤ f b

theorem Finset.isLUB_sup' E1 #

∀ {α : Type u_2} [inst : SemilatticeSup α] {s : Finset α} (hs : s.Nonempty), IsLUB (↑s) (s.sup' hs id)

theorem Finset.isGLB_inf' E1 #

∀ {α : Type u_2} [inst : SemilatticeInf α] {s : Finset α} (hs : s.Nonempty), IsGLB (↑s) (s.inf' hs id)

theorem Finset.le_sup'_of_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (f : β → α) {a : α} {b : β} (hb : b ∈ s),
  a ≤ f b → a ≤ s.sup' ⋯ f

theorem Finset.inf'_le_of_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (f : β → α) {a : α} {b : β} (hb : b ∈ s),
  f b ≤ a → s.inf' ⋯ f ≤ a

theorem Finset.sup'_eq_of_forall E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α) {a : α},
  (∀ b ∈ s, f b = a) → s.sup' H f = a

theorem Finset.inf'_eq_of_forall E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α) {a : α},
  (∀ b ∈ s, f b = a) → s.inf' H f = a

theorem Finset.sup'_const E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (a : α),
  (s.sup' H fun x ↦ a) = a

theorem Finset.inf'_const E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (a : α),
  (s.inf' H fun x ↦ a) = a

theorem Finset.sup'_union E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : DecidableEq β] {s₁ s₂ : Finset β} (h₁ : s₁.Nonempty)
  (h₂ : s₂.Nonempty) (f : β → α), (s₁ ∪ s₂).sup' ⋯ f = s₁.sup' h₁ f ⊔ s₂.sup' h₂ f

theorem Finset.inf'_union E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : DecidableEq β] {s₁ s₂ : Finset β} (h₁ : s₁.Nonempty)
  (h₂ : s₂.Nonempty) (f : β → α), (s₁ ∪ s₂).inf' ⋯ f = s₁.inf' h₁ f ⊓ s₂.inf' h₂ f

theorem Finset.inf'_comm E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] {s : Finset β} {t : Finset γ} (hs : s.Nonempty)
  (ht : t.Nonempty) (f : β → γ → α), (s.inf' hs fun b ↦ t.inf' ht (f b)) = t.inf' ht fun c ↦ s.inf' hs fun b ↦ f b c

theorem Finset.sup'_comm E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] {s : Finset β} {t : Finset γ} (hs : s.Nonempty)
  (ht : t.Nonempty) (f : β → γ → α), (s.sup' hs fun b ↦ t.sup' ht (f b)) = t.sup' ht fun c ↦ s.sup' hs fun b ↦ f b c

theorem Finset.sup'_induction E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) (f : β → α) {p : α → Prop},
  (∀ (a₁ : α), p a₁ → ∀ (a₂ : α), p a₂ → p (a₁ ⊔ a₂)) → (∀ b ∈ s, p (f b)) → p (s.sup' H f)

theorem Finset.inf'_induction E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) (f : β → α) {p : α → Prop},
  (∀ (a₁ : α), p a₁ → ∀ (a₂ : α), p a₂ → p (a₁ ⊓ a₂)) → (∀ b ∈ s, p (f b)) → p (s.inf' H f)

theorem Finset.sup'_mem E1 #

∀ {α : Type u_2} [inst : SemilatticeSup α] (s : Set α),
  (∀ x ∈ s, ∀ y ∈ s, x ⊔ y ∈ s) →
    ∀ {ι : Type u_6} (t : Finset ι) (H : t.Nonempty) (p : ι → α), (∀ i ∈ t, p i ∈ s) → t.sup' H p ∈ s

theorem Finset.inf'_mem E1 #

∀ {α : Type u_2} [inst : SemilatticeInf α] (s : Set α),
  (∀ x ∈ s, ∀ y ∈ s, x ⊓ y ∈ s) →
    ∀ {ι : Type u_6} (t : Finset ι) (H : t.Nonempty) (p : ι → α), (∀ i ∈ t, p i ∈ s) → t.inf' H p ∈ s

theorem Finset.inf'_congr E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} (H : s.Nonempty) {t : Finset β} {f g : β → α}
  (h₁ : s = t), (∀ x ∈ s, f x = g x) → s.inf' H f = t.inf' ⋯ g

theorem Finset.sup'_congr E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} (H : s.Nonempty) {t : Finset β} {f g : β → α}
  (h₁ : s = t), (∀ x ∈ s, f x = g x) → s.sup' H f = t.sup' ⋯ g

theorem Finset.apply_inf'_eq_inf'_comp E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : SemilatticeInf γ] {s : Finset β}
  (H : s.Nonempty) {f : β → α} (g : α → γ), (∀ (x y : α), g (x ⊓ y) = g x ⊓ g y) → g (s.inf' H f) = s.inf' H (g ∘ f)

theorem Finset.apply_sup'_eq_sup'_comp E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup γ] {s : Finset β}
  (H : s.Nonempty) {f : β → α} (g : α → γ), (∀ (x y : α), g (x ⊔ y) = g x ⊔ g y) → g (s.sup' H f) = s.sup' H (g ∘ f)

theorem map_finset_sup' E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup β]
  [inst_2 : FunLike F α β] [SupHomClass F α β] (f : F) {s : Finset ι} (hs : s.Nonempty) (g : ι → α),
  f (s.sup' hs g) = s.sup' hs (⇑f ∘ g)

theorem map_finset_inf' E0 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : SemilatticeInf α] [inst_1 : SemilatticeInf β]
  [inst_2 : FunLike F α β] [InfHomClass F α β] (f : F) {s : Finset ι} (hs : s.Nonempty) (g : ι → α),
  f (s.inf' hs g) = s.inf' hs (⇑f ∘ g)

theorem Finset.sup'_image E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : DecidableEq β] {s : Finset γ}
  {f : γ → β} (hs : (Finset.image f s).Nonempty) (g : β → α), (Finset.image f s).sup' hs g = s.sup' ⋯ (g ∘ f)

To rewrite from right to left, use Finset.sup'_comp_eq_image.

theorem Finset.inf'_image E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : DecidableEq β] {s : Finset γ}
  {f : γ → β} (hs : (Finset.image f s).Nonempty) (g : β → α), (Finset.image f s).inf' hs g = s.inf' ⋯ (g ∘ f)

To rewrite from right to left, use Finset.inf'_comp_eq_image.

theorem Finset.sup'_comp_eq_image E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] [inst_1 : DecidableEq β] {s : Finset γ}
  {f : γ → β} (hs : s.Nonempty) (g : β → α), s.sup' hs (g ∘ f) = (Finset.image f s).sup' ⋯ g

A version of Finset.sup'_image with LHS and RHS reversed. Also, this lemma assumes that s is nonempty instead of assuming that its image is nonempty.

theorem Finset.inf'_comp_eq_image E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] [inst_1 : DecidableEq β] {s : Finset γ}
  {f : γ → β} (hs : s.Nonempty) (g : β → α), s.inf' hs (g ∘ f) = (Finset.image f s).inf' ⋯ g

A version of Finset.inf'_image with LHS and RHS reversed. Also, this lemma assumes that s is nonempty instead of assuming that its image is nonempty.

theorem Finset.sup'_map E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] {s : Finset γ} {f : γ ↪ β} (g : β → α)
  (hs : (Finset.map f s).Nonempty), (Finset.map f s).sup' hs g = s.sup' ⋯ (g ∘ ⇑f)

To rewrite from right to left, use Finset.sup'_comp_eq_map.

theorem Finset.inf'_map E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] {s : Finset γ} {f : γ ↪ β} (g : β → α)
  (hs : (Finset.map f s).Nonempty), (Finset.map f s).inf' hs g = s.inf' ⋯ (g ∘ ⇑f)

To rewrite from right to left, use Finset.inf'_comp_eq_map.

theorem Finset.sup'_comp_eq_map E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeSup α] {s : Finset γ} {f : γ ↪ β} (g : β → α)
  (hs : s.Nonempty), s.sup' hs (g ∘ ⇑f) = (Finset.map f s).sup' ⋯ g

A version of Finset.sup'_map with LHS and RHS reversed. Also, this lemma assumes that s is nonempty instead of assuming that its image is nonempty.

theorem Finset.inf'_comp_eq_map E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : SemilatticeInf α] {s : Finset γ} {f : γ ↪ β} (g : β → α)
  (hs : s.Nonempty), s.inf' hs (g ∘ ⇑f) = (Finset.map f s).inf' ⋯ g

A version of Finset.inf'_map with LHS and RHS reversed. Also, this lemma assumes that s is nonempty instead of assuming that its image is nonempty.

theorem Finset.sup'_mono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] (f : β → α) {s₁ s₂ : Finset β} (h : s₁ ⊆ s₂)
  (h₁ : s₁.Nonempty), s₁.sup' h₁ f ≤ s₂.sup' ⋯ f

theorem Finset.inf'_mono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] (f : β → α) {s₁ s₂ : Finset β} (h : s₁ ⊆ s₂)
  (h₁ : s₁.Nonempty), s₂.inf' ⋯ f ≤ s₁.inf' h₁ f

theorem Finset.inf'_mono_fun E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] {s : Finset β} {hs : s.Nonempty} {f g : β → α},
  (∀ b ∈ s, g b ≤ f b) → s.inf' hs g ≤ s.inf' hs f

theorem Finset.sup'_mono_fun E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] {s : Finset β} {hs : s.Nonempty} {f g : β → α},
  (∀ b ∈ s, f b ≤ g b) → s.sup' hs f ≤ s.sup' hs g

theorem Finset.inf'_eq_inf E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β} (H : s.Nonempty)
  (f : β → α), s.inf' H f = s.inf f

theorem Finset.sup'_eq_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β} (H : s.Nonempty)
  (f : β → α), s.sup' H f = s.sup f

theorem Finset.sup'_eq_one E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [OrderBot α] {s : Finset β} {f : β → α} [inst_2 : One α]
  [IsBotOneClass α] (hs : s.Nonempty), s.sup' hs f = 1 ↔ ∀ i ∈ s, f i = 1

theorem Finset.sup'_eq_zero E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [OrderBot α] {s : Finset β} {f : β → α} [inst_2 : Zero α]
  [IsBotZeroClass α] (hs : s.Nonempty), s.sup' hs f = 0 ↔ ∀ i ∈ s, f i = 0

theorem Finset.coe_sup_of_nonempty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Finset β},
  s.Nonempty → ∀ (f : β → α), ↑(s.sup f) = s.sup (WithBot.some ∘ f)

theorem Finset.coe_inf_of_nonempty E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Finset β},
  s.Nonempty → ∀ (f : β → α), ↑(s.inf f) = s.inf (WithTop.some ∘ f)

theorem Finset.inf_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {C : β → Type u_6} [inst : (b : β) → SemilatticeInf (C b)]
  [inst_1 : (b : β) → OrderTop (C b)] (s : Finset α) (f : α → (b : β) → C b) (b : β), s.inf f b = s.inf fun a ↦ f a b

theorem Finset.sup_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {C : β → Type u_6} [inst : (b : β) → SemilatticeSup (C b)]
  [inst_1 : (b : β) → OrderBot (C b)] (s : Finset α) (f : α → (b : β) → C b) (b : β), s.sup f b = s.sup fun a ↦ f a b

theorem Finset.sup'_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {C : β → Type u_6} [inst : (b : β) → SemilatticeSup (C b)] {s : Finset α}
  (H : s.Nonempty) (f : α → (b : β) → C b) (b : β), s.sup' H f b = s.sup' H fun a ↦ f a b

theorem Finset.inf'_apply E0 #

∀ {α : Type u_2} {β : Type u_3} {C : β → Type u_6} [inst : (b : β) → SemilatticeInf (C b)] {s : Finset α}
  (H : s.Nonempty) (f : α → (b : β) → C b) (b : β), s.inf' H f b = s.inf' H fun a ↦ f a b

theorem Finset.toDual_inf' E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : SemilatticeInf α] {s : Finset ι} (hs : s.Nonempty) (f : ι → α),
  OrderDual.toDual (s.inf' hs f) = s.sup' hs (⇑OrderDual.toDual ∘ f)

theorem Finset.toDual_sup' E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : SemilatticeSup α] {s : Finset ι} (hs : s.Nonempty) (f : ι → α),
  OrderDual.toDual (s.sup' hs f) = s.inf' hs (⇑OrderDual.toDual ∘ f)

theorem Finset.ofDual_sup' E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : SemilatticeInf α] {s : Finset ι} (hs : s.Nonempty) (f : ι → αᵒᵈ),
  OrderDual.ofDual (s.sup' hs f) = s.inf' hs (⇑OrderDual.ofDual ∘ f)

theorem Finset.ofDual_inf' E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : SemilatticeSup α] {s : Finset ι} (hs : s.Nonempty) (f : ι → αᵒᵈ),
  OrderDual.ofDual (s.inf' hs f) = s.sup' hs (⇑OrderDual.ofDual ∘ f)

theorem Finset.sup'_inf_distrib_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] {s : Finset ι} (hs : s.Nonempty) (f : ι → α) (a : α),
  a ⊓ s.sup' hs f = s.sup' hs fun i ↦ a ⊓ f i

theorem Finset.inf'_sup_distrib_left E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] {s : Finset ι} (hs : s.Nonempty) (f : ι → α) (a : α),
  a ⊔ s.inf' hs f = s.inf' hs fun i ↦ a ⊔ f i

theorem Finset.sup'_inf_distrib_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] {s : Finset ι} (hs : s.Nonempty) (f : ι → α) (a : α),
  s.sup' hs f ⊓ a = s.sup' hs fun i ↦ f i ⊓ a

theorem Finset.inf'_sup_distrib_right E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DistribLattice α] {s : Finset ι} (hs : s.Nonempty) (f : ι → α) (a : α),
  s.inf' hs f ⊔ a = s.inf' hs fun i ↦ f i ⊔ a

theorem Finset.apply_inf_eq_inf_comp_of_nonempty E1 #

∀ {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} {f : ι → α} [inst_1 : OrderTop α]
  [inst_2 : SemilatticeInf β] [inst_3 : OrderTop β] {g : α → β}, Monotone g → s.Nonempty → g (s.inf f) = s.inf (g ∘ f)

theorem Finset.apply_sup_eq_sup_comp_of_nonempty E1 #

∀ {α : Type u_2} {β : Type u_3} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} {f : ι → α} [inst_1 : OrderBot α]
  [inst_2 : SemilatticeSup β] [inst_3 : OrderBot β] {g : α → β}, Monotone g → s.Nonempty → g (s.sup f) = s.sup (g ∘ f)

theorem Finset.le_sup'_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) {f : ι → α} {a : α},
  a ≤ s.sup' H f ↔ ∃ b ∈ s, a ≤ f b

theorem Finset.inf'_le_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) {f : ι → α} {a : α},
  s.inf' H f ≤ a ↔ ∃ b ∈ s, f b ≤ a

theorem Finset.inf'_lt_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) {f : ι → α} {a : α},
  s.inf' H f < a ↔ ∃ b ∈ s, f b < a

theorem Finset.lt_sup'_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) {f : ι → α} {a : α},
  a < s.sup' H f ↔ ∃ b ∈ s, a < f b

theorem Finset.sup'_lt_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) {f : ι → α} {a : α},
  s.sup' H f < a ↔ ∀ i ∈ s, f i < a

theorem Finset.lt_inf'_iff E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) {f : ι → α} {a : α},
  a < s.inf' H f ↔ ∀ i ∈ s, a < f i

theorem Finset.exists_mem_eq_sup' E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) (f : ι → α),
  ∃ i ∈ s, s.sup' H f = f i

theorem Finset.exists_mem_eq_inf' E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] {s : Finset ι} (H : s.Nonempty) (f : ι → α),
  ∃ i ∈ s, s.inf' H f = f i

theorem Finset.exists_mem_eq_inf E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderTop α] (s : Finset ι),
  s.Nonempty → ∀ (f : ι → α), ∃ i ∈ s, s.inf f = f i

theorem Finset.exists_mem_eq_sup E1 #

∀ {α : Type u_2} {ι : Type u_5} [inst : LinearOrder α] [inst_1 : OrderBot α] (s : Finset ι),
  s.Nonempty → ∀ (f : ι → α), ∃ i ∈ s, s.sup f = f i

theorem Multiset.map_finset_sup E0 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] (s : Finset γ)
  (f : γ → Multiset β) (g : β → α), Function.Injective g → Multiset.map g (s.sup f) = s.sup (Multiset.map g ∘ f)

theorem Multiset.count_finset_sup E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq β] (s : Finset α) (f : α → Multiset β) (b : β),
  Multiset.count b (s.sup f) = s.sup fun a ↦ Multiset.count b (f a)

theorem Multiset.mem_sup E0 #

∀ {α : Type u_6} {β : Type u_7} [inst : DecidableEq β] {s : Finset α} {f : α → Multiset β} {x : β},
  x ∈ s.sup f ↔ ∃ v ∈ s, x ∈ f v

theorem Finset.mem_sup' E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DecidableEq α] {s : Finset ι} {f : ι → Finset α} {a : α} (hs : s.Nonempty),
  a ∈ s.sup' hs f ↔ ∃ i ∈ s, a ∈ f i

theorem Finset.mem_inf' E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DecidableEq α] {s : Finset ι} {f : ι → Finset α} {a : α} (hs : s.Nonempty),
  a ∈ s.inf' hs f ↔ ∀ i ∈ s, a ∈ f i

theorem Finset.mem_sup E0 #

∀ {α : Type u_2} {ι : Type u_5} [inst : DecidableEq α] {s : Finset ι} {f : ι → Finset α} {a : α},
  a ∈ s.sup f ↔ ∃ i ∈ s, a ∈ f i

theorem Finset.sup_singleton_apply E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq α] (s : Finset β) (f : β → α),
  (s.sup fun b ↦ {f b}) = Finset.image f s

theorem Finset.sup_singleton_eq_self E0 #

∀ {α : Type u_2} [inst : DecidableEq α] (s : Finset α), s.sup singleton = s

Deprecated aliases

NameNew nameSince
Finset.comp_inf'_eq_inf'_compFinset.apply_inf'_eq_inf'_comp2026-05-29
Finset.comp_inf_eq_inf_compFinset.apply_inf_eq_inf_comp2026-05-29
Finset.comp_inf_eq_inf_comp_of_is_totalFinset.apply_inf_eq_inf_comp_of_linearOrder2026-05-29
Finset.comp_sup'_eq_sup'_compFinset.apply_sup'_eq_sup'_comp2026-05-29
Finset.comp_sup_eq_sup_compFinset.apply_sup_eq_sup_comp2026-05-29
Finset.comp_sup_eq_sup_comp_of_is_totalFinset.apply_sup_eq_sup_comp_of_linearOrder2026-05-29