-
Notifications
You must be signed in to change notification settings - Fork 356
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
[Merged by Bors] - feat: link Dilation
to Isometry
and Homeomorph
#9980
Closed
Closed
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -89,6 +89,8 @@ def Simps.symm_apply (e : X ≃ᵈ Y) : Y → X := e.symm | |
|
||
initialize_simps_projections DilationEquiv (toFun → apply, invFun → symm_apply) | ||
|
||
lemma ratio_toDilation (e : X ≃ᵈ Y) : ratio e.toDilation = ratio e := rfl | ||
|
||
/-- Identity map as a `DilationEquiv`. -/ | ||
@[simps! (config := .asFn) apply] | ||
def refl (X : Type*) [PseudoEMetricSpace X] : X ≃ᵈ X where | ||
|
@@ -176,6 +178,46 @@ def toPerm : (X ≃ᵈ X) →* Equiv.Perm X where | |
theorem coe_pow (e : X ≃ᵈ X) (n : ℕ) : ⇑(e ^ n) = e^[n] := by | ||
rw [← coe_toEquiv, ← toPerm_apply, map_pow, Equiv.Perm.coe_pow]; rfl | ||
|
||
-- TODO: Once `IsometryEquiv` follows the `*EquivClass` pattern, replace this with an instance | ||
-- of `DilationEquivClass` assuming `IsometryEquivClass`. | ||
/-- Every isometry equivalence is a dilation equivalence of ratio `1`. -/ | ||
def _root_.IsometryEquiv.toDilationEquiv (e : X ≃ᵢ Y) : X ≃ᵈ Y where | ||
edist_eq' := ⟨1, one_ne_zero, by simpa using e.isometry⟩ | ||
__ := e.toEquiv | ||
|
||
@[simp] | ||
lemma _root_.IsometryEquiv.toDilationEquiv_apply (e : X ≃ᵢ Y) (x : X) : | ||
e.toDilationEquiv x = e x := | ||
rfl | ||
|
||
@[simp] | ||
lemma _root_.IsometryEquiv.toDilationEquiv_symm (e : X ≃ᵢ Y) : | ||
e.toDilationEquiv.symm = e.symm.toDilationEquiv := | ||
rfl | ||
|
||
@[simp] | ||
lemma _root_.IsometryEquiv.toDilationEquiv_toDilation (e : X ≃ᵢ Y) : | ||
(e.toDilationEquiv.toDilation : X →ᵈ Y) = e.isometry.toDilation := | ||
rfl | ||
|
||
@[simp] | ||
lemma _root_.IsometryEquiv.toDilationEquiv_ratio (e : X ≃ᵢ Y) : ratio e.toDilationEquiv = 1 := by | ||
rw [← ratio_toDilation, IsometryEquiv.toDilationEquiv_toDilation, Isometry.toDilation_ratio] | ||
|
||
/-- Reinterpret a `DilationEquiv` as a homeomorphism. -/ | ||
def toHomeomorph (e : X ≃ᵈ Y) : X ≃ₜ Y where | ||
continuous_toFun := Dilation.toContinuous e | ||
continuous_invFun := Dilation.toContinuous e.symm | ||
__ := e.toEquiv | ||
Comment on lines
+207
to
+211
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. Do we really have no 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. We don't, no. I was a bit annoyed by this too, but not so much that I wanted to go write it immediately. |
||
|
||
@[simp] | ||
lemma coe_toHomeomorph (e : X ≃ᵈ Y) : ⇑e.toHomeomorph = e := | ||
rfl | ||
|
||
@[simp] | ||
lemma toHomeomorph_symm (e : X ≃ᵈ Y) : e.toHomeomorph.symm = e.symm.toHomeomorph := | ||
rfl | ||
|
||
end PseudoEMetricSpace | ||
|
||
section PseudoMetricSpace | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might make sense to make
f
explicit, otherwise this shows up as_.toDilation
in the goal view.