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

13 declarations. Mathlib docs · Source

The back and forth method and countable dense linear orders

Results

Suppose α β are linear orders, with α countable and β dense, nontrivial. Then there is an order embedding α ↪ β. If in addition α is dense, nonempty, without endpoints and β is countable, without endpoints, then we can upgrade this to an order isomorphism α ≃ β.

The idea for both results is to consider "partial isomorphisms", which identify a finite subset of α with a finite subset of β, and prove that for any such partial isomorphism f and a : α, we can extend f to include a in its domain.

References

https://en.wikipedia.org/wiki/Back-and-forth_method

Tags

back and forth, dense, countable, order

theorem Order.exists_between_finsets E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [DenselyOrdered α] [NoMinOrder α] [NoMaxOrder α] [nonem : Nonempty α]
  (lo hi : Finset α), (∀ x ∈ lo, ∀ y ∈ hi, x < y) → ∃ m, (∀ x ∈ lo, x < m) ∧ ∀ y ∈ hi, m < y

Suppose α is a nonempty dense linear order without endpoints, and suppose lo, hi, are finite subsets with all of lo strictly before hi. Then there is an element of α strictly between lo and hi.

theorem Order.exists_orderEmbedding_insert E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] [DenselyOrdered β] [NoMinOrder β]
  [NoMaxOrder β] [nonem : Nonempty β] (S : Finset α) (f : ↥S ↪o β) (a : α), ∃ g, ⇑g ∘ Set.inclusion ⋯ = ⇑f

def Order.PartialIso E1 #

(α : Type u_1) → (β : Type u_2) → [LinearOrder α] → [LinearOrder β] → Type (max u_1 u_2)

The type of partial order isomorphisms between α and β defined on finite subsets. A partial order isomorphism is encoded as a finite subset of α × β, consisting of pairs which should be identified.

instance Order.instPreorderPartialIso E0 #

(α : Type u_1) → (β : Type u_2) → [inst : LinearOrder α] → [inst_1 : LinearOrder β] → Preorder (Order.PartialIso α β)

instance Order.PartialIso.instInhabited E0 #

(α : Type u_1) → (β : Type u_2) → [inst : LinearOrder α] → [inst_1 : LinearOrder β] → Inhabited (Order.PartialIso α β)

theorem Order.PartialIso.exists_across E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] [DenselyOrdered β] [NoMinOrder β]
  [NoMaxOrder β] [Nonempty β] (f : Order.PartialIso α β) (a : α), ∃ b, ∀ p ∈ ↑f, cmp p.1 a = cmp p.2 b

For each a, we can find a b in the codomain, such that a's relation to the domain of f is b's relation to the image of f.

Thus, if a is not already in f, then we can extend f by sending a to b.

def Order.PartialIso.comm E1 #

{α : Type u_1} →
  {β : Type u_2} → [inst : LinearOrder α] → [inst_1 : LinearOrder β] → Order.PartialIso α β → Order.PartialIso β α

A partial isomorphism between α and β is also a partial isomorphism between β and α.

def Order.PartialIso.definedAtLeft E1 #

{α : Type u_1} →
  (β : Type u_2) →
    [inst : LinearOrder α] →
      [inst_1 : LinearOrder β] →
        [DenselyOrdered β] → [NoMinOrder β] → [NoMaxOrder β] → [Nonempty β] → α → Order.Cofinal (Order.PartialIso α β)

The set of partial isomorphisms defined at a : α, together with a proof that any partial isomorphism can be extended to one defined at a.

def Order.PartialIso.definedAtRight E1 #

(α : Type u_1) →
  {β : Type u_2} →
    [inst : LinearOrder α] →
      [inst_1 : LinearOrder β] →
        [DenselyOrdered α] → [NoMinOrder α] → [NoMaxOrder α] → [Nonempty α] → β → Order.Cofinal (Order.PartialIso α β)

The set of partial isomorphisms defined at b : β, together with a proof that any partial isomorphism can be extended to include b. We prove this by symmetry.

def Order.PartialIso.funOfIdeal E1 #

{α : Type u_1} →
  {β : Type u_2} →
    [inst : LinearOrder α] →
      [inst_1 : LinearOrder β] →
        [inst_2 : DenselyOrdered β] →
          [inst_3 : NoMinOrder β] →
            [inst_4 : NoMaxOrder β] →
              [inst_5 : Nonempty β] →
                (a : α) →
                  (I : Order.Ideal (Order.PartialIso α β)) →
                    (∃ f ∈ Order.PartialIso.definedAtLeft β a, f ∈ I) → { b // ∃ f ∈ I, (a, b) ∈ ↑f }

Given an ideal which intersects definedAtLeft β a, pick b : β such that some partial function in the ideal maps a to b.

def Order.PartialIso.invOfIdeal E1 #

{α : Type u_1} →
  {β : Type u_2} →
    [inst : LinearOrder α] →
      [inst_1 : LinearOrder β] →
        [inst_2 : DenselyOrdered α] →
          [inst_3 : NoMinOrder α] →
            [inst_4 : NoMaxOrder α] →
              [inst_5 : Nonempty α] →
                (b : β) →
                  (I : Order.Ideal (Order.PartialIso α β)) →
                    (∃ f ∈ Order.PartialIso.definedAtRight α b, f ∈ I) → { a // ∃ f ∈ I, (a, b) ∈ ↑f }

Given an ideal which intersects definedAtRight α b, pick a : α such that some partial function in the ideal maps a to b.

theorem Order.embedding_from_countable_to_dense E1 #

∀ (α : Type u_1) (β : Type u_2) [inst : LinearOrder α] [inst_1 : LinearOrder β] [Countable α] [DenselyOrdered β]
  [Nontrivial β], Nonempty (α ↪o β)

Any countable linear order embeds in any nontrivial dense linear order.

theorem Order.iso_of_countable_dense E3 #

∀ (α : Type u_1) (β : Type u_2) [inst : LinearOrder α] [inst_1 : LinearOrder β] [Countable α] [DenselyOrdered α]
  [NoMinOrder α] [NoMaxOrder α] [Nonempty α] [Countable β] [DenselyOrdered β] [NoMinOrder β] [NoMaxOrder β]
  [Nonempty β], Nonempty (α ≃o β)

Any two countable dense, nonempty linear orders without endpoints are order isomorphic. This is also known as Cantor's isomorphism theorem.