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

« back to all changes in this revision

Viewing changes to test-suite/success/Discriminate.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
(* Check the behaviour of Discriminate *)
 
2
 
 
3
(* Check that Discriminate tries Intro until *)
 
4
 
 
5
Lemma l1 : 0 = 1 -> False.   
 
6
 discriminate 1.
 
7
Qed.
 
8
 
 
9
Lemma l2 : forall H : 0 = 1, H = H.   
 
10
 discriminate H.
 
11
Qed.
 
12
 
 
13
(* Check the variants of discriminate *)
 
14
 
 
15
Goal O = S O -> True.
 
16
discriminate 1.
 
17
Undo.
 
18
intros.
 
19
discriminate H.
 
20
Undo.
 
21
Ltac g x := discriminate x.
 
22
g H.
 
23
Abort.
 
24
 
 
25
Goal (forall x y : nat, x = y -> x = S y) -> True.
 
26
intros.
 
27
try discriminate (H O) || exact I.
 
28
Qed.
 
29
 
 
30
Goal (forall x y : nat, x = y -> x = S y) -> True.
 
31
intros.
 
32
ediscriminate (H O).
 
33
instantiate (1:=O).
 
34
Abort.