Skip to content
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

mathcomp2 and Sub deprecated #87

Closed
thery opened this issue Oct 4, 2023 · 2 comments · Fixed by #90
Closed

mathcomp2 and Sub deprecated #87

thery opened this issue Oct 4, 2023 · 2 comments · Fixed by #90

Comments

@thery
Copy link
Member

thery commented Oct 4, 2023

I'm trying to use ring with mathcomp and I get a warning

From mathcomp Require Import all_ssreflect all_algebra ring.

Goal forall (T : fieldType) (x : T), x = x.
move=> T x.
ring.
Qed.
Warning: Notation sub is deprecated since mathcomp 2.0.0. Use Sub instead.
[deprecated-syntactic-definition-since-mathcomp-2.0.0,deprecated-since-mathcomp-2.0.0,deprecated-syntactic-definition,deprecated,default]
@pi8027
Copy link
Member

pi8027 commented Oct 6, 2023

fresh emits a deprecation warning if the generated name is a deprecated name. I believe that this is a bug of Coq.

#[deprecated(since="1")] Notation a := id.

Goal False.
Proof.
let x := fresh "a" in
idtac.
(*
Warning: Notation a is deprecated since 1.
[deprecated-syntactic-definition-since-1,deprecated-since-1,deprecated-syntactic-definition,deprecated,default]
*)
Abort.

@pi8027
Copy link
Member

pi8027 commented Oct 6, 2023

Reported: coq/coq#18133

pi8027 added a commit that referenced this issue Oct 14, 2023
pi8027 added a commit that referenced this issue Oct 14, 2023
pi8027 added a commit that referenced this issue Jun 17, 2024
This reverts commit 2a14b95.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants