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.Preorder.Finite

26 declarations. Mathlib docs · Source

theorem Finset.exists_minimalFor E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : LE α] [IsTrans α fun a a_1 ↦ a_1 ≤ a] (f : ι → α) (s : Finset ι),
  s.Nonempty → ∃ i, MinimalFor (fun x ↦ x ∈ s) f i

theorem Finset.exists_maximalFor E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : LE α] [IsTrans α LE.le] (f : ι → α) (s : Finset ι),
  s.Nonempty → ∃ i, MaximalFor (fun x ↦ x ∈ s) f i

theorem Finset.exists_minimal E1 #

∀ {α : Type u_2} [inst : LE α] [IsTrans α fun a a_1 ↦ a_1 ≤ a] {s : Finset α},
  s.Nonempty → ∃ i, Minimal (fun x ↦ x ∈ s) i

theorem Finset.exists_maximal E1 #

∀ {α : Type u_2} [inst : LE α] [IsTrans α LE.le] {s : Finset α}, s.Nonempty → ∃ i, Maximal (fun x ↦ x ∈ s) i

theorem Finset.exists_le_maximal E1 #

∀ {α : Type u_2} [inst : Preorder α] {a : α} (s : Finset α), a ∈ s → ∃ b, a ≤ b ∧ Maximal (fun x ↦ x ∈ s) b

theorem Finset.exists_le_minimal E1 #

∀ {α : Type u_2} [inst : Preorder α] {a : α} (s : Finset α), a ∈ s → ∃ b ≤ a, Minimal (fun x ↦ x ∈ s) b

theorem Set.Finite.exists_maximalFor E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : LE α] [IsTrans α LE.le] (f : ι → α) (s : Set ι),
  s.Finite → s.Nonempty → ∃ i, MaximalFor (fun x ↦ x ∈ s) f i

theorem Set.Finite.exists_minimalFor E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : LE α] [IsTrans α fun a a_1 ↦ a_1 ≤ a] (f : ι → α) (s : Set ι),
  s.Finite → s.Nonempty → ∃ i, MinimalFor (fun x ↦ x ∈ s) f i

theorem Set.Finite.exists_minimal E1 #

∀ {α : Type u_2} [inst : LE α] [IsTrans α fun a a_1 ↦ a_1 ≤ a] {s : Set α},
  s.Finite → s.Nonempty → ∃ i, Minimal (fun x ↦ x ∈ s) i

theorem Set.Finite.exists_maximal E1 #

∀ {α : Type u_2} [inst : LE α] [IsTrans α LE.le] {s : Set α}, s.Finite → s.Nonempty → ∃ i, Maximal (fun x ↦ x ∈ s) i

theorem Set.Finite.exists_maximalFor' E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : LE α] [IsTrans α LE.le] (f : ι → α) (s : Set ι),
  (f '' s).Finite → s.Nonempty → ∃ i, MaximalFor (fun x ↦ x ∈ s) f i

A version of Finite.exists_maximalFor with the (weaker) hypothesis that the image of s is finite rather than s itself.

theorem Set.Finite.exists_minimalFor' E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : LE α] [IsTrans α fun a a_1 ↦ a_1 ≤ a] (f : ι → α) (s : Set ι),
  (f '' s).Finite → s.Nonempty → ∃ i, MinimalFor (fun x ↦ x ∈ s) f i

theorem Set.Finite.exists_le_maximal E1 #

∀ {α : Type u_2} [inst : Preorder α] {s : Set α} {a : α}, s.Finite → a ∈ s → ∃ b, a ≤ b ∧ Maximal (fun x ↦ x ∈ s) b

theorem Set.Finite.exists_le_minimal E1 #

∀ {α : Type u_2} [inst : Preorder α] {s : Set α} {a : α}, s.Finite → a ∈ s → ∃ b ≤ a, Minimal (fun x ↦ x ∈ s) b

theorem Set.infinite_of_forall_exists_gt E1 #

∀ {α : Type u_2} [inst : Preorder α] {s : Set α} [Nonempty α], (∀ (a : α), ∃ b ∈ s, a < b) → s.Infinite

theorem Set.infinite_of_forall_exists_lt E1 #

∀ {α : Type u_2} [inst : Preorder α] {s : Set α} [Nonempty α], (∀ (a : α), ∃ b ∈ s, b < a) → s.Infinite

theorem Set.finite_isTop E1 #

∀ (α : Type u_2) [inst : PartialOrder α], {a | IsTop a}.Finite

theorem Set.finite_isBot E1 #

∀ (α : Type u_2) [inst : PartialOrder α], {a | IsBot a}.Finite

theorem Set.Infinite.exists_lt_map_eq_of_mapsTo E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] {s : Set α} {t : Set β} {f : α → β},
  s.Infinite → Set.MapsTo f s t → t.Finite → ∃ x ∈ s, ∃ y ∈ s, x < y ∧ f x = f y

theorem Set.Finite.exists_lt_map_eq_of_forall_mem E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] {t : Set β} {f : α → β} [Infinite α],
  (∀ (a : α), f a ∈ t) → t.Finite → ∃ a b, a < b ∧ f a = f b

theorem Set.Finite.exists_subsingleton_isCofinal E1 #

∀ {α : Type u_2} [inst : LinearOrder α] {s : Set α}, s.Finite → IsCofinal s → ∃ t, t.Subsingleton ∧ IsCofinal t

If the cofinality of a linear order is finite, it's at most one.

theorem Finite.exists_le_minimal E1 #

∀ {α : Type u_2} [inst : Preorder α] [Finite α] {p : α → Prop} {a : α}, p a → ∃ b ≤ a, Minimal p b

theorem Finite.exists_le_maximal E1 #

∀ {α : Type u_2} [inst : Preorder α] [Finite α] {p : α → Prop} {a : α}, p a → ∃ b, a ≤ b ∧ Maximal p b

theorem OrderEmbedding.range_eq_iff E0 #

∀ {α : Type u_4} {β : Type u_5} [inst : LinearOrder α] [inst_1 : PartialOrder β] [Finite α] {f g : α ↪o β},
  Set.range ⇑f = Set.range ⇑g ↔ f = g

theorem OrderHom.range_eq_iff E0 #

∀ {α : Type u_4} {β : Type u_5} [inst : LinearOrder α] [inst_1 : PartialOrder β] [Finite α] {f g : α →o β},
  Function.Injective ⇑f → Function.Injective ⇑g → (Set.range ⇑f = Set.range ⇑g ↔ f = g)

theorem StrictMono.apply_eq E0 #

∀ {α : Type u_4} [inst : LinearOrder α] [Finite α] {f : α → α} {x : α}, StrictMono f → f x = x

A strictly monotone self-map of a finite linear order fixes every point.