-
Notifications
You must be signed in to change notification settings - Fork 840
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
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.