The areas / V04. Order and lattices
Mathlib.Order.SuccPred.LinearLocallyFinite
41 declarations and 4 deprecated aliases. Mathlib docs · Source
Linear locally finite orders
We prove that a LinearOrder which is a LocallyFiniteOrder also verifies
SuccOrderPredOrderIsSuccArchimedeanIsPredArchimedeanCountable
Furthermore, we show that there is an OrderIso between such an order and a subset of ℤ.
Main definitions
toZ i0 i: in a linear order on which we can define predecessors and successors and which is succ-archimedean, we can assign a unique integertoZ i0 ito each elementi : ιwhile respecting the order, starting fromtoZ i0 i0 = 0.
Main results
Results about linear locally finite orders:
LinearLocallyFiniteOrder.SuccOrder: a linear locally finite order has a successor function.LinearLocallyFiniteOrder.PredOrder: a linear locally finite order has a predecessor function.LinearLocallyFiniteOrder.isSuccArchimedean: a linear locally finite order is succ-archimedean.LinearOrder.pred_archimedean_of_succ_archimedean: a succ-archimedean linear order is also pred-archimedean.countable_of_linear_succ_pred_arch: a succ-archimedean linear order is countable.
About toZ:
orderIsoRangeToZOfLinearSuccPredArch:toZdefines anOrderIsobetweenιand its range.orderIsoNatOfLinearSuccPredArch: if the order has a bot but no top,toZdefines anOrderIsobetweenιandℕ.orderIsoIntOfLinearSuccPredArch: if the order has neither bot nor top,toZdefines anOrderIsobetweenιandℤ.orderIsoRangeOfLinearSuccPredArch: if the order has both a bot and a top,toZgives anOrderIsobetweenιandFinset.range ((toZ ⊥ ⊤).toNat + 1).
theorem Nonempty.some.congr_simp E1 #
∀ {α : Sort u_3} (h : Nonempty α), h.some = h.some
theorem toZ.congr_simp E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
(i0 i0_1 : ι), i0 = i0_1 → ∀ (i i_1 : ι), i = i_1 → toZ i0 i = toZ i0_1 i_1
instance LinearOrder.isPredArchimedean_of_isSuccArchimedean E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : PredOrder ι] [IsSuccArchimedean ι],
IsPredArchimedean ι
instance LinearOrder.isSuccArchimedean_of_isPredArchimedean E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : PredOrder ι] [IsPredArchimedean ι],
IsSuccArchimedean ι
theorem LinearOrder.isSuccArchimedean_iff_isPredArchimedean E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : PredOrder ι],
IsSuccArchimedean ι ↔ IsPredArchimedean ι
In a linear SuccOrder that's also a PredOrder, IsSuccArchimedean and IsPredArchimedean
are equivalent.
def LinearLocallyFiniteOrder.succFn E1 #
{ι : Type u_1} → [LinearOrder ι] → ι → ι
Successor in a linear order. This defines a true successor only when i is isolated from above,
i.e. when i is not the greatest lower bound of (i, ∞).
theorem LinearLocallyFiniteOrder.succFn_spec E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] (i : ι), IsGLB (Set.Ioi i) (LinearLocallyFiniteOrder.succFn i)
theorem LinearLocallyFiniteOrder.le_succFn E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] (i : ι), i ≤ LinearLocallyFiniteOrder.succFn i
theorem LinearLocallyFiniteOrder.isGLB_Ioc_of_isGLB_Ioi E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] {i j k : ι}, i < j → IsGLB (Set.Ioi i) k → IsGLB (Set.Ioc i j) k
theorem LinearLocallyFiniteOrder.isMax_of_succFn_le E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [LocallyFiniteOrder ι] (i : ι), LinearLocallyFiniteOrder.succFn i ≤ i → IsMax i
theorem LinearLocallyFiniteOrder.succFn_le_of_lt E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] (i j : ι), i < j → LinearLocallyFiniteOrder.succFn i ≤ j
theorem LinearLocallyFiniteOrder.le_of_lt_succFn E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] (j i : ι), j < LinearLocallyFiniteOrder.succFn i → j ≤ i
def LinearLocallyFiniteOrder.succOrder E1 #
(ι : Type u_1) → [inst : LinearOrder ι] → [LocallyFiniteOrder ι] → SuccOrder ι
A locally finite order is a SuccOrder.
This is not an instance, because its succ field conflicts with computable SuccOrder structures
on ℕ and ℤ.
def LinearLocallyFiniteOrder.predOrder E1 #
(ι : Type u_1) → [inst : LinearOrder ι] → [LocallyFiniteOrder ι] → PredOrder ι
A locally finite order is a PredOrder.
This is not an instance, because its succ field conflicts with computable PredOrder structures
on ℕ and ℤ.
instance LinearLocallyFiniteOrder.instIsSuccArchimedeanOfLocallyFiniteOrder E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [LocallyFiniteOrder ι] [inst_2 : SuccOrder ι], IsSuccArchimedean ι
instance LinearLocallyFiniteOrder.instIsPredArchimedeanOfLocallyFiniteOrder E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [LocallyFiniteOrder ι] [inst_2 : PredOrder ι], IsPredArchimedean ι
def toZ E3 #
{ι : Type u_1} → [inst : LinearOrder ι] → [inst_1 : SuccOrder ι] → [IsSuccArchimedean ι] → [PredOrder ι] → ι → ι → ℤ
toZ numbers elements of ι according to their order, starting from i0. We prove in
orderIsoRangeToZOfLinearSuccPredArch that this defines an OrderIso between ι and
the range of toZ.
theorem toZ_of_ge E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i : ι} (hi : i0 ≤ i), toZ i0 i = ↑(Nat.find ⋯)
theorem toZ_of_lt E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i : ι} (hi : i < i0), toZ i0 i = -↑(Nat.find ⋯)
theorem toZ_of_eq E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι}, toZ i0 i0 = 0
theorem iterate_succ_toZ E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} (i : ι), i0 ≤ i → Order.succ^[(toZ i0 i).toNat] i0 = i
theorem iterate_pred_toZ E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι}, ∀ i < i0, Order.pred^[(-toZ i0 i).toNat] i0 = i
theorem toZ_nonneg E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i : ι}, i0 ≤ i → 0 ≤ toZ i0 i
theorem toZ_neg E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i : ι}, i < i0 → toZ i0 i < 0
theorem toZ_iterate_succ_le E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} (n : ℕ), toZ i0 (Order.succ^[n] i0) ≤ ↑n
theorem toZ_iterate_pred_ge E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} (n : ℕ), -↑n ≤ toZ i0 (Order.pred^[n] i0)
theorem toZ_iterate_succ_of_not_isMax E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} (n : ℕ), ¬IsMax (Order.succ^[n] i0) → toZ i0 (Order.succ^[n] i0) = ↑n
theorem toZ_iterate_pred_of_not_isMin E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} (n : ℕ), ¬IsMin (Order.pred^[n] i0) → toZ i0 (Order.pred^[n] i0) = -↑n
theorem toZ_strictMono E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι}, StrictMono (toZ i0)
theorem injective_toZ E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι}, Function.Injective (toZ i0)
theorem toZ_le_toZ E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i j : ι}, toZ i0 i ≤ toZ i0 j ↔ i ≤ j
theorem toZ_lt_toZ E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i j : ι}, toZ i0 i < toZ i0 j ↔ i < j
theorem toZ_inj E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 i j : ι}, toZ i0 i = toZ i0 j ↔ i = j
theorem toZ_iterate_succ E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} [NoMaxOrder ι] (n : ℕ), toZ i0 (Order.succ^[n] i0) = ↑n
theorem toZ_iterate_pred E1 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [inst_2 : IsSuccArchimedean ι] [inst_3 : PredOrder ι]
{i0 : ι} [NoMinOrder ι] (n : ℕ), toZ i0 (Order.pred^[n] i0) = -↑n
def orderIsoRangeToZOfLinearSuccPredArch E3 #
{ι : Type u_1} →
[inst : LinearOrder ι] →
[inst_1 : SuccOrder ι] →
[inst_2 : PredOrder ι] → [inst_3 : IsSuccArchimedean ι] → [hι : Nonempty ι] → ι ≃o ↑(Set.range (toZ hι.some))
toZ defines an OrderIso between ι and its range.
instance countable_of_linear_succ_pred_arch E3 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [inst_1 : SuccOrder ι] [PredOrder ι] [IsSuccArchimedean ι], Countable ι
def orderIsoIntOfLinearSuccPredArch E3 #
{ι : Type u_1} →
[inst : LinearOrder ι] →
[inst_1 : SuccOrder ι] →
[PredOrder ι] → [IsSuccArchimedean ι] → [NoMaxOrder ι] → [NoMinOrder ι] → [hι : Nonempty ι] → ι ≃o ℤ
If the order has neither bot nor top, toZ defines an OrderIso between ι and ℤ.
def orderIsoNatOfLinearSuccPredArch E3 #
{ι : Type u_1} →
[inst : LinearOrder ι] →
[inst_1 : SuccOrder ι] → [PredOrder ι] → [IsSuccArchimedean ι] → [NoMaxOrder ι] → [OrderBot ι] → ι ≃o ℕ
If the order has a bot but no top, toZ defines an OrderIso between ι and ℕ.
def orderIsoRangeOfLinearSuccPredArch E3 #
{ι : Type u_1} →
[inst : LinearOrder ι] →
[inst_1 : SuccOrder ι] →
[inst_2 : PredOrder ι] →
[inst_3 : IsSuccArchimedean ι] →
[inst_4 : OrderBot ι] → [inst_5 : OrderTop ι] → ι ≃o ↥(Finset.range ((toZ ⊥ ⊤).toNat + 1))
If the order has both a bot and a top, toZ gives an OrderIso between ι and
Finset.range n for some n.
instance Countable.of_linearOrder_locallyFiniteOrder E0 #
∀ {ι : Type u_1} [inst : LinearOrder ι] [LocallyFiniteOrder ι], Countable ι
Deprecated aliases
| Name | New name | Since |
|---|---|---|
le_of_toZ_le | toZ_le_toZ | 2026-05-06 |
toZ_le_iff | toZ_le_toZ | 2026-05-07 |
toZ_lt_iff | toZ_lt_toZ | 2026-05-07 |
toZ_mono | toZ_le_toZ | 2026-05-06 |