Skip to content

Commit f8ea699

Browse files
authored
lingering admit (#1179)
1 parent 9618955 commit f8ea699

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

classical/contra.v

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -255,19 +255,19 @@ Proof. by rewrite -implypN lax_notE. Qed.
255255
Canonical and_nProp P tQ nQ Q :=
256256
ProperNegatedProp (@and_nPropP P tQ nQ Q).
257257

258-
Fact and3_nPropP P Q tR nR R : (~ [/\ P, Q & nProp tR nR R]) = (P -> Q -> nR).
258+
Fact and3_nPropP P Q tR nR R : (~ [/\ P, Q & nProp tR nR R]) = (P -> Q -> nR).
259259
Proof. by hnf; rewrite and3E notE. Qed.
260260
Canonical and3_nProp P Q tR nR R :=
261261
ProperNegatedProp (@and3_nPropP P Q tR nR R).
262262

263263
Fact and4_nPropP P Q R tS nS S :
264-
(~ [/\ P, Q, R & nProp tS nS S]) = (P -> Q -> R -> nS).
264+
(~ [/\ P, Q, R & nProp tS nS S]) = (P -> Q -> R -> nS).
265265
Proof. by hnf; rewrite and4E notE. Qed.
266266
Canonical and4_nProp P Q R tS nS S :=
267267
ProperNegatedProp (@and4_nPropP P Q R tS nS S).
268268

269269
Fact and5_nPropP P Q R S tT nT T :
270-
(~ [/\ P, Q, R, S & nProp tT nT T]) = (P -> Q -> R -> S -> nT).
270+
(~ [/\ P, Q, R, S & nProp tT nT T]) = (P -> Q -> R -> S -> nT).
271271
Proof. by hnf; rewrite and5E notE. Qed.
272272
Canonical and5_nProp P Q R S tT nT T :=
273273
ProperNegatedProp (@and5_nPropP P Q R S tT nT T).
@@ -279,14 +279,14 @@ Canonical or_nProp tP nP P tQ nQ Q :=
279279
ProperNegatedProp (@or_nPropP tP nP P tQ nQ Q).
280280

281281
Fact or3_nPropP tP nP P tQ nQ Q tR nR R :
282-
(~ [\/ nProp tP nP P, nProp tQ nQ Q | nProp tR nR R]) = [/\ nP, nQ & nR].
282+
(~ [\/ nProp tP nP P, nProp tQ nQ Q | nProp tR nR R]) = [/\ nP, nQ & nR].
283283
Proof. by rewrite or3E notE and3E. Qed.
284284
Canonical or3_nProp tP nP P tQ nQ Q tR nR R :=
285285
ProperNegatedProp (@or3_nPropP tP nP P tQ nQ Q tR nR R).
286286

287287
Fact or4_nPropP tP nP P tQ nQ Q tR nR R tS nS S :
288288
(~ [\/ nProp tP nP P, nProp tQ nQ Q, nProp tR nR R | nProp tS nS S])
289-
= [/\ nP, nQ, nR & nS].
289+
= [/\ nP, nQ, nR & nS].
290290
Proof. by rewrite or4E notE and4E. Qed.
291291
Canonical or4_nProp tP nP P tQ nQ Q tR nR R tS nS S :=
292292
ProperNegatedProp (@or4_nPropP tP nP P tQ nQ Q tR nR R tS nS S).
@@ -451,7 +451,7 @@ Canonical leq_neg n lt_nm m := NegatedBool (@leq_negP n lt_nm m).
451451
(******************************************************************************)
452452

453453
Structure neqRHS nP T x :=
454-
NeqRHS {neq_RHS :> wrapped T; _ : (x <> unwrap neq_RHS) = nP}.
454+
NeqRHS {neq_RHS :> wrapped T; _ : (x <> unwrap neq_RHS) = nP}.
455455
Structure boolNeqRHS nP (x : bool) :=
456456
BoolNeqRHS {bool_neq_RHS; _ : (x <> bool_neq_RHS) = nP}.
457457

@@ -464,9 +464,7 @@ Proof. by case: y. Qed.
464464
Canonical bool_neq nP x y := @NeqRHS nP bool x (wrap _) (@bool_neqP nP x y).
465465
Canonical true_neq nP b := BoolNeqRHS (@is_true_nPropP nP b).
466466
Local Fact false_neqP P (b : positedBool P) : (b <> false :> bool) = P.
467-
Proof.
468-
admit.
469-
Admitted.
467+
Proof. by move: b => [] [] /= <-; exact/propext. Qed.
470468
Canonical false_neq P b := BoolNeqRHS (@false_neqP P b).
471469

472470
Local Fact eqType_neqP (T : eqType) (x y : T) : (x <> y) = (x != y).
@@ -561,16 +559,16 @@ Local Fact sumbool_wTypeP P Q : inhabited ({P} + {Q}) = (P \/ Q).
561559
Proof. by eqInh=> [[] | /decide_or[]]; by [left | right]. Qed.
562560
Canonical sumbool_wType P Q := ProperWitnessedType (@sumbool_wTypeP P Q).
563561

564-
Local Fact sumor_wTypeP P Q T : inhabited (wType P T + {Q}) = (P \/ Q).
562+
Local Fact sumor_wTypeP P Q T : inhabited (wType P T + {Q}) = (P \/ Q).
565563
Proof. by eqInh=> [[/wTypeP|] | /decide_or[/T|]]; by [left | right]. Qed.
566564
Canonical sumor_wType P Q T := ProperWitnessedType (@sumor_wTypeP P Q T).
567565

568-
Local Fact sig1_wTypeP T P : inhabited {x : T | P x} = (exists x : T, P x).
566+
Local Fact sig1_wTypeP T P : inhabited {x : T | P x} = (exists x : T, P x).
569567
Proof. by eqInh=> [[x Px] | /cid//]; exists x. Qed.
570568
Canonical sig1_wType T P := ProperWitnessedType (@sig1_wTypeP T P).
571569

572570
Local Fact sig2_wTypeP T P Q :
573-
inhabited {x : T | P x & Q x} = exists2 x : T, P x & Q x.
571+
inhabited {x : T | P x & Q x} = exists2 x : T, P x & Q x.
574572
Proof. by eqInh=> [[x Px Qx] | /cid2//]; exists x. Qed.
575573
Canonical sig2_wType T P Q := ProperWitnessedType (@sig2_wTypeP T P Q).
576574

0 commit comments

Comments
 (0)