-
Notifications
You must be signed in to change notification settings - Fork 1k
[Merged by Bors] - feat: add ContinuousSMul instances for ℚ≥0
#28474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
e912a79
f70ef66
162b1ab
94eb313
a05c783
efbc0b2
308ffc5
d47fa93
d0f9960
069f8bd
7fc7755
2b220a7
4dce365
5eab839
bbc7a20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ Copyright (c) 2017 Johannes Hölzl. All rights reserved. | |||||||||||||||||||
| Released under Apache 2.0 license as described in the file LICENSE. | ||||||||||||||||||||
| Authors: Johannes Hölzl, Mario Carneiro | ||||||||||||||||||||
| -/ | ||||||||||||||||||||
| import Mathlib.Algebra.Algebra.Rat | ||||||||||||||||||||
| import Mathlib.Data.NNRat.Order | ||||||||||||||||||||
| import Mathlib.Topology.Algebra.Order.Archimedean | ||||||||||||||||||||
| import Mathlib.Topology.Algebra.Ring.Real | ||||||||||||||||||||
|
|
@@ -123,4 +124,17 @@ instance : ContinuousSub ℚ≥0 := | |||||||||||||||||||
| instance : OrderTopology ℚ≥0 := orderTopology_of_ordConnected (t := Set.Ici 0) | ||||||||||||||||||||
| instance : HasContinuousInv₀ ℚ≥0 := inferInstance | ||||||||||||||||||||
|
|
||||||||||||||||||||
| instance : ContinuousSMul ℚ ℝ where | ||||||||||||||||||||
| continuous_smul := continuous_induced_dom.fst'.smul (M := ℝ) (X := ℝ) continuous_snd | ||||||||||||||||||||
astrainfinita marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| instance {R} [Ring R] [TopologicalSpace R] [Algebra ℚ R] [Algebra ℚ≥0 R] [ContinuousSMul ℚ R] : | ||||||||||||||||||||
|
||||||||||||||||||||
| ContinuousSMul ℚ≥0 R where | ||||||||||||||||||||
| continuous_smul := by | ||||||||||||||||||||
| convert continuous_induced_dom.fst'.smul (M := ℚ) (X := R) continuous_snd using 2 | ||||||||||||||||||||
| rw [← cast_smul_eq_nnqsmul ℚ] | ||||||||||||||||||||
| rfl | ||||||||||||||||||||
|
||||||||||||||||||||
| instance {R} [Ring R] [TopologicalSpace R] [Algebra ℚ R] [Algebra ℚ≥0 R] [ContinuousSMul ℚ R] : | |
| ContinuousSMul ℚ≥0 R where | |
| continuous_smul := by | |
| convert continuous_induced_dom.fst'.smul (M := ℚ) (X := R) continuous_snd using 2 | |
| rw [← cast_smul_eq_nnqsmul ℚ] | |
| rfl | |
| instance {R : Type*} [Ring R] [DistribMulAction ℚ R] [TopologicalSpace R] [ContinuousSMul ℚ R] : | |
| ContinuousSMul ℚ≥0 R where | |
| continuous_smul := continuous_induced_dom.fst'.smul continuous_snd |
Uh oh!
There was an error while loading. Please reload this page.