aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Logic/ClassicalEpsilon.v
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-08-28 13:45:32 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-08-28 13:45:32 +0000
commit0a921a91ec8d61d9abc3380949a6f06cf2a069ae (patch)
treea996581378463d04e8a9cec5b98f36840f2f332d /theories/Logic/ClassicalEpsilon.v
parenta49d610f95a9d78d273cc34a82cc91ebfab2f22a (diff)
Passage à une définition de inhabited plus dans les 'standard mathématiques'; ajout preuve que tous les 'epsilon i P' sont égaux si P habité
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9093 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Logic/ClassicalEpsilon.v')
-rw-r--r--theories/Logic/ClassicalEpsilon.v26
1 files changed, 20 insertions, 6 deletions
diff --git a/theories/Logic/ClassicalEpsilon.v b/theories/Logic/ClassicalEpsilon.v
index 9c3d07238..6c8631a9b 100644
--- a/theories/Logic/ClassicalEpsilon.v
+++ b/theories/Logic/ClassicalEpsilon.v
@@ -21,8 +21,6 @@ Require Import ChoiceFacts.
Set Implicit Arguments.
-Notation Local "'inhabited' A" := A (at level 200, only parsing).
-
Axiom constructive_indefinite_description :
forall (A : Type) (P : A->Prop),
(exists x, P x) -> { x : A | P x }.
@@ -51,8 +49,11 @@ destruct (excluded_middle_informative (exists x, P x)) as [Hex|HnonP].
with (P:= fun x => (exists x, P x) -> P x).
destruct Hex as (x,Hx).
exists x; intros _; exact Hx.
- firstorder.
-Qed.
+ assert {x : A | True} as (a,_).
+ apply constructive_indefinite_description with (P := fun _ : A => True).
+ destruct i as (a); firstorder.
+ firstorder.
+Defined.
(** Hilbert's epsilon operator *)
@@ -63,8 +64,6 @@ Definition epsilon_spec (A : Type) (i:inhabited A) (P : A->Prop) :
(exists x, P x) -> P (epsilon i P)
:= proj2_sig (classical_indefinite_description P i).
-Opaque epsilon.
-
(** Open question: is classical_indefinite_description constructively
provable from [relational_choice] and
[constructive_definite_description] (at least, using the fact that
@@ -73,6 +72,21 @@ Opaque epsilon.
[classical_indefinite_description] is provable (see
[relative_non_contradiction_of_indefinite_desc]). *)
+(** A proof that if [P] is inhabited, [epsilon a P] does not depend on
+ the actual proof that the domain of [P] is inhabited
+ (proof idea kindly provided by Pierre Castéran) *)
+
+Lemma epsilon_inh_irrelevance :
+ forall (A:Type) (i j : inhabited A) (P:A->Prop),
+ (exists x, P x) -> epsilon i P = epsilon j P.
+Proof.
+ intros.
+ unfold epsilon, classical_indefinite_description.
+ destruct (excluded_middle_informative (exists x : A, P x)) as [|[]]; trivial.
+Qed.
+
+Opaque epsilon.
+
(** *** Weaker lemmas (compatibility lemmas) *)
Theorem choice :