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.
683683by rewrite 3!asbool_neg -2!negb_and => /and3_asboolP.
684684Qed .
685685
686- Lemma notP (P : Prop) : ~ ~ P <-> P.
686+ Lemma not_notP (P : Prop) : ~ ~ P <-> P.
687687Proof . 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
691696Lemma 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
694699Lemma not_orP (P Q : Prop) : ~ (P \/ Q) <-> ~ P /\ ~ Q.
695700Proof . by rewrite not_orE. Qed .
@@ -698,7 +703,7 @@ Lemma not_implyE (P Q : Prop) : (~ (P -> Q)) = (P /\ ~ Q).
698703Proof . by rewrite propeqE not_implyP. Qed .
699704
700705Lemma 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
703708Lemma orC : commutative or.
704709Proof . by move=> /PropB[] /PropB[] => //; rewrite !orB. Qed .
@@ -1007,10 +1012,10 @@ Proof. by []. Qed.
10071012Section Inhabited.
10081013Variable (T : Type).
10091014
1010- Lemma inhabitedE: inhabited T = exists x : T, True.
1015+ Lemma inhabitedE : inhabited T = exists x : T, True.
10111016Proof . by eqProp; case. Qed .
10121017
1013- Lemma inhabited_witness: inhabited T -> T.
1018+ Lemma inhabited_witness : inhabited T -> T.
10141019Proof . by rewrite inhabitedE => /cid[]. Qed .
10151020
10161021End Inhabited.
0 commit comments