aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssreflect/ssrnotations.v
diff options
context:
space:
mode:
authorGeorges Gonthier2019-05-05 17:01:50 +0200
committerGeorges Gonthier2019-05-06 16:16:24 +0200
commitb59653a5b377f91a21e8036bf0b5d98a35fc4963 (patch)
tree73e8bf66926855dc2d0a440f6a6a0c97a92344b3 /mathcomp/ssreflect/ssrnotations.v
parenta3f3d1aead4b5c35fb4a74be1cca7a5cde253d9a (diff)
add `deprecate` helper notation; no `perm` in non-`perm_eq` lemma names
- add notation support for lemma renaming PRs, helping clients adjust to the name change by emitting warning or raising errors when the old name is used. The default is to emit warnings, but clients can change this to silence (if electing to delay migration) or errors (to help with actual migration). Usage: Notation old_id := (deprecate old_id new_id) (only parsing). —> Caveat 1: only prenex maximal implicit of `new_id` are preserved, so, as `Notation` does not support on-demand implicits, the latter should be added explicitly as in `(deprecate old new _ _)`. —> Caveat 2: the warnings are emitted by a tactic-in-term, which is interpreted during type elaboration. As the SSReflect elaborator may re-infer type in arguments multiple times (notably, views and arguments to `apply` and `rewrite`), clients may see duplicate warnings. - use the `deprecate` facility to introduce the first part of the refactoring of `seq` permutation lemmas : only lemmas concerning `perm_eq` should have `perm` as a component of their name. - document local additions in `ssreflect.v` and `ssrbool.v` - add 8.8 `odd-order` regression - the explicit beta-redex idiom use in the `perm_uniq` and `leq_min_perm` aliases avoids a strange name-sensitive bug of view interpretation in Coq 8.7.
Diffstat (limited to 'mathcomp/ssreflect/ssrnotations.v')
-rw-r--r--mathcomp/ssreflect/ssrnotations.v2
1 files changed, 2 insertions, 0 deletions
diff --git a/mathcomp/ssreflect/ssrnotations.v b/mathcomp/ssreflect/ssrnotations.v
index 4c55514..dbc7f3d 100644
--- a/mathcomp/ssreflect/ssrnotations.v
+++ b/mathcomp/ssreflect/ssrnotations.v
@@ -1,6 +1,7 @@
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *)
(* Distributed under the terms of CeCILL-B. *)
+(******************************************************************************)
(* - Reserved notation for various arithmetic and algebraic operations: *)
(* e.[a1, ..., a_n] evaluation (e.g., polynomials). *)
(* e`_i indexing (number list, integer pi-part). *)
@@ -27,6 +28,7 @@
(* [rec a1, ..., an] standard shorthand for hidden recursor (see prime.v). *)
(* The interpretation of these notations is not defined here, but the *)
(* declarations help maintain consistency across the library. *)
+(******************************************************************************)
(* Reserved notation for evaluation *)
Reserved Notation "e .[ x ]"