diff options
| author | herbelin | 2003-10-23 14:01:25 +0000 |
|---|---|---|
| committer | herbelin | 2003-10-23 14:01:25 +0000 |
| commit | 25c26b44bd27c2d94e4751a0722fa1ea1e7b242f (patch) | |
| tree | 63ccc23d7b04a0bd4bcaf7e2e460ced252e29d1d /theories/Init | |
| parent | 87bf3be4d87b358279efb5622172031a49790bb0 (diff) | |
Commentaires
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4709 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Init')
| -rwxr-xr-x | theories/Init/Specif.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/theories/Init/Specif.v b/theories/Init/Specif.v index 333a355001..2c6addf3df 100755 --- a/theories/Init/Specif.v +++ b/theories/Init/Specif.v @@ -85,9 +85,9 @@ Section Projections. Then [(projS1 y)] is the witness [a] and [(projS2 y)] is the proof of [(P a)] *) - Definition projS1 (* : (A:Set)(P:A->Set)(sigS A P) -> A *) + Definition projS1 : (sigS A P) -> A := [x:(sigS A P)]Cases x of (existS a _) => a end. - Definition projS2 (* : (A:Set)(P:A->Set)(H:(sigS A P))(P (projS1 A P H)) *) + Definition projS2 : (x:(sigS A P))(P (projS1 x)) := [x:(sigS A P)]<[x:(sigS A P)](P (projS1 x))> Cases x of (existS _ h) => h end. @@ -194,10 +194,10 @@ Section projections_sigT. Variable A:Type. Variable P:A->Type. - Definition projT1 (* : (A:Type)(P:A->Type)(sigT A P) -> A *) + Definition projT1 : (sigT A P) -> A := [H:(sigT A P)]Cases H of (existT x _) => x end. - Definition projT2 (* : (A:Type)(P:A->Type)(p:(sigT A P))(P (projT1 A P p)) *) + Definition projT2 : (x:(sigT A P))(P (projT1 x)) := [H:(sigT A P)]<[H:(sigT A P)](P (projT1 H))> Cases H of (existT x h) => h end. |
