Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(topology/algebra): reorder imports (#12089)
* move `mul_opposite.topological_space` and `units.topological_space` to a new file; * import `mul_action` in `monoid`, not vice versa. With this order of imports, we can reuse results about `has_continuous_smul` in lemmas about topological monoids. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
- Loading branch information
1 parent
77f264f
commit 33b4e73
Showing
5 changed files
with
72 additions
and
38 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
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,61 @@ | ||
/- | ||
Copyright (c) 2021 Nicolò Cavalleri. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Nicolò Cavalleri | ||
-/ | ||
import topology.homeomorph | ||
|
||
/-! | ||
# Topological space structure on the opposite monoid and on the units group | ||
In this file we define `topological_space` structure on `Mᵐᵒᵖ`, `Mᵃᵒᵖ`, `Mˣ`, and `add_units M`. | ||
This file does not import definitions of a topological monoid and/or a continuous multiplicative | ||
action, so we postpone the proofs of `has_continuous_mul Mᵐᵒᵖ` etc till we have these definitions. | ||
## Tags | ||
topological space, opposite monoid, units | ||
-/ | ||
|
||
variables {M X : Type*} | ||
|
||
namespace mul_opposite | ||
|
||
/-- Put the same topological space structure on the opposite monoid as on the original space. -/ | ||
@[to_additive] instance [topological_space M] : topological_space Mᵐᵒᵖ := | ||
topological_space.induced (unop : Mᵐᵒᵖ → M) ‹_› | ||
|
||
variables [topological_space M] | ||
|
||
@[continuity, to_additive] lemma continuous_unop : continuous (unop : Mᵐᵒᵖ → M) := | ||
continuous_induced_dom | ||
|
||
@[continuity, to_additive] lemma continuous_op : continuous (op : M → Mᵐᵒᵖ) := | ||
continuous_induced_rng continuous_id | ||
|
||
/-- `mul_opposite.op` as a homeomorphism. -/ | ||
@[to_additive "`add_opposite.op` as a homeomorphism."] | ||
def op_homeomorph : M ≃ₜ Mᵐᵒᵖ := | ||
{ to_equiv := op_equiv, | ||
continuous_to_fun := continuous_op, | ||
continuous_inv_fun := continuous_unop } | ||
|
||
end mul_opposite | ||
|
||
namespace units | ||
|
||
open mul_opposite | ||
|
||
variables [topological_space M] [monoid M] | ||
|
||
/-- The units of a monoid are equipped with a topology, via the embedding into `M × M`. -/ | ||
@[to_additive] instance : topological_space Mˣ := | ||
topological_space.induced (embed_product M) prod.topological_space | ||
|
||
@[to_additive] lemma continuous_embed_product : continuous (embed_product M) := | ||
continuous_induced_dom | ||
|
||
@[to_additive] lemma continuous_coe : continuous (coe : Mˣ → M) := | ||
(@continuous_embed_product M _ _).fst | ||
|
||
end units |
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