Skip to content

Commit

Permalink
Merge pull request #454 from math-comp/fixes_453
Browse files Browse the repository at this point in the history
fixes issue 453
  • Loading branch information
affeldt-aist authored Oct 15, 2021
2 parents 358d711 + cd64b3d commit 6c627b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
- moved from `landau.v` to `normedtype.v`:
+ lemmas `comp_shiftK`, `comp_centerK`, `shift0`, `center0`, `near_shift`,
`cvg_shift`
- lemma `exists2P` moved from `topology.v` to `boolp.v`

### Renamed

Expand Down
6 changes: 5 additions & 1 deletion theories/boolp.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
(* Copyright (c) - 2015--2016 - IMDEA Software Institute *)
(* Copyright (c) - 2015--2018 - Inria *)
(* Copyright (c) - 2016--2018 - Polytechnique *)

(* -------------------------------------------------------------------- *)

From mathcomp Require Import ssreflect ssrfun ssrbool eqtype choice.

(* -------------------------------------------------------------------- *)
Expand Down Expand Up @@ -674,6 +674,10 @@ split=> [PQ [t Pt Qt]|PQ t]; first by have [] := PQ t.
by rewrite -not_andP => -[Pt Qt]; apply PQ; exists t.
Qed.

Lemma exists2P T (P Q : T -> Prop) :
(exists2 x, P x & Q x) <-> exists x, P x /\ Q x.
Proof. by split=> [[x ? ?] | [x []]]; exists x. Qed.

(* -------------------------------------------------------------------- *)
Definition xchooseb {T : choiceType} (P : pred T) (h : `[exists x, P x]) :=
xchoose (existsbP P h).
Expand Down
4 changes: 0 additions & 4 deletions theories/topology.v
Original file line number Diff line number Diff line change
Expand Up @@ -2805,10 +2805,6 @@ exists p; split=> [|B C FB p_C]; first by have /AclFIp [] := FA.
by have /AclFIp [_] := FB; move=> /(_ _ p_C).
Qed.

Lemma exists2P A (P Q : A -> Prop) :
(exists2 x, P x & Q x) <-> exists x, P x /\ Q x.
Proof. by split=> [[x ??] | [x []]]; exists x. Qed.

Lemma compact_cover : compact = cover_compact.
Proof.
rewrite compact_In0 cover_compactE predeqE => A.
Expand Down

0 comments on commit 6c627b3

Please sign in to comment.