Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(topology/algebra/order):
coe : ℚ → 𝕜
has dense range (#14635)
* add `rat.dense_range_cast`, use it in `rat.dense_embedding_coe_real`; * rename `dense_iff_forall_lt_exists_mem` to `dense_iff_exists_between`; * add `dense_of_exists_between`, use it in `dense_iff_exists_between`.
- Loading branch information
Showing
4 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/- | ||
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Yury G. Kudryashov | ||
-/ | ||
import topology.algebra.order.basic | ||
import algebra.order.archimedean | ||
|
||
/-! | ||
# Rational numbers are dense in a linear ordered archimedean field | ||
In this file we prove that coercion from `ℚ` to a linear ordered archimedean field has dense range. | ||
This lemma is in a separate file because `topology.algebra.order.basic` does not import | ||
`algebra.order.archimedean`. | ||
-/ | ||
|
||
variables {𝕜 : Type*} [linear_ordered_field 𝕜] [topological_space 𝕜] [order_topology 𝕜] | ||
[archimedean 𝕜] | ||
|
||
/-- Rational numbers are dense in a linear ordered archimedean field. -/ | ||
lemma rat.dense_range_cast : dense_range (coe : ℚ → 𝕜) := | ||
dense_of_exists_between $ λ a b h, set.exists_range_iff.2 $ exists_rat_btwn h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters