chore(Topology): rename IndiscreteTopology to HasIndiscreteTopology - #40994
chore(Topology): rename IndiscreteTopology to HasIndiscreteTopology#40994felixpernegger wants to merge 5 commits into
IndiscreteTopology to HasIndiscreteTopology#40994Conversation
PR summary 6be318ae38Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
scholzhannah
left a comment
There was a problem hiding this comment.
Thank you for doing this! I have left some comments below.
| alias ⟨_, IndiscreteTopology.of_forall_nnnorm_eq_zero'⟩ := | ||
| indiscreteTopology_iff_forall_nnnorm_eq_zero' | ||
| alias ⟨_, IndiscreteTopology.of_forall_nnnorm_eq_zero⟩ := | ||
| indiscreteTopology_iff_forall_nnnorm_eq_zero | ||
| attribute [to_additive existing IndiscreteTopology.of_forall_nnnorm_eq_zero] | ||
| IndiscreteTopology.of_forall_nnnorm_eq_zero' |
There was a problem hiding this comment.
I think we would also need deprecations for these old aliases, right?
| alias ⟨_, IndiscreteTopology.of_forall_norm_eq_zero'⟩ := | ||
| indiscreteTopology_iff_forall_norm_eq_zero' | ||
| alias ⟨_, IndiscreteTopology.of_forall_norm_eq_zero⟩ := | ||
| indiscreteTopology_iff_forall_norm_eq_zero | ||
| attribute [to_additive existing IndiscreteTopology.of_forall_norm_eq_zero] | ||
| IndiscreteTopology.of_forall_norm_eq_zero' |
There was a problem hiding this comment.
Same as above probably?
| @[to_additive indiscreteTopology_iff_forall_nnnorm_eq_zero] | ||
| theorem indiscreteTopology_iff_forall_nnnorm_eq_zero' : | ||
| IndiscreteTopology E ↔ ∀ x : E, ‖x‖₊ = 0 := by | ||
| @[to_additive hasIndiscreteTopology_iff_forall_nnnorm_eq_zero] | ||
| theorem hasIndiscreteTopology_iff_forall_nnnorm_eq_zero' : | ||
| HasIndiscreteTopology E ↔ ∀ x : E, ‖x‖₊ = 0 := by | ||
| simpa using nontrivialTopology_iff_exists_nnnorm_ne_zero' (E := E).not | ||
|
|
||
| @[deprecated (since := "2026-06-24")] | ||
| alias indiscreteTopology_iff_forall_nnnorm_eq_zero' := | ||
| hasIndiscreteTopology_iff_forall_nnnorm_eq_zero' |
There was a problem hiding this comment.
It looks like you are always missing the deprecation for the declaration generated by to_additive. The style guide specifies how to properly do this.
There was a problem hiding this comment.
Ok seems like add_depracations script is missing this
|
|
||
| theorem indiscreteTopology_iff (h : X ≃ₜ Y) : IndiscreteTopology X ↔ IndiscreteTopology Y := | ||
| ⟨fun _ ↦ h.indiscreteTopology, fun _ ↦ h.symm.indiscreteTopology⟩ | ||
| @[deprecated (since := "2026-06-24")] alias indiscreteTopology := Homeomorph.hasIndiscreteTopology |
There was a problem hiding this comment.
| @[deprecated (since := "2026-06-24")] alias indiscreteTopology := Homeomorph.hasIndiscreteTopology | |
| @[deprecated (since := "2026-06-24")] protected alias indiscreteTopology := | |
| Homeomorph.hasIndiscreteTopology |
Here and below.
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
|
This needs a Zulip discussion, as almost the entirety of the topology library does not use this convention for |
Per naming convention. https://leanprover-community.github.io/contribute/naming.html#prop-valued-classes .
See this PR for further information.
Renaming discrete topology will be more involved, sinced its used much more widely