-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*): removing unneeded imports (#9278)
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
b77aa3a
commit 6d86622
Showing
17 changed files
with
59 additions
and
51 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/- | ||
Copyright (c) 2021 Oliver Nash. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Oliver Nash | ||
-/ | ||
import topology.locally_constant.algebra | ||
import topology.continuous_function.basic | ||
|
||
/-! | ||
# The algebra morphism from locally constant functions to continuous functions. | ||
-/ | ||
|
||
namespace locally_constant | ||
|
||
variables {X Y : Type*} [topological_space X] [topological_space Y] (f : locally_constant X Y) | ||
|
||
/-- The inclusion of locally-constant functions into continuous functions as a multiplicative | ||
monoid hom. -/ | ||
@[to_additive "The inclusion of locally-constant functions into continuous functions as an | ||
additive monoid hom.", simps] | ||
def to_continuous_map_monoid_hom [monoid Y] [has_continuous_mul Y] : | ||
locally_constant X Y →* C(X, Y) := | ||
{ to_fun := coe, | ||
map_one' := by { ext, simp, }, | ||
map_mul' := λ x y, by { ext, simp, }, } | ||
|
||
/-- The inclusion of locally-constant functions into continuous functions as a linear map. -/ | ||
@[simps] def to_continuous_map_linear_map (R : Type*) [semiring R] [topological_space R] | ||
[add_comm_monoid Y] [module R Y] [has_continuous_add Y] [has_continuous_smul R Y] : | ||
locally_constant X Y →ₗ[R] C(X, Y) := | ||
{ to_fun := coe, | ||
map_add' := λ x y, by { ext, simp, }, | ||
map_smul' := λ x y, by { ext, simp, }, } | ||
|
||
/-- The inclusion of locally-constant functions into continuous functions as an algebra map. -/ | ||
@[simps] def to_continuous_map_alg_hom (R : Type*) [comm_semiring R] [topological_space R] | ||
[semiring Y] [algebra R Y] [topological_ring Y] [has_continuous_smul R Y] : | ||
locally_constant X Y →ₐ[R] C(X, Y) := | ||
{ to_fun := coe, | ||
map_one' := by { ext, simp, }, | ||
map_mul' := λ x y, by { ext, simp, }, | ||
map_zero' := by { ext, simp, }, | ||
map_add' := λ x y, by { ext, simp, }, | ||
commutes' := λ r, by { ext x, simp [algebra.smul_def], }, } | ||
|
||
end locally_constant |