Skip to content

Commit 267546e

Browse files
authored
avoid name clash (#1814)
* avoid name clash
1 parent 1acba88 commit 267546e

File tree

6 files changed

+25
-14
lines changed

6 files changed

+25
-14
lines changed

CHANGELOG_UNRELEASED.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@
173173
- in `charge.v`:
174174
+ `induced` -> `induced_charge`
175175

176+
- in `boolp.v`:
177+
+ `notP` -> `not_notP`
178+
+ `notE` -> `not_notE`
179+
176180
### Generalized
177181

178182
- in `lebesgue_integral_under.v`:

classical/boolp.v

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* mathcomp analysis (c) 2017 Inria and AIST. License: CeCILL-C. *)
1+
(* mathcomp analysis (c) 2026 Inria and AIST. License: CeCILL-C. *)
22
(* -------------------------------------------------------------------- *)
33
(* Copyright (c) - 2015--2016 - IMDEA Software Institute *)
44
(* Copyright (c) - 2015--2018 - Inria *)
@@ -683,13 +683,18 @@ by rewrite 2!negb_and -3!asbool_neg => /or3_asboolP.
683683
by rewrite 3!asbool_neg -2!negb_and => /and3_asboolP.
684684
Qed.
685685

686-
Lemma notP (P : Prop) : ~ ~ P <-> P.
686+
Lemma not_notP (P : Prop) : ~ ~ P <-> P.
687687
Proof. by split => [|p]; [exact: contrapT|exact]. Qed.
688+
#[deprecated(since="mathcomp-analysis 1.15.0", note="Renamed to `not_notP`. Warning: a different `notP` is provided by `contra.v`.")]
689+
Notation notP := not_notP (only parsing).
688690

689-
Lemma notE (P : Prop) : (~ ~ P) = P. Proof. by rewrite propeqE notP. Qed.
691+
Lemma not_notE (P : Prop) : (~ ~ P) = P.
692+
Proof. by rewrite propeqE not_notP. Qed.
693+
#[deprecated(since="mathcomp-analysis 1.15.0", note="Renamed to `not_notE`. Warning: a different `notE` is provided by `contra.v`.")]
694+
Notation notE := not_notE (only parsing).
690695

691696
Lemma not_orE (P Q : Prop) : (~ (P \/ Q)) = (~ P /\ ~ Q).
692-
Proof. by rewrite -[_ /\ _]notE not_andE 2!notE. Qed.
697+
Proof. by rewrite -[_ /\ _]not_notE not_andE 2!not_notE. Qed.
693698

694699
Lemma not_orP (P Q : Prop) : ~ (P \/ Q) <-> ~ P /\ ~ Q.
695700
Proof. by rewrite not_orE. Qed.
@@ -698,7 +703,7 @@ Lemma not_implyE (P Q : Prop) : (~ (P -> Q)) = (P /\ ~ Q).
698703
Proof. by rewrite propeqE not_implyP. Qed.
699704

700705
Lemma implyE (P Q : Prop) : (P -> Q) = (~ P \/ Q).
701-
Proof. by rewrite -[LHS]notE not_implyE propeqE not_andP notE. Qed.
706+
Proof. by rewrite -[LHS]not_notE not_implyE propeqE not_andP not_notE. Qed.
702707

703708
Lemma orC : commutative or.
704709
Proof. by move=> /PropB[] /PropB[] => //; rewrite !orB. Qed.
@@ -1007,10 +1012,10 @@ Proof. by []. Qed.
10071012
Section Inhabited.
10081013
Variable (T : Type).
10091014

1010-
Lemma inhabitedE: inhabited T = exists x : T, True.
1015+
Lemma inhabitedE : inhabited T = exists x : T, True.
10111016
Proof. by eqProp; case. Qed.
10121017

1013-
Lemma inhabited_witness: inhabited T -> T.
1018+
Lemma inhabited_witness : inhabited T -> T.
10141019
Proof. by rewrite inhabitedE => /cid[]. Qed.
10151020

10161021
End Inhabited.

classical/contra.v

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* mathcomp analysis (c) 2017 Inria and AIST. License: CeCILL-C. *)
1+
(* mathcomp analysis (c) 2026 Inria and AIST. License: CeCILL-C. *)
22
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq.
33
From mathcomp Require Import boolp.
44

@@ -268,7 +268,9 @@ Lemma lax_notE {t nP} P : (~ nProp t nP P) = nP. Proof. by case: P. Qed.
268268
Lemma lax_notP {t nP P} : ~ nProp t nP P -> nP. Proof. by rewrite lax_notE. Qed.
269269
Definition lax_notI {t nP} P : nProp t nP P = (~ nP) := canRL notK (lax_notE P).
270270

271+
#[warn(note="A different `notE` used to be provided by `boolp.v` before MathComp-Analysis 1.15.0.")]
271272
Definition notE {nP} P : (~ nProp false nP P) = nP := lax_notE P.
273+
#[warn(note="A different `notP` used to be provided by `boolp.v` before MathComp-Analysis 1.15.0.")]
272274
Definition notP {nP P} := MoveView (@lax_notP false nP P).
273275

274276
Fact proper_nPropP nP P : (~ pnProp nP P) = nP. Proof. by case: P. Qed.

theories/normedtype_theory/normed_module.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@ suff [p_idx [pUq Up]] : exists p_idx,
23002300
by move/set_mem : pUq; exact: bigcup_ointsub_sub.
23012301
exists (g p_idx).
23022302
- rewrite /= => q' Uq' q'p.
2303-
apply/notP => /eqP/set0P[s [ps ts]].
2303+
apply/not_notP => /eqP/set0P[s [ps ts]].
23042304
suff : ratr q' \in bigcup_ointsub U q by move/Up; rewrite leqNgt q'p.
23052305
rewrite (@nondisjoint_bigcup_ointsub _ _ _ (g p_idx))//.
23062306
rewrite (@nondisjoint_bigcup_ointsub _ _ _ q') ?bigcup_ointsubxx//.

theories/normedtype_theory/urysohn.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* mathcomp analysis (c) 2025 Inria and AIST. License: CeCILL-C. *)
1+
(* mathcomp analysis (c) 2026 Inria and AIST. License: CeCILL-C. *)
22
From HB Require Import structures.
33
From mathcomp Require Import all_ssreflect finmap ssralg ssrnum ssrint interval.
44
From mathcomp Require Import archimedean.
@@ -85,7 +85,7 @@ Lemma edist_finP (xy : X * X) :
8585
(edist xy \is a fin_num)%E <-> exists2 r, 0 < r & ball xy.1 r xy.2.
8686
Proof.
8787
rewrite ge0_fin_numE ?edist_ge0// ltey.
88-
rewrite -(rwP (negPP eqP)); apply/iff_not2; rewrite notE.
88+
rewrite -(rwP (negPP eqP)); apply/iff_not2; rewrite not_notE.
8989
apply: (iff_trans (edist_pinftyP _)); apply: (iff_trans _ (forall2NP _ _)).
9090
by under eq_forall => ? do rewrite implyE.
9191
Qed.

theories/sequences.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* mathcomp analysis (c) 2025 Inria and AIST. License: CeCILL-C. *)
1+
(* mathcomp analysis (c) 2026 Inria and AIST. License: CeCILL-C. *)
22
From HB Require Import structures.
33
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint.
44
From mathcomp Require Import interval interval_inference archimedean.
@@ -2899,7 +2899,7 @@ have akN1A : a_ k.-1 \in A.
28992899
contra: aiB => ->.
29002900
rewrite /a_ !mul0r addr0; apply/negP => /set_mem/(ABlt _ _ aA).
29012901
by rewrite ltxx.
2902-
apply/mem_set/boolp.notP => abs.
2902+
apply/mem_set/not_notP => abs.
29032903
have {}abs : a_ i.-1 \in B.
29042904
by move/seteqP : ABT => [_ /(_ (a_ i.-1) Logic.I)] [//|/mem_set].
29052905
have iN : (i.-1 < N.+1)%N by rewrite prednK ?lt0n// ltnW.
@@ -3253,7 +3253,7 @@ have majball g x : F g -> (ball x0 r%:num) x -> `|g (x - x0)| <= n%:R + n%:R.
32533253
move: (linearB (pack_linear Lg)) => /= -> Ballx.
32543254
apply/(le_trans (ler_normB _ _))/lerD; first exact: majballi.
32553255
by apply: majballi => //; exact/ball_center.
3256-
have ballprop : ball x0 r%:num (2^-1 * (r%:num / `|y|) *: y + x0).
3256+
have ballprop : ball x0 r%:num (2^-1 * (r%:num / `|y|) *: y + x0).
32573257
rewrite -ball_normE /ball_ /= opprD addrC subrK normrN normrZ.
32583258
rewrite 2!normrM 2!normfV normr_id !mulrA divfK ?normr_eq0//.
32593259
by rewrite !gtr0_norm// gtr_pMl// invf_lt1// ltr1n.

0 commit comments

Comments
 (0)