-
Notifications
You must be signed in to change notification settings - Fork 62
Remove MC2.4 deprecations and cleanup mathcomp_extra.v #1736
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?
Conversation
Definition bigmaxr (r : R) s := \big[Num.max/head r s]_(i <- s) i. | ||
|
||
#[deprecated(note="To be removed. Use topology.v's bigmax/min lemmas instead.")] | ||
#[warning="-deprecated"] |
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.
I added these attributes (see below) since I prepared this PR by adding the following lines to _CoqProject
:
-arg -w -arg +deprecated-reference
-arg -w -arg +deprecated-syntactic-definition
-arg -w -arg +deprecated-notation
Since they are the internal use of deprecated definitions/lemmas, I think that suppressing the deprecation warning here is the right thing to do, but feel free to revert this part of the changes.
Since these deprecations date back to 3 years ago, removing all of them is also an option.
have [->|a0] := eqVneq a zero. | ||
by rewrite Monoid.mul0m fsbig1//; move=> i _; rewrite Monoid.mul0m. | ||
#[warning="deprecated"] (* FIXME *) | ||
rewrite big_distrr [RHS](full_fsbigID (F @^-1` [set zero])); last first. |
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.
I didn't manage to get rid of full_fsbigID
here.
(IMO, we should have added |
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.
Thanks for having taken care of that!
As for the warnings in Rstruct.v
, I don't have a strong opinion, apart from the fact that this file should be cleaned. :-(
The only development that I can think of that might depend on that is Damien and Cyril's work on LaSalle and the pendulum @CohenCyril . We have recently ported the latter to the last version of MathComp-Analysis, so it will be easy to confirm soon whether it is really needed or not and do cleaning accordingly (I'll try to do that asap).
Then, shall we merge this as is, and decide what to do with |
Suppressed deprecation warnings are very likely to cause unanticipated bugs in the future. I'm still ok with merging asap as long as we open an issue. From the above discussion, I did not manage to understand the exact cause of the failure to replace deprecated defs/notations/lemmas by non deprecated ones. Can someone explain? |
The ones in To be clear, it's also ok to remove these |
IMO, the compilation of MCA produces too many warnings, and it makes it hard to understand which ones have to be fixed. So, if I'm the one maintaining it, I would suppress the ones that are totally safe to ignore, e.g., the ones about |
I am in favor of merging almost as it is (I'll maybe remove the |
You should indeed be warned when you use |
No, it is not using it. trajectories is also using "bigmax" but this is a redefinition that is actually superseded by infotheo is also using a redefinition of bigmax but seems to be using MC's lemma already I can't think of any development that uses the bigmaxr definition of |
Me neither. Let's remove it. |
Motivation for this change
Checklist
CHANGELOG_UNRELEASED.md
Reference: How to document
Merge policy
As a rule of thumb:
all compile are preferentially merged into master.
Reminder to reviewers