Skip to content

Commit dd9e7b0

Browse files
authored
Merge pull request #1824 from affeldt-aist/warning_20260116
less notE, etc. warnings
2 parents e224b1a + 9743523 commit dd9e7b0

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

classical/classical_sets.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ Lemma setDE A B : A `\` B = A `&` ~` B. Proof. by []. Qed.
707707
Lemma setUDl A B C : (A `\` B) `|` C = (A `|` C) `\` (B `\` C).
708708
Proof.
709709
apply/seteqP; split => x /=; first tauto.
710-
by move=> [[a|c]]; rewrite not_andE notE; tauto.
710+
#[warnings="-deprecated-syntactic-definition"] by move=> [[a|c]]; rewrite not_andE notE; tauto.
711711
Qed.
712712

713713
Lemma setUDr A B C : A `|` (B `\` C) = (A `|` B) `\` (C `\` A).

classical/contra.v

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -297,19 +297,19 @@ Canonical and_nProp P tQ nQ Q :=
297297
ProperNegatedProp (@and_nPropP P tQ nQ Q).
298298

299299
Fact and3_nPropP P Q tR nR R : (~ [/\ P, Q & nProp tR nR R]) = (P -> Q -> nR).
300-
Proof. by hnf; rewrite and3E notE. Qed.
300+
Proof. #[warnings="-user-warn"] by hnf; rewrite and3E notE. Qed.
301301
Canonical and3_nProp P Q tR nR R :=
302302
ProperNegatedProp (@and3_nPropP P Q tR nR R).
303303

304304
Fact and4_nPropP P Q R tS nS S :
305305
(~ [/\ P, Q, R & nProp tS nS S]) = (P -> Q -> R -> nS).
306-
Proof. by hnf; rewrite and4E notE. Qed.
306+
Proof. #[warnings="-user-warn"] by hnf; rewrite and4E notE. Qed.
307307
Canonical and4_nProp P Q R tS nS S :=
308308
ProperNegatedProp (@and4_nPropP P Q R tS nS S).
309309

310310
Fact and5_nPropP P Q R S tT nT T :
311311
(~ [/\ P, Q, R, S & nProp tT nT T]) = (P -> Q -> R -> S -> nT).
312-
Proof. by hnf; rewrite and5E notE. Qed.
312+
Proof. #[warnings="-user-warn"] by hnf; rewrite and5E notE. Qed.
313313
Canonical and5_nProp P Q R S tT nT T :=
314314
ProperNegatedProp (@and5_nPropP P Q R S tT nT T).
315315

@@ -321,14 +321,14 @@ Canonical or_nProp tP nP P tQ nQ Q :=
321321

322322
Fact or3_nPropP tP nP P tQ nQ Q tR nR R :
323323
(~ [\/ nProp tP nP P, nProp tQ nQ Q | nProp tR nR R]) = [/\ nP, nQ & nR].
324-
Proof. by rewrite or3E notE and3E. Qed.
324+
Proof. #[warnings="-user-warn"] by rewrite or3E notE and3E. Qed.
325325
Canonical or3_nProp tP nP P tQ nQ Q tR nR R :=
326326
ProperNegatedProp (@or3_nPropP tP nP P tQ nQ Q tR nR R).
327327

328328
Fact or4_nPropP tP nP P tQ nQ Q tR nR R tS nS S :
329329
(~ [\/ nProp tP nP P, nProp tQ nQ Q, nProp tR nR R | nProp tS nS S])
330330
= [/\ nP, nQ, nR & nS].
331-
Proof. by rewrite or4E notE and4E. Qed.
331+
Proof. #[warnings="-user-warn"] by rewrite or4E notE and4E. Qed.
332332
Canonical or4_nProp tP nP P tQ nQ Q tR nR R tS nS S :=
333333
ProperNegatedProp (@or4_nPropP tP nP P tQ nQ Q tR nR R tS nS S).
334334

@@ -363,12 +363,12 @@ Canonical exists_nProp A tP nP P :=
363363

364364
Fact exists2_nPropP A P tQ nQ Q :
365365
(~ exists2 x : A, P x & nPred tQ nQ Q x) = (forall x : A, P x -> nQ x).
366-
Proof. by rewrite exists2E notE. Qed.
366+
Proof. #[warnings="-user-warn"] by rewrite exists2E notE. Qed.
367367
Canonical exists2_nProp A P tQ nQ Q :=
368368
ProperNegatedProp (@exists2_nPropP A P tQ nQ Q).
369369

370370
Fact inhabited_nPropP T : (~ inhabited T) = (T -> False).
371-
Proof. by rewrite inhabitedE notE. Qed.
371+
Proof. #[warnings="-user-warn"] by rewrite inhabitedE notE. Qed.
372372
Canonical inhabited_nProp T := ProperNegatedProp (inhabited_nPropP T).
373373

374374
(**md**************************************************************************)
@@ -463,7 +463,7 @@ Local Fact negb_negP P (b : positedBool P) : (~ ~~ b) = P.
463463
Proof. by rewrite (reflect_eq negP) negbK; case: b. Qed.
464464
Canonical negb_neg P b := NegatedBool (@negb_negP P b).
465465
Local Fact negb_posP nP (b : negatedBool nP) : (~~ b = nP :> Prop).
466-
Proof. by rewrite -(reflect_eq negP) notE. Qed.
466+
Proof. #[warnings="-user-warn"] by rewrite -(reflect_eq negP) notE. Qed.
467467
Canonical negb_pos nP b := PositedBool (@negb_posP nP b).
468468

469469
(**md**************************************************************************)
@@ -479,7 +479,7 @@ Canonical neg_ltn_LHS n m := @NegatedLeqLHS n (n <= m) m.+1 erefl.
479479
Canonical neg_leq_LHS n m := @NegatedLeqLHS n (n < m) m erefl.
480480

481481
Local Fact leq_negP n lt_nm (m : negatedLeqLHS n lt_nm) : (~ m <= n) = lt_nm.
482-
Proof. by rewrite notE -ltnNge; case: m => /= m ->. Qed.
482+
Proof. #[warnings="-user-warn"] by rewrite notE -ltnNge; case: m => /= m ->. Qed.
483483
Canonical leq_neg n lt_nm m := NegatedBool (@leq_negP n lt_nm m).
484484

485485
(**md**************************************************************************)
@@ -792,7 +792,7 @@ Proof. by rewrite 2!lax_notE. Qed.
792792

793793
End Internals.
794794
Import Internals.
795-
Definition notP := @Internals.notP.
795+
#[warnings="-user-warn"] Definition notP := @Internals.notP.
796796
Hint View for move/ move_viewP|2.
797797
Hint View for move/ Internals.equivT_LR|2 Internals.equivT_RL|2.
798798
Hint View for apply/ Internals.equivT_RL|2 Internals.equivT_LR|2.
@@ -815,7 +815,7 @@ Ltac assume_not :=
815815
(* Caveat: absurd_not cannot be used as a move/ view because its conclusion *)
816816
(* is indeterminate. The more general notP defined above can be used instead. *)
817817
(******************************************************************************)
818-
Lemma absurd_not {P} : (~ P -> False) -> P. Proof. by move/Internals.notP. Qed.
818+
Lemma absurd_not {P} : (~ P -> False) -> P. Proof. #[warnings="-user-warn"] by move/Internals.notP. Qed.
819819
Ltac absurd_not := assume_not; apply: Internals.absurdW.
820820

821821
(**md**************************************************************************)

classical/internal_Eqdep_dec.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Attributes deprecated(since="mathcomp-analysis 1.10.0",
44
note="This file is for internal purpose only and should not \
5-
be imported nor used. It may removed in the future.").
5+
be imported nor used. It may be removed in the future.").
66

77
Import EqNotations.
88

0 commit comments

Comments
 (0)