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.KrullDimension

158 declarations. Mathlib docs · Source

Krull dimension of a preordered set and height of an element

If α is a preordered set, then krullDim α : WithBot ℕ∞ is defined to be sup {n | a₀ < a₁ < ... < aₙ}.

In case that α is empty, then its Krull dimension is defined to be negative infinity; if the length of all series a₀ < a₁ < ... < aₙ is unbounded, then its Krull dimension is defined to be positive infinity.

For a : α, its height (in ℕ∞) is defined to be sup {n | a₀ < a₁ < ... < aₙ ≤ a}, while its coheight is defined to be sup {n | a ≤ a₀ < a₁ < ... < aₙ} .

Main results

  • The Krull dimension is the same as that of the dual order (krullDim_orderDual).

  • The Krull dimension is the supremum of the heights of the elements (krullDim_eq_iSup_height), or their coheights (krullDim_eq_iSup_coheight), or their sums of height and coheight (krullDim_eq_iSup_height_add_coheight_of_nonempty)

  • The height in the dual order equals the coheight, and vice versa.

  • The height is monotone (height_mono), and strictly monotone if finite (height_strictMono).

  • The coheight is antitone (coheight_anti), and strictly antitone if finite (coheight_strictAnti).

  • The height is the supremum of the successor of the height of all smaller elements (height_eq_iSup_lt_height).

  • The elements of height zero are the minimal elements (height_eq_zero), and the elements of height n are minimal among those of height ≥ n (height_eq_coe_iff_minimal_le_height).

  • Concrete calculations for the height, coheight and Krull dimension in ℕ, ℤ, WithTop, WithBot and ℕ∞.

Design notes

Krull dimensions are defined to take value in WithBot ℕ∞ so that (-∞) + (+∞) is also negative infinity. This is because we want Krull dimensions to be additive with respect to product of varieties so that -∞ being the Krull dimension of empty variety is equal to sum of -∞ and the Krull dimension of any other varieties.

We could generalize the notion of Krull dimension to an arbitrary binary relation; many results in this file would generalize as well. But we don't think it would be useful, so we only define Krull dimension of a preorder.

Height

Krull dimension

Concrete calculations

theorem LTSeries.withLength.congr_simp E1 #

∀ (α : Type u_1) [inst : Preorder α] [inst_1 : InfiniteDimensionalOrder α] (n n_1 : ℕ),
  n = n_1 → LTSeries.withLength α n = LTSeries.withLength α n_1

theorem LTSeries.map.congr_simp E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (p p_1 : LTSeries α),
  p = p_1 → ∀ (f f_1 : α → β) (e_f : f = f_1) (hf : StrictMono f), p.map f hf = p_1.map f_1 ⋯

theorem LTSeries.longestOf.congr_simp E1 #

∀ (α : Type u_1) [inst : Preorder α] [inst_1 : FiniteDimensionalOrder α], LTSeries.longestOf α = LTSeries.longestOf α

def Order.krullDim E1 #

(α : Type u_1) → [Preorder α] → WithBot ℕ∞

The Krull dimension of a preorder α is the supremum of the rightmost index of all relation series of α ordered by <. If there is no series a₀ < a₁ < ... < aₙ in α, then its Krull dimension is defined to be negative infinity; if the length of all series a₀ < a₁ < ... < aₙ is unbounded, its Krull dimension is defined to be positive infinity.

def Order.height E1 #

{α : Type u_1} → [Preorder α] → α → ℕ∞

The height of an element a in a preorder α is the supremum of the rightmost index of all relation series of α ordered by < and ending below or at a. In other words, it is the largest n such that there's a series a₀ < a₁ < ... < aₙ = a (or ∞ if there is no largest n).

def Order.coheight E1 #

{α : Type u_1} → [Preorder α] → α → ℕ∞

The coheight of an element a in a preorder α is the supremum of the rightmost index of all relation series of α ordered by < and beginning with a. In other words, it is the largest n such that there's a series a = a₀ < a₁ < ... < aₙ (or ∞ if there is no largest n).

The definition of coheight is via the height in the dual order, in order to easily transfer theorems between height and coheight. See coheight_eq for the definition with a series ordered by < and beginning with a.

theorem Order.height_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.height (OrderDual.toDual x) = Order.coheight x

theorem Order.height_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : αᵒᵈ), Order.height (OrderDual.ofDual x) = Order.coheight x

theorem Order.coheight_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.coheight (OrderDual.toDual x) = Order.height x

theorem Order.coheight_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : αᵒᵈ), Order.coheight (OrderDual.ofDual x) = Order.height x

theorem Order.coheight_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Order.coheight a = ⨆ p, ⨆ (_ : a ≤ RelSeries.head p), ↑p.length

The coheight of an element a in a preorder α is the supremum of the rightmost index of all relation series of α ordered by < and beginning with a.

This is not the definition of coheight. The definition of coheight is via the height in the dual order, in order to easily transfer theorems between height and coheight.

theorem Order.height_le_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ∞},
  Order.height a ≤ n ↔ ∀ ⦃p : LTSeries α⦄, RelSeries.last p ≤ a → ↑p.length ≤ n

theorem Order.coheight_le_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ∞},
  Order.coheight a ≤ n ↔ ∀ ⦃p : LTSeries α⦄, a ≤ RelSeries.head p → ↑p.length ≤ n

theorem Order.height_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ∞},
  (∀ (p : LTSeries α), RelSeries.last p = a → ↑p.length ≤ n) → Order.height a ≤ n

theorem Order.height_le_iff' E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ∞},
  Order.height a ≤ n ↔ ∀ ⦃p : LTSeries α⦄, RelSeries.last p = a → ↑p.length ≤ n

Variant of height_le_iff ranging only over those series that end exactly on a.

theorem Order.height_eq_iSup_last_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Order.height a = ⨆ p, ⨆ (_ : RelSeries.last p = a), ↑p.length

Alternative definition of height, with the supremum ranging only over those series that end at a.

theorem Order.coheight_eq_iSup_head_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Order.coheight a = ⨆ p, ⨆ (_ : RelSeries.head p = a), ↑p.length

Alternative definition of coheight, with the supremum only ranging over those series that begin at a.

theorem Order.coheight_le_iff' E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ∞},
  Order.coheight a ≤ n ↔ ∀ ⦃p : LTSeries α⦄, RelSeries.head p = a → ↑p.length ≤ n

Variant of coheight_le_iff ranging only over those series that begin exactly on a.

theorem Order.coheight_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ∞},
  (∀ (p : LTSeries α), RelSeries.head p = a → ↑p.length ≤ n) → Order.coheight a ≤ n

theorem Order.length_le_height E1 #

∀ {α : Type u_1} [inst : Preorder α] {p : LTSeries α} {x : α}, RelSeries.last p ≤ x → ↑p.length ≤ Order.height x

theorem Order.length_le_coheight E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {p : LTSeries α}, x ≤ RelSeries.head p → ↑p.length ≤ Order.coheight x

theorem Order.length_le_height_last E1 #

∀ {α : Type u_1} [inst : Preorder α] {p : LTSeries α}, ↑p.length ≤ Order.height (RelSeries.last p)

The height of the last element in a series is larger or equal to the length of the series.

theorem Order.length_le_coheight_head E1 #

∀ {α : Type u_1} [inst : Preorder α] {p : LTSeries α}, ↑p.length ≤ Order.coheight (RelSeries.head p)

The coheight of the first element in a series is larger or equal to the length of the series.

theorem Order.index_le_height E1 #

∀ {α : Type u_1} [inst : Preorder α] (p : LTSeries α) (i : Fin (p.length + 1)), ↑↑i ≤ Order.height (p.toFun i)

The height of an element in a series is larger or equal to its index in the series.

theorem Order.rev_index_le_coheight E1 #

∀ {α : Type u_1} [inst : Preorder α] (p : LTSeries α) (i : Fin (p.length + 1)), ↑↑i.rev ≤ Order.coheight (p.toFun i)

The coheight of an element in a series is larger or equal to its reverse index in the series.

theorem Order.height_eq_index_of_length_eq_height_last E1 #

∀ {α : Type u_1} [inst : Preorder α] {p : LTSeries α},
  ↑p.length = Order.height (RelSeries.last p) → ∀ (i : Fin (p.length + 1)), Order.height (p.toFun i) = ↑↑i

In a maximally long series, i.e one as long as the height of the last element, the height of each element is its index in the series.

theorem Order.coheight_eq_index_of_length_eq_head_coheight E1 #

∀ {α : Type u_1} [inst : Preorder α] {p : LTSeries α},
  ↑p.length = Order.coheight (RelSeries.head p) → ∀ (i : Fin (p.length + 1)), Order.coheight (p.toFun i) = ↑↑i.rev

In a maximally long series, i.e one as long as the coheight of the first element, the coheight of each element is its reverse index in the series.

theorem Order.height_mono E3 #

∀ {α : Type u_1} [inst : Preorder α], Monotone Order.height

theorem Order.coheight_anti E3 #

∀ {α : Type u_1} [inst : Preorder α], Antitone Order.coheight

theorem Order.height_strictMono E3 #

∀ {α : Type u_1} [inst : Preorder α] {x y : α}, x < y → Order.height x < ⊤ → Order.height x < Order.height y

For elements of finite height, height is strictly monotone.

theorem Order.height_add_one_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → Order.height a + 1 ≤ Order.height b

theorem Order.coheight_strictAnti E3 #

∀ {α : Type u_1} [inst : Preorder α] {x y : α}, y < x → Order.coheight x < ⊤ → Order.coheight x < Order.coheight y

For elements of finite height, coheight is strictly antitone.

theorem Order.coheight_add_one_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → Order.coheight a + 1 ≤ Order.coheight b

theorem Order.height_le_height_apply_of_strictMono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β),
  StrictMono f → ∀ (x : α), Order.height x ≤ Order.height (f x)

theorem Order.coheight_le_coheight_apply_of_strictMono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β),
  StrictMono f → ∀ (x : α), Order.coheight x ≤ Order.coheight (f x)

theorem Order.coheight_eq_of_strictMono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β),
  StrictMono f →
    (∀ (a : α) (b : β), f a < b → ∃ a', a < a' ∧ f a' = b) → ∀ (a : α), Order.coheight a = Order.coheight (f a)

theorem Order.height_eq_of_strictMono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β),
  StrictMono f → (∀ (a : α), ∀ b < f a, ∃ a' < a, f a' = b) → ∀ (a : α), Order.height a = Order.height (f a)

theorem Order.height_orderIso E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β) (x : α),
  Order.height (f x) = Order.height x

theorem Order.coheight_orderIso E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β) (x : α),
  Order.coheight (f x) = Order.coheight x

theorem Order.exists_series_of_le_height E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) {n : ℕ}, ↑n ≤ Order.height a → ∃ p, RelSeries.last p = a ∧ p.length = n

There exists a series ending in an element for any length up to the element’s height.

theorem Order.exists_series_of_le_coheight E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) {n : ℕ}, ↑n ≤ Order.coheight a → ∃ p, RelSeries.head p = a ∧ p.length = n

theorem Order.exists_series_of_height_eq_coe E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) {n : ℕ}, Order.height a = ↑n → ∃ p, RelSeries.last p = a ∧ p.length = n

For an element of finite height there exists a series ending in that element of that height.

theorem Order.exists_series_of_coheight_eq_coe E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) {n : ℕ}, Order.coheight a = ↑n → ∃ p, RelSeries.head p = a ∧ p.length = n

theorem Order.height_eq_iSup_lt_height E3 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.height x = ⨆ y, ⨆ (_ : y < x), Order.height y + 1

Another characterization of height, based on the supremum of the heights of elements below.

theorem Order.coheight_eq_iSup_gt_coheight E1 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.coheight x = ⨆ y, ⨆ (_ : y > x), Order.coheight y + 1

Another characterization of coheight, based on the supremum of the coheights of elements above.

theorem Order.height_le_coe_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ}, Order.height x ≤ ↑n ↔ ∀ y < x, Order.height y < ↑n

theorem Order.coheight_le_coe_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ}, Order.coheight x ≤ ↑n ↔ ∀ y > x, Order.coheight y < ↑n

theorem Order.height_eq_top_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, Order.height x = ⊤ ↔ ∀ (n : ℕ), ∃ p, RelSeries.last p = x ∧ p.length = n

The height of an element is infinite iff there exist series of arbitrary length ending in that element.

theorem Order.coheight_eq_top_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, Order.coheight x = ⊤ ↔ ∀ (n : ℕ), ∃ p, RelSeries.head p = x ∧ p.length = n

The coheight of an element is infinite iff there exist series of arbitrary length ending in that element.

theorem Order.height_eq_zero E3 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, Order.height x = 0 ↔ IsMin x

The elements of height zero are the minimal elements.

theorem Order.IsMin.height_eq_zero E3 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, IsMin x → Order.height x = 0

Alias of the reverse direction of Order.height_eq_zero.


The elements of height zero are the minimal elements.

theorem Order.coheight_eq_zero E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, Order.coheight x = 0 ↔ IsMax x

The elements of coheight zero are the maximal elements.

theorem Order.IsMax.coheight_eq_zero E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, IsMax x → Order.coheight x = 0

Alias of the reverse direction of Order.coheight_eq_zero.


The elements of coheight zero are the maximal elements.

theorem Order.height_ne_zero E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, Order.height x ≠ 0 ↔ ¬IsMin x

theorem Order.height_pos E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, 0 < Order.height x ↔ ¬IsMin x

theorem Order.coheight_ne_zero E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, Order.coheight x ≠ 0 ↔ ¬IsMax x

theorem Order.coheight_pos E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, 0 < Order.coheight x ↔ ¬IsMax x

theorem Order.height_bot E0 #

∀ (α : Type u_3) [inst : Preorder α] [inst_1 : OrderBot α], Order.height ⊥ = 0

theorem Order.coheight_top E0 #

∀ (α : Type u_3) [inst : Preorder α] [inst_1 : OrderTop α], Order.coheight ⊤ = 0

theorem Order.height_pos_of_bot_lt E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} [inst_1 : OrderBot α], ⊥ < x → 0 < Order.height x

theorem Order.coheight_pos_of_lt_top E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} [inst_1 : OrderTop α], x < ⊤ → 0 < Order.coheight x

theorem Order.coe_lt_height_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ},
  Order.height x < ⊤ → (↑n < Order.height x ↔ ∃ y < x, Order.height y = ↑n)

theorem Order.coe_lt_coheight_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ},
  Order.coheight x < ⊤ → (↑n < Order.coheight x ↔ ∃ y > x, Order.coheight y = ↑n)

theorem Order.height_eq_coe_add_one_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ},
  Order.height x = ↑n + 1 ↔ Order.height x < ⊤ ∧ (∃ y < x, Order.height y = ↑n) ∧ ∀ y < x, Order.height y ≤ ↑n

theorem Order.coheight_eq_coe_add_one_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ},
  Order.coheight x = ↑n + 1 ↔ Order.coheight x < ⊤ ∧ (∃ y > x, Order.coheight y = ↑n) ∧ ∀ y > x, Order.coheight y ≤ ↑n

theorem Order.height_eq_coe_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ},
  Order.height x = ↑n ↔ Order.height x < ⊤ ∧ (n = 0 ∨ ∃ y < x, Order.height y = ↑n - 1) ∧ ∀ y < x, Order.height y < ↑n

theorem Order.coheight_eq_coe_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α} {n : ℕ},
  Order.coheight x = ↑n ↔
    Order.coheight x < ⊤ ∧ (n = 0 ∨ ∃ y > x, Order.coheight y = ↑n - 1) ∧ ∀ y > x, Order.coheight y < ↑n

theorem Order.height_eq_coe_iff_minimal_le_height E3 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ}, Order.height a = ↑n ↔ Minimal (fun y ↦ ↑n ≤ Order.height y) a

The elements of finite height n are the minimal elements among those of height ≥ n.

theorem Order.coheight_eq_coe_iff_maximal_le_coheight E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α} {n : ℕ}, Order.coheight a = ↑n ↔ Maximal (fun y ↦ ↑n ≤ Order.coheight y) a

The elements of finite coheight n are the maximal elements among those of coheight ≥ n.

theorem Order.one_lt_height_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α}, 1 < Order.height x ↔ ∃ y, ∃ z < y, y < x

theorem Order.LTSeries.length_le_krullDim E1 #

∀ {α : Type u_1} [inst : Preorder α] (p : LTSeries α), ↑p.length ≤ Order.krullDim α

theorem Order.krullDim_eq_bot_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α = ⊥ ↔ IsEmpty α

theorem Order.krullDim_nonneg_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], 0 ≤ Order.krullDim α ↔ Nonempty α

theorem Order.krullDim_eq_bot E1 #

∀ {α : Type u_1} [inst : Preorder α] [IsEmpty α], Order.krullDim α = ⊥

theorem Order.krullDim_nonneg E1 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], 0 ≤ Order.krullDim α

theorem Order.krullDim_ne_bot_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α ≠ ⊥ ↔ Nonempty α

theorem Order.bot_lt_krullDim_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], ⊥ < Order.krullDim α ↔ Nonempty α

theorem Order.bot_lt_krullDim E1 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], ⊥ < Order.krullDim α

theorem Order.krullDim_nonpos_iff_forall_isMax E1 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α ≤ 0 ↔ ∀ (x : α), IsMax x

theorem Order.krullDim_nonpos_iff_forall_isMin E1 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α ≤ 0 ↔ ∀ (x : α), IsMin x

theorem Order.krullDim_le_one_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α ≤ 1 ↔ ∀ (x : α), IsMin x ∨ IsMax x

theorem Order.krullDim_pos_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], 0 < Order.krullDim α ↔ ∃ x y, x < y

theorem Order.one_le_krullDim_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], 1 ≤ Order.krullDim α ↔ ∃ x y, x < y

theorem Order.krullDim_nonpos_of_subsingleton E1 #

∀ {α : Type u_1} [inst : Preorder α] [Subsingleton α], Order.krullDim α ≤ 0

theorem Order.krullDim_eq_zero E1 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α] [Subsingleton α], Order.krullDim α = 0

theorem Order.krullDim_eq_zero_of_unique E1 #

∀ {α : Type u_1} [inst : Preorder α] [Unique α], Order.krullDim α = 0

theorem Order.krullDim_le_one_iff_forall_isMax E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [inst_1 : OrderBot α], Order.krullDim α ≤ 1 ↔ ∀ (x : α), x ≠ ⊥ → IsMax x

theorem Order.krullDim_eq_zero_iff_of_orderBot E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [OrderBot α], Order.krullDim α = 0 ↔ Subsingleton α

theorem Order.krullDim_pos_iff_of_orderBot E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [OrderBot α], 0 < Order.krullDim α ↔ Nontrivial α

theorem Order.krullDim_le_one_iff_forall_isMin E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [inst_1 : OrderTop α], Order.krullDim α ≤ 1 ↔ ∀ (x : α), x ≠ ⊤ → IsMin x

theorem Order.krullDim_eq_zero_iff_of_orderTop E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [OrderTop α], Order.krullDim α = 0 ↔ Subsingleton α

theorem Order.krullDim_pos_iff_of_orderTop E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [OrderTop α], 0 < Order.krullDim α ↔ Nontrivial α

theorem Order.krullDim_le_one_iff_of_boundedOrder E1 #

∀ {α : Type u_3} [inst : PartialOrder α] [inst_1 : BoundedOrder α], Order.krullDim α ≤ 1 ↔ ∀ (x : α), x = ⊥ ∨ x = ⊤

theorem Order.krullDim_eq_length_of_finiteDimensionalOrder E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : FiniteDimensionalOrder α],
  Order.krullDim α = ↑(LTSeries.longestOf α).length

theorem Order.krullDim_eq_top E1 #

∀ {α : Type u_1} [inst : Preorder α] [InfiniteDimensionalOrder α], Order.krullDim α = ⊤

theorem Order.krullDim_eq_top_iff E0 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α = ⊤ ↔ InfiniteDimensionalOrder α

theorem Order.le_krullDim_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {n : ℕ}, ↑n ≤ Order.krullDim α ↔ ∃ l, l.length = n

theorem Order.krullDim_eq_iSup_length E1 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Order.krullDim α = ↑(⨆ p, ↑p.length)

A definition of krullDim for nonempty α that avoids WithBot

theorem Order.krullDim_lt_coe_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {n : ℕ}, Order.krullDim α < ↑n ↔ ∀ (l : LTSeries α), l.length < n

theorem Order.krullDim_le_of_strictMono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β),
  StrictMono f → Order.krullDim α ≤ Order.krullDim β

theorem Order.krullDim_le_of_strictComono_and_surj E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α → β),
  (∀ ⦃a b : α⦄, f a < f b → a < b) → Function.Surjective f → Order.krullDim β ≤ Order.krullDim α

theorem Order.krullDim_eq_of_orderIso E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α ≃o β),
  Order.krullDim α = Order.krullDim β

theorem Order.krullDim_orderDual E3 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim αᵒᵈ = Order.krullDim α

theorem Order.height_le_krullDim E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), ↑(Order.height a) ≤ Order.krullDim α

theorem Order.coheight_le_krullDim E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), ↑(Order.coheight a) ≤ Order.krullDim α

theorem LTSeries.height_last_longestOf E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : FiniteDimensionalOrder α],
  ↑(Order.height (RelSeries.last (LTSeries.longestOf α))) = Order.krullDim α

theorem Order.krullDim_eq_iSup_height_of_nonempty E1 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Order.krullDim α = ↑(⨆ a, Order.height a)

The Krull dimension is the supremum of the elements' heights.

This version of the lemma assumes that α is nonempty. In this case, the coercion from ℕ∞ to WithBot ℕ∞ is on the outside of the right-hand side, which is usually more convenient.

If α were empty, then krullDim α = ⊥. See krullDim_eq_iSup_height for the more general version, with the coercion under the supremum.

theorem Order.krullDim_eq_iSup_coheight_of_nonempty E1 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Order.krullDim α = ↑(⨆ a, Order.coheight a)

The Krull dimension is the supremum of the elements' coheights.

This version of the lemma assumes that α is nonempty. In this case, the coercion from ℕ∞ to WithBot ℕ∞ is on the outside of the right-hand side, which is usually more convenient.

If α were empty, then krullDim α = ⊥. See krullDim_eq_iSup_coheight for the more general version, with the coercion under the supremum.

theorem Order.krullDim_eq_iSup_height_add_coheight_of_nonempty E3 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Order.krullDim α = ↑(⨆ a, Order.height a + Order.coheight a)

The Krull dimension is the supremum of the elements' height plus coheight.

theorem Order.krullDim_eq_iSup_height E3 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α = ⨆ a, ↑(Order.height a)

The Krull dimension is the supremum of the elements' heights.

If α is Nonempty, then krullDim_eq_iSup_height_of_nonempty, with the coercion from ℕ∞ to WithBot ℕ∞ outside the supremum, can be more convenient.

theorem Order.krullDim_eq_iSup_coheight E3 #

∀ {α : Type u_1} [inst : Preorder α], Order.krullDim α = ⨆ a, ↑(Order.coheight a)

The Krull dimension is the supremum of the elements' coheights.

If α is Nonempty, then krullDim_eq_iSup_coheight_of_nonempty, with the coercion from ℕ∞ to WithBot ℕ∞ outside the supremum, can be more convenient.

theorem Order.height_top_eq_krullDim E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α], ↑(Order.height ⊤) = Order.krullDim α

theorem Order.coheight_bot_eq_krullDim E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α], ↑(Order.coheight ⊥) = Order.krullDim α

theorem Order.height_eq_krullDim_Iic E1 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), ↑(Order.height x) = Order.krullDim ↑(Set.Iic x)

theorem Order.coheight_eq_krullDim_Ici E1 #

∀ {α : Type u_3} [inst : Preorder α] (x : α), ↑(Order.coheight x) = Order.krullDim ↑(Set.Ici x)

theorem Order.finiteDimensionalOrder_iff_krullDim_ne_bot_and_top E1 #

∀ {α : Type u_1} [inst : Preorder α], FiniteDimensionalOrder α ↔ Order.krullDim α ≠ ⊥ ∧ Order.krullDim α ≠ ⊤

theorem Order.krullDim_ne_bot_of_finiteDimensionalOrder E1 #

∀ {α : Type u_1} [inst : Preorder α] [FiniteDimensionalOrder α], Order.krullDim α ≠ ⊥

theorem Order.krullDim_ne_top_of_finiteDimensionalOrder E1 #

∀ {α : Type u_1} [inst : Preorder α] [FiniteDimensionalOrder α], Order.krullDim α ≠ ⊤

theorem Order.coheight_lt_top E1 #

∀ {α : Type u_1} [inst : Preorder α] [FiniteDimensionalOrder α] (x : α), Order.coheight x < ⊤

class Order.KrullDimLE E1 #

ℕ → (α : Type u_1) → [Preorder α] → Prop

Typeclass for orders with krull dimension at most n.

theorem Order.krullDimLE_iff E0 #

∀ (n : ℕ) (α : Type u_1) [inst : Preorder α], Order.KrullDimLE n α ↔ Order.krullDim α ≤ ↑n

ctor Order.KrullDimLE.mk E0 #

∀ {n : ℕ} {α : Type u_1} [inst : Preorder α], Order.krullDim α ≤ ↑n → Order.KrullDimLE n α

theorem Order.KrullDimLE.krullDim_le E1 #

∀ {n : ℕ} {α : Type u_1} {inst : Preorder α} [self : Order.KrullDimLE n α], Order.krullDim α ≤ ↑n

theorem Order.KrullDimLE.mono E1 #

∀ {n m : ℕ}, n ≤ m → ∀ (α : Type u_1) [inst : Preorder α] [Order.KrullDimLE n α], Order.KrullDimLE m α

instance Order.instKrullDimLEOfNatNatOfSubsingleton E0 #

∀ {α : Type u_1} [inst : Preorder α] [Subsingleton α], Order.KrullDimLE 0 α

theorem Order.krullDimLE_orderDual_iff E0 #

∀ {n : ℕ} {α : Type u_1} [inst : Preorder α], Order.KrullDimLE n αᵒᵈ ↔ Order.KrullDimLE n α

instance Order.instKrullDimLEOrderDual E0 #

∀ {n : ℕ} {α : Type u_1} [inst : Preorder α] [Order.KrullDimLE n α], Order.KrullDimLE n αᵒᵈ

theorem Order.krullDimLE_iff_le_coheight_imp_isMin E1 #

∀ {X : Type u_1} [inst : Preorder X] {n : ℕ}, Order.KrullDimLE n X ↔ ∀ (x : X), ↑n ≤ Order.coheight x → IsMin x

theorem Order.krullDimLE_iff_le_height_imp_isMax E1 #

∀ {X : Type u_1} [inst : Preorder X] {n : ℕ}, Order.KrullDimLE n X ↔ ∀ (x : X), ↑n ≤ Order.height x → IsMax x

theorem Order.isMin_of_le_coheight_of_krullDimLE E1 #

∀ {X : Type u_1} [inst : Preorder X] {n : ℕ} [Order.KrullDimLE n X] {x : X}, ↑n ≤ Order.coheight x → IsMin x

theorem Order.isMax_of_le_height_of_krullDimLE E1 #

∀ {X : Type u_1} [inst : Preorder X] {n : ℕ} [Order.KrullDimLE n X] {x : X}, ↑n ≤ Order.height x → IsMax x

theorem Order.krullDim_eq_one_iff_of_boundedOrder E1 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α], Order.krullDim α = 1 ↔ IsSimpleOrder α

theorem Order.krullDim_of_isSimpleOrder E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α] [IsSimpleOrder α], Order.krullDim α = 1

theorem Order.height_nat E0 #

∀ (n : ℕ), Order.height n = ↑n

theorem Order.coheight_of_noMaxOrder E0 #

∀ {α : Type u_1} [inst : Preorder α] [NoMaxOrder α] (a : α), Order.coheight a = ⊤

theorem Order.height_of_noMinOrder E0 #

∀ {α : Type u_1} [inst : Preorder α] [NoMinOrder α] (a : α), Order.height a = ⊤

theorem Order.krullDim_of_noMaxOrder E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α] [NoMaxOrder α], Order.krullDim α = ⊤

theorem Order.krullDim_of_noMinOrder E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α] [NoMinOrder α], Order.krullDim α = ⊤

theorem Order.coheight_nat E1 #

∀ (n : ℕ), Order.coheight n = ⊤

theorem Order.krullDim_nat E1 #

Order.krullDim ℕ = ⊤

theorem Order.height_int E1 #

∀ (n : ℤ), Order.height n = ⊤

theorem Order.coheight_int E1 #

∀ (n : ℤ), Order.coheight n = ⊤

theorem Order.krullDim_int E1 #

Order.krullDim ℤ = ⊤

theorem Order.height_coe_withBot E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.height ↑x = Order.height x + 1

theorem Order.coheight_coe_withTop E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.coheight ↑x = Order.coheight x + 1

theorem Order.height_coe_withTop E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.height ↑x = Order.height x

theorem Order.coheight_zero_of_coheight_one_of_strictMono E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] (f : WithTop α → β),
  StrictMono f → ∀ (x : α), Order.coheight (f ↑x) = 1 → Order.coheight x = 0

For preorders α and β, if there is a strictly monotone function f : WithTop α → β, then if f x has coheight 1, then x has coheight 0.

theorem Order.coheight_coe_withBot E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : α), Order.coheight ↑x = Order.coheight x

theorem Order.krullDim_WithTop E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Order.krullDim (WithTop α) = Order.krullDim α + 1

theorem Order.krullDim_withBot E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Order.krullDim (WithBot α) = Order.krullDim α + 1

theorem Order.krullDim_enat E0 #

Order.krullDim ℕ∞ = ⊤

theorem Order.height_enat E0 #

∀ (n : ℕ∞), Order.height n = n

theorem Order.coheight_coe_enat E0 #

∀ (n : ℕ), Order.coheight ↑n = ⊤

theorem Order.height_le_of_krullDim_preimage_le E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : PartialOrder β] {m : ℕ} (f : α →o β),
  (∀ (x : β), Order.krullDim ↑(⇑f ⁻¹' {x}) ≤ ↑m) → ∀ (x : α), Order.height x ≤ (↑m + 1) * Order.height (f x) + ↑m

theorem Order.coheight_le_of_krullDim_preimage_le E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : PartialOrder β] {m : ℕ} (f : α →o β),
  (∀ (x : β), Order.krullDim ↑(⇑f ⁻¹' {x}) ≤ ↑m) → ∀ (x : α), Order.coheight x ≤ (↑m + 1) * Order.coheight (f x) + ↑m

theorem Order.krullDim_le_of_krullDim_preimage_le E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : PartialOrder β] {m : ℕ} (f : α →o β),
  (∀ (x : β), Order.krullDim ↑(⇑f ⁻¹' {x}) ≤ ↑m) → Order.krullDim α ≤ (↑m + 1) * Order.krullDim β + ↑m

theorem Order.krullDim_le_of_krullDim_preimage_le' E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : PartialOrder β] {m : ℕ} (f : α → β),
  Monotone f → (∀ (x : β), Order.krullDim ↑(f ⁻¹' {x}) ≤ ↑m) → Order.krullDim α ≤ (↑m + 1) * Order.krullDim β + ↑m

Another version when the OrderHom is unbundled

theorem Order.krullDim_le_of_orderEmbedding E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : PartialOrder β] (e : α ↪o β),
  Order.krullDim α ≤ Order.krullDim β