~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to test-suite/bugs/closed/shouldsucceed/2021.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* correct failure of injection/discriminate on types whose inductive
 
2
   status derives from the substitution of an argument *)
 
3
 
 
4
Inductive t : nat -> Type :=
 
5
| M : forall n: nat, nat -> t n.
 
6
 
 
7
Lemma eq_t : forall n n' m m',
 
8
   existT (fun B : Type => B) (t n) (M n m) =
 
9
   existT (fun B : Type => B) (t n') (M n' m') -> True.
 
10
Proof.
 
11
  intros.
 
12
  injection H.
 
13
  intro Ht.
 
14
  exact I.
 
15
Qed.
 
16
 
 
17
Lemma eq_t' : forall n n' : nat,
 
18
   existT (fun B : Type => B) (t n) (M n 0) =
 
19
   existT (fun B : Type => B) (t n') (M n' 1) -> True.
 
20
Proof.
 
21
  intros.
 
22
  discriminate H || exact I.
 
23
Qed.