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 / V31. Set theory

Mathlib.SetTheory.Ordinal.FixedPointApproximants

41 declarations. Mathlib docs · Source

Ordinal Approximants for the Fixed points on complete lattices

This file sets up the ordinal-indexed approximation theory of fixed points of a monotone function in a complete lattice [Cousot1979]. The proof follows loosely the one from [Echenique2005].

However, the proof given here is not constructive as we use the non-constructive axiomatization of ordinals from mathlib. It still allows an approximation scheme indexed over the ordinals.

Main definitions

  • OrdinalApprox.lfpApprox: The ordinal-indexed approximation of the least fixed point greater or equal than an initial value of a bundled monotone function.
  • OrdinalApprox.gfpApprox: The ordinal-indexed approximation of the greatest fixed point less or equal than an initial value of a bundled monotone function.

Main results

  • OrdinalApprox.lfp_mem_range_lfpApprox: The ordinal-indexed approximation of the least fixed point eventually reaches the least fixed point
  • OrdinalApprox.gfp_mem_range_gfpApprox: The ordinal-indexed approximation of the greatest fixed point eventually reaches the greatest fixed point

References

  • [F. Echenique, A short and constructive proof of Tarski’s fixed-point theorem][Echenique2005]
  • [P. Cousot & R. Cousot, Constructive Versions of Tarski's Fixed Point Theorems][Cousot1979]

Tags

fixed point, complete lattice, monotone function, ordinals, approximation

theorem Cardinal.not_injective_limitation_set E1 #

∀ {α : Type u} (g : Ordinal.{u} → α), ¬Set.InjOn g (Set.Iio (SuccOrder.succ (Cardinal.mk α)).ord)

def OrdinalApprox.lfpApprox E3 #

{α : Type u} → [inst : CompleteLattice α] → (α →o α) → α → Ordinal.{u} → α

The ordinal-indexed sequence approximating the least fixed point greater than an initial value x. It is defined in such a way that we have lfpApprox 0 x = x and lfpApprox a x = ⨆ b < a, f (lfpApprox b x).

theorem OrdinalApprox.lfpApprox_mono_right E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α}, Monotone (OrdinalApprox.lfpApprox f x)

theorem OrdinalApprox.lfpApprox_zero E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α}, OrdinalApprox.lfpApprox f x 0 = x

theorem OrdinalApprox.le_lfpApprox E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a : Ordinal.{u}}, x ≤ OrdinalApprox.lfpApprox f x a

theorem OrdinalApprox.apply_lfpApprox_le_lfpApprox_of_lt E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a b : Ordinal.{u}},
  a < b → f (OrdinalApprox.lfpApprox f x a) ≤ OrdinalApprox.lfpApprox f x b

theorem OrdinalApprox.lfpApprox_add_one E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  x ≤ f x → ∀ (a : Ordinal.{u}), OrdinalApprox.lfpApprox f x (a + 1) = f (OrdinalApprox.lfpApprox f x a)

theorem OrdinalApprox.lfpApprox_of_isSuccLimit E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a : Ordinal.{u}},
  Order.IsSuccLimit a → OrdinalApprox.lfpApprox f x a = ⨆ b, OrdinalApprox.lfpApprox f x ↑b

theorem OrdinalApprox.lfpApprox_mono_left E1 #

∀ {α : Type u} [inst : CompleteLattice α], Monotone OrdinalApprox.lfpApprox

theorem OrdinalApprox.lfpApprox_mono_mid E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α), Monotone (OrdinalApprox.lfpApprox f)

theorem OrdinalApprox.lfpApprox_eq_of_mem_fixedPoints E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a b : Ordinal.{u}},
  a ≤ b →
    OrdinalApprox.lfpApprox f x a ∈ Function.fixedPoints ⇑f →
      OrdinalApprox.lfpApprox f x b = OrdinalApprox.lfpApprox f x a

The approximations of the least fixed point stabilize at a fixed point of f

theorem OrdinalApprox.lfpApprox_eq_all_of_fixedPoint E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  x ≤ f x → ((∀ (o : Ordinal.{u}), OrdinalApprox.lfpApprox f x o = x) ↔ f x = x)

theorem OrdinalApprox.lfpApprox_mem_fixedPoints_of_eq E0 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a b c : Ordinal.{u}},
  x ≤ f x →
    a < b →
      a ≤ c →
        OrdinalApprox.lfpApprox f x a = OrdinalApprox.lfpApprox f x b →
          OrdinalApprox.lfpApprox f x c ∈ Function.fixedPoints ⇑f

If the sequence of ordinal-indexed approximations takes a value twice, then it actually stabilised at that value.

theorem OrdinalApprox.lfpApprox_eq_of_fixedPoint_or_zero E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  x ≤ f x → ∀ (o : Ordinal.{u}), OrdinalApprox.lfpApprox f x o = x ↔ f x = x ∨ o = 0

theorem OrdinalApprox.exists_lfpApprox_eq_lfpApprox E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) (x : α),
  ∃ a < (Order.succ (Cardinal.mk α)).ord,
    ∃ b < (Order.succ (Cardinal.mk α)).ord, a ≠ b ∧ OrdinalApprox.lfpApprox f x a = OrdinalApprox.lfpApprox f x b

There are distinct indices smaller than the successor of the domain's cardinality yielding the same value

theorem OrdinalApprox.lfpApprox_ord_mem_fixedPoint E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  x ≤ f x → OrdinalApprox.lfpApprox f x (Order.succ (Cardinal.mk α)).ord ∈ Function.fixedPoints ⇑f

The approximation at the index of the successor of the domain's cardinality is a fixed point

theorem OrdinalApprox.lfpApprox_le_of_mem_fixedPoints E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x a : α},
  a ∈ Function.fixedPoints ⇑f → x ≤ a → ∀ (i : Ordinal.{u}), OrdinalApprox.lfpApprox f x i ≤ a

Every value of the approximation is less or equal than every fixed point of f greater or equal than the initial value

theorem OrdinalApprox.lfpApprox_ord_eq_lfp E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α),
  OrdinalApprox.lfpApprox f ⊥ (Order.succ (Cardinal.mk α)).ord = OrderHom.lfp f

The approximation sequence converges at the successor of the domain's cardinality to the least fixed point if starting from ⊥

theorem OrdinalApprox.lfp_mem_range_lfpApprox E3 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α), OrderHom.lfp f ∈ Set.range (OrdinalApprox.lfpApprox f ⊥)

Some approximation of the least fixed point starting from ⊥ is the least fixed point.

theorem OrdinalApprox.iSup_lfpApprox_eq_of_mem_fixedPoints E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a : Ordinal.{u}},
  OrdinalApprox.lfpApprox f x a ∈ Function.fixedPoints ⇑f →
    ⨆ i, OrdinalApprox.lfpApprox f x i = OrdinalApprox.lfpApprox f x a

If lfpApprox f x a is a fixed point, then the supremum of the whole ordinal-indexed sequence equals the value at a.

theorem OrdinalApprox.nextFixed_eq_iSup_lfpApprox E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} (hx : x ≤ f x),
  ↑(f.nextFixed x hx) = ⨆ a, OrdinalApprox.lfpApprox f x a

The ordinal-indexed supremum of lfpApprox equals nextFixed: the least fixed point greater than or equal to x.

def OrdinalApprox.gfpApprox E3 #

{α : Type u} → [inst : CompleteLattice α] → (α →o α) → α → Ordinal.{u} → α

The ordinal-indexed sequence approximating the greatest fixed point greater than an initial value x. It is defined in such a way that we have gfpApprox 0 x = x and gfpApprox a x = ⨅ b < a, f (lfpApprox b x).

theorem OrdinalApprox.gfpApprox_zero E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α}, OrdinalApprox.gfpApprox f x 0 = x

theorem OrdinalApprox.gfpApprox_anti_right E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α}, Antitone (OrdinalApprox.gfpApprox f x)

theorem OrdinalApprox.gfpApprox_le E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a : Ordinal.{u}}, OrdinalApprox.gfpApprox f x a ≤ x

theorem OrdinalApprox.gfpApprox_add_one E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  f x ≤ x → ∀ (a : Ordinal.{u}), OrdinalApprox.gfpApprox f x (a + 1) = f (OrdinalApprox.gfpApprox f x a)

theorem OrdinalApprox.gfpApprox_le_apply_gfpApprox_of_lt E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a b : Ordinal.{u}},
  a < b → OrdinalApprox.gfpApprox f x b ≤ f (OrdinalApprox.gfpApprox f x a)

theorem OrdinalApprox.gfpApprox_of_isSuccLimit E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a : Ordinal.{u}},
  Order.IsSuccLimit a → OrdinalApprox.gfpApprox f x a = ⨅ b, OrdinalApprox.gfpApprox f x ↑b

theorem OrdinalApprox.gfpApprox_mono_left E1 #

∀ {α : Type u} [inst : CompleteLattice α], Monotone OrdinalApprox.gfpApprox

theorem OrdinalApprox.gfpApprox_mono_mid E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α), Monotone (OrdinalApprox.gfpApprox f)

theorem OrdinalApprox.gfpApprox_eq_of_mem_fixedPoints E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a b : Ordinal.{u}},
  a ≤ b →
    OrdinalApprox.gfpApprox f x a ∈ Function.fixedPoints ⇑f →
      OrdinalApprox.gfpApprox f x b = OrdinalApprox.gfpApprox f x a

The approximations of the greatest fixed point stabilize at a fixed point of f

theorem OrdinalApprox.gfpApprox_eq_all_of_fixedPoint E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  f x ≤ x → ((∀ (o : Ordinal.{u}), OrdinalApprox.gfpApprox f x o = x) ↔ f x = x)

theorem OrdinalApprox.gfpApprox_mem_fixedPoints_of_eq E0 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a b c : Ordinal.{u}},
  f x ≤ x →
    a < b →
      a ≤ c →
        OrdinalApprox.gfpApprox f x a = OrdinalApprox.gfpApprox f x b →
          OrdinalApprox.gfpApprox f x c ∈ Function.fixedPoints ⇑f

theorem OrdinalApprox.gfpApprox_eq_of_fixedPoint_or_zero E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  f x ≤ x → ∀ (o : Ordinal.{u}), OrdinalApprox.gfpApprox f x o = x ↔ f x = x ∨ o = 0

theorem OrdinalApprox.exists_gfpApprox_eq_gfpApprox E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  ∃ a < (Order.succ (Cardinal.mk α)).ord,
    ∃ b < (Order.succ (Cardinal.mk α)).ord, a ≠ b ∧ OrdinalApprox.gfpApprox f x a = OrdinalApprox.gfpApprox f x b

There are distinct indices smaller than the successor of the domain's cardinality yielding the same value

theorem OrdinalApprox.gfpApprox_ord_mem_fixedPoint E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α},
  f x ≤ x → OrdinalApprox.gfpApprox f x (Order.succ (Cardinal.mk α)).ord ∈ Function.fixedPoints ⇑f

The approximation at the index of the successor of the domain's cardinality is a fixed point

theorem OrdinalApprox.le_gfpApprox_of_mem_fixedPoints E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x a : α},
  a ∈ Function.fixedPoints ⇑f → a ≤ x → ∀ (i : Ordinal.{u}), a ≤ OrdinalApprox.gfpApprox f x i

Every value of the approximation is greater or equal than every fixed point of f less or equal than the initial value

theorem OrdinalApprox.gfpApprox_ord_eq_gfp E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α),
  OrdinalApprox.gfpApprox f ⊤ (Order.succ (Cardinal.mk α)).ord = OrderHom.gfp f

The approximation sequence converges at the successor of the domain's cardinality to the greatest fixed point if starting from ⊥

theorem OrdinalApprox.gfp_mem_range_gfpApprox E3 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α), OrderHom.gfp f ∈ Set.range (OrdinalApprox.gfpApprox f ⊤)

Some approximation of the least fixed point starting from ⊤ is the greatest fixed point.

theorem OrdinalApprox.iInf_gfpApprox_eq_of_mem_fixedPoints E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} {a : Ordinal.{u}},
  OrdinalApprox.gfpApprox f x a ∈ Function.fixedPoints ⇑f →
    ⨅ i, OrdinalApprox.gfpApprox f x i = OrdinalApprox.gfpApprox f x a

If gfpApprox f x a is a fixed point, then the infimum of the whole ordinal-indexed sequence equals the value at a.

theorem OrdinalApprox.prevFixed_eq_iInf_gfpApprox E1 #

∀ {α : Type u} [inst : CompleteLattice α] (f : α →o α) {x : α} (hx : f x ≤ x),
  ↑(f.prevFixed x hx) = ⨅ a, OrdinalApprox.gfpApprox f x a

The ordinal-indexed infimum of gfpApprox equals prevFixed: the greatest fixed point less than or equal to x.