-
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 all commits
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,8 @@ | |||||||||||||||||||||||
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.Lemmas | ||||||||||||||||||||||||
import Mathlib.Data.NNRat.Order | ||||||||||||||||||||||||
import Mathlib.Topology.Algebra.Order.Archimedean | ||||||||||||||||||||||||
import Mathlib.Topology.Algebra.Ring.Real | ||||||||||||||||||||||||
|
@@ -123,4 +125,14 @@ | |||||||||||||||||||||||
instance : OrderTopology ℚ≥0 := orderTopology_of_ordConnected (t := Set.Ici 0) | ||||||||||||||||||||||||
instance : ContinuousInv₀ ℚ≥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 : Type*} [Ring R] [MulAction ℚ R] [TopologicalSpace R] [ContinuousSMul ℚ R] : | ||||||||||||||||||||||||
ContinuousSMul ℚ≥0 R where | ||||||||||||||||||||||||
continuous_smul := continuous_induced_dom.fst'.smul continuous_snd | ||||||||||||||||||||||||
Comment on lines
+131
to
+133
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that I realise NNRat.instMulActionOfRat is harmful, I realise that we should not author new lemmas about it (indeed we should excise it). Thus your original design in which both the data of the
Suggested change
(Note that for this to apply in the lemma below, we will need to add Apologies for the suggesting we use the bad instance. |
||||||||||||||||||||||||
|
||||||||||||||||||||||||
instance : ContinuousSMul ℚ≥0 NNReal where | ||||||||||||||||||||||||
continuous_smul := Continuous.subtype_mk (by fun_prop) _ | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
end NNRat |
Uh oh!
There was an error while loading. Please reload this page.