You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, IsClosed is a class, unlike IsOpen and it also doesnt make much sense and isnt widely used as a class. This was suggested by @eric-wieser on Zulip #mathlib4 > Fact instances.
This PR makes it a one-field structure (def would also work, but this prevents defeq abuse...).
Some cleanup is needed, for example when IsClosed was used in an instance, we now need [Fact (IsOpen ....
Originally IsClosed was made a class in mathlib3 in 2021 here.
+ IsNoetherianRing.isClosed_ideal + instance : Fact (IsClosed ((generator H H').ker : Set (WithLp 2 (H × H')))) + instance : Fact (IsClosed (eigenspace (f : End R M) μ : Set M)) + instance [IsTopologicalGroup G] {H : Subgroup G} [H_closed : Fact (IsClosed (H : Set G))] : + instance [T1Space G] {U : Subgroup G} [DiscreteTopology U] : + instance {H : Subgroup G} [ProperSMul G X] [H_closed : Fact (IsClosed (H : Set G))] : + instance {I : Ideal R} [I.IsMaximal] : Fact (IsClosed (I : Set R)) + isClosed_pathComponentOne - instance (priority := low) IsNoetherianRing.isClosed_ideal - instance : IsClosed ((generator H H').ker : Set (WithLp 2 (H × H'))) - instance [Group G] [IsTopologicalGroup G] [LocallyPathConnectedSpace G] : - instance [IsTopologicalGroup G] {H : Subgroup G} [H_closed : IsClosed (H : Set G)] : - instance {H : Subgroup G} [ProperSMul G X] [H_closed : IsClosed (H : Set G)] : ProperSMul H X --++ isClosed
You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit 612ca32).
The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
IsClosed is already a one-field structure, so I think the title is a bit misleading.
You're removing it's class status, not refactoring stuff because of defeq abuse.
This pull request has conflicts, please merge master and resolve them.
This branch has not been deployed
No deployments
This file contains hidden or 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
awaiting-zulipThere is a Zulip discussion; the author should await and report/implement the decision reached theremerge-conflictThe PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot)
4 participants
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.
Currently,
IsClosedis a class, unlikeIsOpenand it also doesnt make much sense and isnt widely used as a class. This was suggested by @eric-wieser on Zulip #mathlib4 > Fact instances.This PR makes it a one-field structure (def would also work, but this prevents defeq abuse...).
Some cleanup is needed, for example when
IsClosedwas used in an instance, we now need[Fact (IsOpen ....Originally
IsClosedwas made a class in mathlib3 in 2021 here.