diff --git a/theories/base.v b/theories/base.v index 33ab00c95697d0b31bf79b55177f34673d59b493..0e7d52cc482e14f9fa6825a868c16359155dee2b 100644 --- a/theories/base.v +++ b/theories/base.v @@ -753,6 +753,10 @@ Section sig_map. End sig_map. Arguments sig_map _ _ _ _ _ _ !_ / : assert. +Definition proj1_ex {P : Prop} {Q : P → Prop} (p : ∃ x, Q x) : P := + let '(ex_intro _ x _) := p in x. +Definition proj2_ex {P : Prop} {Q : P → Prop} (p : ∃ x, Q x) : Q (proj1_ex p) := + let '(ex_intro _ x H) := p in H. (** * Operations on sets *) (** We define operational type classes for the traditional operations and