doc-next-gen

Mathlib.Topology.Algebra.Order.Archimedean

Module docstring

{"# Topology on archimedean groups and fields

In this file we prove the following theorems:

  • Rat.denseRange_cast: the coercion from โ„š to a linear ordered archimedean field has dense range;

  • AddSubgroup.dense_of_not_isolated_zero, AddSubgroup.dense_of_no_min: two sufficient conditions for a subgroup of an archimedean linear ordered additive commutative group to be dense;

  • AddSubgroup.dense_or_cyclic: an additive subgroup of an archimedean linear ordered additive commutative group G with order topology either is dense in G or is a cyclic subgroup. "}

Rat.denseRange_cast theorem
{๐•œ} [Field ๐•œ] [LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ] [TopologicalSpace ๐•œ] [OrderTopology ๐•œ] [Archimedean ๐•œ] : DenseRange ((โ†‘) : โ„š โ†’ ๐•œ)
Full source
/-- Rational numbers are dense in a linear ordered archimedean field. -/
theorem Rat.denseRange_cast {๐•œ} [Field ๐•œ] [LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
    [TopologicalSpace ๐•œ] [OrderTopology ๐•œ]
    [Archimedean ๐•œ] : DenseRange ((โ†‘) : โ„š โ†’ ๐•œ) :=
  dense_of_exists_between fun _ _ h => Set.exists_range_iff.2 <| exists_rat_btwn h
Density of Rationals in Archimedean Fields
Informal description
Let $\mathbb{K}$ be a linear ordered archimedean field equipped with the order topology. Then the canonical embedding of the rational numbers $\mathbb{Q}$ into $\mathbb{K}$ has dense range, i.e., the set $\{q \in \mathbb{Q} \mid q \text{ embedded in } \mathbb{K}\}$ is dense in $\mathbb{K}$.
Subgroup.dense_of_not_isolated_one theorem
(S : Subgroup G) (hS : โˆ€ ฮต > 1, โˆƒ g โˆˆ S, g โˆˆ Ioo 1 ฮต) : Dense (S : Set G)
Full source
/-- A subgroup of an archimedean linear ordered multiplicative commutative group with order
topology is dense provided that for all `ฮต > 1` there exists an element of the subgroup
that belongs to `(1, ฮต)`. -/
@[to_additive "An additive subgroup of an archimedean linear ordered additive commutative group with
order topology is dense provided that for all positive `ฮต` there exists a positive element of the
subgroup that is less than `ฮต`."]
theorem dense_of_not_isolated_one (S : Subgroup G) (hS : โˆ€ ฮต > 1, โˆƒ g โˆˆ S, g โˆˆ Ioo 1 ฮต) :
    Dense (S : Set G) := by
  cases subsingleton_or_nontrivial G
  ยท refine fun x => _root_.subset_closure ?_
    rw [Subsingleton.elim x 1]
    exact one_mem S
  refine dense_of_exists_between fun a b hlt => ?_
  rcases hS (b / a) (one_lt_div'.2 hlt) with โŸจg, hgS, hg0, hgโŸฉ
  rcases (existsUnique_add_zpow_mem_Ioc hg0 1 a).exists with โŸจm, hmโŸฉ
  rw [one_mul] at hm
  refine โŸจg ^ m, zpow_mem hgS _, hm.1, hm.2.trans_lt ?_โŸฉ
  rwa [lt_div_iff_mul_lt'] at hg
Density of Subgroup with Elements Arbitrarily Close to One
Informal description
Let $G$ be a linearly ordered commutative group with order topology, and let $S$ be a subgroup of $G$. If for every $\varepsilon > 1$ there exists an element $g \in S$ such that $1 < g < \varepsilon$, then $S$ is dense in $G$.
Subgroup.dense_of_no_min theorem
(S : Subgroup G) (hbot : S โ‰  โŠฅ) (H : ยฌโˆƒ a : G, IsLeast {g : G | g โˆˆ S โˆง 1 < g} a) : Dense (S : Set G)
Full source
/-- Let `S` be a nontrivial subgroup in an archimedean linear ordered multiplicative commutative
group `G` with order topology. If the set of elements of `S` that are greater than one
 does not have a minimal element, then `S` is dense `G`. -/
@[to_additive "Let `S` be a nontrivial additive subgroup in an archimedean linear ordered additive
commutative group `G` with order topology. If the set of positive elements of `S` does not have a
minimal element, then `S` is dense `G`."]
theorem dense_of_no_min (S : Subgroup G) (hbot : S โ‰  โŠฅ)
    (H : ยฌโˆƒ a : G, IsLeast { g : G | g โˆˆ S โˆง 1 < g } a) : Dense (S : Set G) := by
  refine S.dense_of_not_isolated_one fun ฮต ฮต1 => ?_
  contrapose! H
  exact exists_isLeast_one_lt hbot ฮต1 (disjoint_left.2 H)
Density of Subgroups Without Minimal Elements Above One in Archimedean Ordered Groups
Informal description
Let $G$ be a linearly ordered archimedean commutative group with order topology, and let $S$ be a nontrivial subgroup of $G$. If the set $\{g \in S \mid 1 < g\}$ does not have a minimal element, then $S$ is dense in $G$.
Subgroup.dense_or_cyclic theorem
(S : Subgroup G) : Dense (S : Set G) โˆจ โˆƒ a : G, S = closure { a }
Full source
/-- A subgroup of an archimedean linear ordered multiplicative commutative group `G` with order
topology either is dense in `G` or is a cyclic subgroup. -/
@[to_additive dense_or_cyclic
 "An additive subgroup of an archimedean linear ordered additive commutative group `G`
with order topology either is dense in `G` or is a cyclic subgroup."]
theorem dense_or_cyclic (S : Subgroup G) : DenseDense (S : Set G) โˆจ โˆƒ a : G, S = closure {a} := by
  refine (em _).imp (dense_of_not_isolated_one S) fun h => ?_
  push_neg at h
  rcases h with โŸจฮต, ฮต1, hฮตโŸฉ
  exact cyclic_of_isolated_one ฮต1 (disjoint_left.2 hฮต)
Density or Cyclicity of Subgroups in Ordered Commutative Groups
Informal description
Let $G$ be a linearly ordered commutative group with order topology, and let $S$ be a subgroup of $G$. Then either $S$ is dense in $G$, or there exists an element $a \in G$ such that $S$ is the cyclic subgroup generated by $a$.
Subgroup.dense_xor'_cyclic theorem
(s : Subgroup G) : Xor' (Dense (s : Set G)) (โˆƒ a, s = .zpowers a)
Full source
/-- In a nontrivial densely linear ordered archimedean topological multiplicative group,
a subgroup is either dense or is cyclic, but not both.

For a non-exclusive `Or` version with weaker assumptions,
see `Subgroup.dense_or_cyclic` above. -/
@[to_additive dense_xor'_cyclic
 "In a nontrivial densely linear ordered archimedean topological additive group,
a subgroup is either dense or is cyclic, but not both.

For a non-exclusive `Or` version with weaker assumptions, see `AddSubgroup.dense_or_cyclic` above."]
theorem dense_xor'_cyclic (s : Subgroup G) :
    Xor' (Dense (s : Set G)) (โˆƒ a, s = .zpowers a) := by
  if hd : Dense (s : Set G) then
    simp only [hd, xor_true]
    rintro โŸจa, rflโŸฉ
    exact not_denseRange_zpow hd
  else
    simp only [hd, xor_false, id, zpowers_eq_closure]
    exact s.dense_or_cyclic.resolve_left hd
Density or Cyclicity of Subgroups in Archimedean Ordered Groups (Exclusive Version)
Informal description
Let $G$ be a nontrivial densely linearly ordered archimedean topological commutative group. For any subgroup $S$ of $G$, exactly one of the following holds: 1. $S$ is dense in $G$, or 2. $S$ is a cyclic subgroup (i.e., there exists $a \in G$ such that $S = \{a^n \mid n \in \mathbb{Z}\}$).
Subgroup.dense_iff_ne_zpowers theorem
{s : Subgroup G} : Dense (s : Set G) โ†” โˆ€ a, s โ‰  .zpowers a
Full source
@[to_additive]
theorem dense_iff_ne_zpowers {s : Subgroup G} :
    DenseDense (s : Set G) โ†” โˆ€ a, s โ‰  .zpowers a := by
  simp [xor_iff_iff_not.1 s.dense_xor'_cyclic]
Density of Subgroup in Archimedean Ordered Group is Equivalent to Non-Cyclicity
Informal description
Let $G$ be a nontrivial densely linearly ordered archimedean topological commutative group. For any subgroup $S$ of $G$, the following are equivalent: 1. $S$ is dense in $G$. 2. For every element $a \in G$, the subgroup $S$ is not equal to the cyclic subgroup generated by $a$ (i.e., $S \neq \{a^n \mid n \in \mathbb{Z}\}$ for any $a \in G$).