diff options
| author | barras | 2000-03-10 17:28:47 +0000 |
|---|---|---|
| committer | barras | 2000-03-10 17:28:47 +0000 |
| commit | 20b4a46e9956537a0bb21c5eacf2539dee95cb67 (patch) | |
| tree | a126e4c3f32f20fa6532a9cbd47e8719aa9a14ca /theories | |
| parent | d9f98fee95838b9d9cf83d218a0d927c04a38870 (diff) | |
*** empty log message ***
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@310 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories')
| -rw-r--r-- | theories/Logic/Eqdep_dec.v | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/theories/Logic/Eqdep_dec.v b/theories/Logic/Eqdep_dec.v index ecf73f99ce..29a8b0a66a 100644 --- a/theories/Logic/Eqdep_dec.v +++ b/theories/Logic/Eqdep_dec.v @@ -43,8 +43,8 @@ Section DecidableEqDep. Variable A: Type. - Local comp: (x,y,y':A)x==y->x==y'->y==y' := - [x,y,y',eq1,eq2](eqT_ind ? ? [a]a==y' eq2 ? eq1). + Local comp [x,y,y':A]: x==y->x==y'->y==y' := + [eq1,eq2](eqT_ind ? ? [a]a==y' eq2 ? eq1). Remark trans_sym_eqT: (x,y:A)(u:x==y)(comp u u)==(refl_eqT ? y). Intros. @@ -59,11 +59,11 @@ Save. Variable x: A. - Local nu: (y:A)x==y->x==y := - [y,u]Case (eq_dec x y) of - [H:x==y]H - [H:~x==y](False_ind ? (H u)) - end. + Local nu [y:A]: x==y->x==y := + [u]Cases (eq_dec x y) of + (or_introl eqxy) => eqxy + | (or_intror neqxy) => (False_ind ? (neqxy u)) + end. Remark nu_constant : (y:A)(u,v:x==y) (nu u)==(nu v). Intros. @@ -75,7 +75,7 @@ Case y0; Trivial. Save. - Local nu_inv: (y:A)x==y->x==y := [y,v](comp (nu (refl_eqT ? x)) v). + Local nu_inv [y:A]: x==y->x==y := [v](comp (nu (refl_eqT ? x)) v). Remark nu_left_inv : (y:A)(u:x==y) (nu_inv (nu u))==u. |
