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 / V04. Order and lattices

Mathlib.Order.ConditionallyCompleteLattice.Finset

61 declarations. Mathlib docs · Source

Conditionally complete lattices and finite sets.

Relation between sSup / sInf and Finset.sup' / Finset.inf'

Like the Sup of a ConditionallyCompleteLattice, Finset.sup' also requires the set to be non-empty. As a result, we can translate between the two.

theorem ciSup_eq_ciSup_finset E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLattice α] [inst_1 : OrderBot α] [Nonempty ι] {a : ι → α},
  BddAbove (Set.range a) → ⨆ i, a i = ⨆ F, F.sup a

Supremum of a i, i : ι, is equal to the supremum over finite suprema of a.

theorem ciInf_eq_ciInf_finset E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLattice α] [inst_1 : OrderTop α] [Nonempty ι] {a : ι → α},
  BddBelow (Set.range a) → ⨅ i, a i = ⨅ F, F.inf a

Infimum of a i, i : ι, is equal to the infimum over finite infima of a.

theorem Finset.Nonempty.csInf_eq_min' E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Finset α} (h : s.Nonempty), sInf ↑s = s.min' h

theorem Finset.Nonempty.csSup_eq_max' E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Finset α} (h : s.Nonempty), sSup ↑s = s.max' h

theorem Finset.Nonempty.csSup_mem E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Finset α}, s.Nonempty → sSup ↑s ∈ s

theorem Finset.Nonempty.csInf_mem E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Finset α}, s.Nonempty → sInf ↑s ∈ s

theorem Set.Nonempty.csSup_mem E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}, s.Nonempty → s.Finite → sSup s ∈ s

theorem Set.Nonempty.csInf_mem E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}, s.Nonempty → s.Finite → sInf s ∈ s

theorem Set.Nonempty.isLeast_csInf E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}, s.Nonempty → s.Finite → IsLeast s (sInf s)

theorem Set.Nonempty.isGreatest_csSup E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}, s.Nonempty → s.Finite → IsGreatest s (sSup s)

theorem Finite.ciInf_mem E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [Nonempty ι] [Finite ι] (f : ι → α),
  ⨅ i, f i ∈ Set.range f

theorem Finite.ciSup_mem E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [Nonempty ι] [Finite ι] (f : ι → α),
  ⨆ i, f i ∈ Set.range f

theorem Finite.isGreatest_ciSup E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [Nonempty ι] [Finite ι] (f : ι → α),
  IsGreatest (Set.range f) (⨆ i, f i)

theorem Finite.isLeast_ciInf E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [Nonempty ι] [Finite ι] (f : ι → α),
  IsLeast (Set.range f) (⨅ i, f i)

theorem Set.Finite.lt_csInf_iff E0 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Set α} {a : α},
  s.Finite → s.Nonempty → (a < sInf s ↔ ∀ x ∈ s, a < x)

theorem Set.Finite.csSup_lt_iff E0 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Set α} {a : α},
  s.Finite → s.Nonempty → (sSup s < a ↔ ∀ x ∈ s, x < a)

theorem Set.Finite.map_sInf_of_monotoneOn E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrderInf β] {f : α → β},
  s.Finite → s.Nonempty → MonotoneOn f s → f (sInf s) = sInf (f '' s)

theorem Set.Finite.map_sSup_of_monotoneOn E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrderSup β] {f : α → β},
  s.Finite → s.Nonempty → MonotoneOn f s → f (sSup s) = sSup (f '' s)

theorem Set.Finite.map_sInf_of_monotone E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrderInf β] {f : α → β},
  s.Finite → s.Nonempty → Monotone f → f (sInf s) = sInf (f '' s)

theorem Set.Finite.map_sSup_of_monotone E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrderSup β] {f : α → β},
  s.Finite → s.Nonempty → Monotone f → f (sSup s) = sSup (f '' s)

theorem Set.Finite.map_sInf_of_antitoneOn E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrder β] {f : α → β},
  s.Finite → s.Nonempty → AntitoneOn f s → f (sInf s) = sSup (f '' s)

theorem Set.Finite.map_sSup_of_antitoneOn E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrder β] {f : α → β},
  s.Finite → s.Nonempty → AntitoneOn f s → f (sSup s) = sInf (f '' s)

theorem Set.Finite.map_sInf_of_antitone E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrder β] {f : α → β},
  s.Finite → s.Nonempty → Antitone f → f (sInf s) = sSup (f '' s)

theorem Set.Finite.map_sSup_of_antitone E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] {s : Set α}
  [inst_1 : ConditionallyCompletePartialOrder β] {f : α → β},
  s.Finite → s.Nonempty → Antitone f → f (sSup s) = sInf (f '' s)

theorem Finset.ciSup_eq_max'_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] (f : ι → α) {s : Finset ι},
  (∃ x ∈ s, sSup ∅ ≤ f x) →
    ∀ (h' : autoParam (Finset.image f s).Nonempty Finset.ciSup_eq_max'_image._auto_1),
      ⨆ i ∈ s, f i = (Finset.image f s).max' h'

theorem Finset.ciInf_eq_min'_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] (f : ι → α) {s : Finset ι},
  (∃ x ∈ s, f x ≤ sInf ∅) →
    ∀ (h' : autoParam (Finset.image f s).Nonempty Finset.ciInf_eq_min'_image._auto_1),
      ⨅ i ∈ s, f i = (Finset.image f s).min' h'

theorem Finset.ciInf_mem_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] (f : ι → α) {s : Finset ι},
  (∃ x ∈ s, f x ≤ sInf ∅) → ⨅ i ∈ s, f i ∈ Finset.image f s

theorem Finset.ciSup_mem_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] (f : ι → α) {s : Finset ι},
  (∃ x ∈ s, sSup ∅ ≤ f x) → ⨆ i ∈ s, f i ∈ Finset.image f s

theorem Set.Finite.ciInf_mem_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] (f : ι → α) {s : Set ι},
  s.Finite → (∃ x ∈ s, f x ≤ sInf ∅) → ⨅ i ∈ s, f i ∈ f '' s

theorem Set.Finite.ciSup_mem_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] (f : ι → α) {s : Set ι},
  s.Finite → (∃ x ∈ s, sSup ∅ ≤ f x) → ⨆ i ∈ s, f i ∈ f '' s

theorem Set.Finite.ciSup_lt_iff E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {a : α} {s : Set ι} {f : ι → α},
  s.Finite → (∃ x ∈ s, sSup ∅ ≤ f x) → (⨆ i ∈ s, f i < a ↔ ∀ x ∈ s, f x < a)

theorem Set.Finite.lt_ciInf_iff E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {a : α} {s : Set ι} {f : ι → α},
  s.Finite → (∃ x ∈ s, f x ≤ sInf ∅) → (a < ⨅ i ∈ s, f i ↔ ∀ x ∈ s, a < f x)

theorem List.iSup_mem_map_of_exists_sSup_empty_le E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {l : List ι} (f : ι → α),
  (∃ x ∈ l, sSup ∅ ≤ f x) → ⨆ x ∈ l, f x ∈ List.map f l

theorem List.iInf_mem_map_of_exists_le_sInf_empty E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {l : List ι} (f : ι → α),
  (∃ x ∈ l, f x ≤ sInf ∅) → ⨅ x ∈ l, f x ∈ List.map f l

theorem Multiset.iSup_mem_map_of_exists_sSup_empty_le E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Multiset ι} (f : ι → α),
  (∃ x ∈ s, sSup ∅ ≤ f x) → ⨆ x ∈ s, f x ∈ Multiset.map f s

theorem Multiset.iInf_mem_map_of_exists_le_sInf_empty E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] {s : Multiset ι} (f : ι → α),
  (∃ x ∈ s, f x ≤ sInf ∅) → ⨅ x ∈ s, f x ∈ Multiset.map f s

theorem exists_eq_ciInf_of_finite E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [Nonempty ι] [Finite ι] {f : ι → α},
  ∃ i, f i = ⨅ i, f i

theorem exists_eq_ciSup_of_finite E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [Nonempty ι] [Finite ι] {f : ι → α},
  ∃ i, f i = ⨆ i, f i

theorem sSup_ne_of_notMem E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] {s : Set α}, s.Finite → ∀ {a : α}, a ≠ ⊥ → a ∉ s → sSup s ≠ a

theorem sInf_ne_of_notMem E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] {s : Set α}, s.Finite → ∀ {a : α}, a ≠ ⊤ → a ∉ s → sInf s ≠ a

theorem sSup_ne_top E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] [Nontrivial α] {s : Set α}, s.Finite → ⊤ ∉ s → sSup s ≠ ⊤

theorem sInf_ne_bot E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] [Nontrivial α] {s : Set α}, s.Finite → ⊥ ∉ s → sInf s ≠ ⊥

theorem iSup_ne_of_notMem E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] {ι : Sort u_5} [Finite ι] {f : ι → α} {a : α},
  a ≠ ⊥ → (∀ (x : ι), f x ≠ a) → iSup f ≠ a

theorem iInf_ne_of_notMem E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] {ι : Sort u_5} [Finite ι] {f : ι → α} {a : α},
  a ≠ ⊤ → (∀ (x : ι), f x ≠ a) → iInf f ≠ a

theorem iSup_ne_top E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] {ι : Sort u_5} [Finite ι] [Nontrivial α] {f : ι → α},
  (∀ (x : ι), f x ≠ ⊤) → iSup f ≠ ⊤

theorem iInf_ne_bot E1 #

∀ {α : Type u_4} [inst : CompleteLinearOrder α] {ι : Sort u_5} [Finite ι] [Nontrivial α] {f : ι → α},
  (∀ (x : ι), f x ≠ ⊥) → iInf f ≠ ⊥

theorem Finset.sup'_eq_csSup_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLattice α] (s : Finset ι) (H : s.Nonempty) (f : ι → α),
  s.sup' H f = sSup (f '' ↑s)

theorem Finset.inf'_eq_csInf_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLattice α] (s : Finset ι) (H : s.Nonempty) (f : ι → α),
  s.inf' H f = sInf (f '' ↑s)

theorem Finset.sup'_id_eq_csSup E1 #

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

theorem Finset.inf'_id_eq_csInf E1 #

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

theorem Finset.inf'_univ_eq_ciInf E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLattice α] [inst_1 : Fintype ι] [inst_2 : Nonempty ι]
  (f : ι → α), Finset.univ.inf' ⋯ f = ⨅ i, f i

theorem Finset.sup'_univ_eq_ciSup E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLattice α] [inst_1 : Fintype ι] [inst_2 : Nonempty ι]
  (f : ι → α), Finset.univ.sup' ⋯ f = ⨆ i, f i

theorem Finset.sup_eq_ciSup E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] (s : Finset ι) (f : ι → α),
  s.sup f = ⨆ x ∈ s, f x

theorem Finset.sup_univ_eq_ciSup E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] [inst_1 : Fintype ι] (f : ι → α),
  Finset.univ.sup f = ⨆ i, f i

theorem Finset.ciSup_union E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] [inst_1 : DecidableEq ι] {f : ι → α}
  {s t : Finset ι}, ⨆ x ∈ s ∪ t, f x = max (⨆ x ∈ s, f x) (⨆ x ∈ t, f x)

theorem Finset.Nonempty.ciSup_eq_max'_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] (f : ι → α) {s : Finset ι}
  (h : s.Nonempty) (h' : optParam (Finset.image f s).Nonempty ⋯), ⨆ i ∈ s, f i = (Finset.image f s).max' h'

theorem Finset.Nonempty.ciSup_mem_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] (f : ι → α) {s : Finset ι},
  s.Nonempty → ⨆ i ∈ s, f i ∈ Finset.image f s

theorem Set.Nonempty.ciSup_mem_image E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] (f : ι → α) {s : Set ι},
  s.Nonempty → s.Finite → ⨆ i ∈ s, f i ∈ f '' s

theorem Set.Nonempty.ciSup_lt_iff E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] {s : Set ι} {a : α} {f : ι → α},
  s.Nonempty → s.Finite → (⨆ i ∈ s, f i < a ↔ ∀ x ∈ s, f x < a)

theorem List.iSup_mem_map_of_ne_nil E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] {l : List ι} (f : ι → α),
  l ≠ [] → ⨆ x ∈ l, f x ∈ List.map f l

theorem Multiset.iSup_mem_map_of_ne_zero E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : ConditionallyCompleteLinearOrderBot α] {s : Multiset ι} (f : ι → α),
  s ≠ 0 → ⨆ x ∈ s, f x ∈ Multiset.map f s