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

« back to all changes in this revision

Viewing changes to test-suite/success/destruct.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
(* Submitted by Robert Schneck *)
 
2
 
 
3
Parameter A B C D : Prop.
 
4
Axiom X : A -> B -> C /\ D.
 
5
 
 
6
Lemma foo : A -> B -> C.
 
7
Proof.
 
8
intros. 
 
9
destruct X. (* Should find axiom X and should handle arguments of X *)
 
10
assumption.
 
11
assumption.
 
12
assumption.
 
13
Qed.
 
14
 
 
15
(* Simplification of bug 711 *)
 
16
 
 
17
Parameter f : true = false.
 
18
Goal let p := f in True.
 
19
intro p.
 
20
set (b := true) in *.
 
21
(* Check that it doesn't fail with an anomaly *)
 
22
(* Ultimately, adapt destruct to make it succeeding *)
 
23
try destruct b.
 
24
Abort.
 
25
 
 
26
(* Used to fail with error "n is used in conclusion" before revision 9447 *)
 
27
 
 
28
Goal forall n, n = S n.
 
29
induction S.
 
30
Abort.
 
31
 
 
32
(* Check that elimination with remaining evars do not raise an bad
 
33
   error message *)
 
34
 
 
35
Theorem Refl : forall P, P <-> P. tauto. Qed.
 
36
Goal True.
 
37
case Refl || ecase Refl.
 
38
Abort.
 
39
 
 
40
 
 
41
(* Submitted by B. Baydemir (bug #1882) *)
 
42
 
 
43
Require Import List.
 
44
 
 
45
Definition alist R := list (nat * R)%type.
 
46
 
 
47
Section Properties.
 
48
  Variables A : Type.
 
49
  Variables a : A.
 
50
  Variables E : alist A.
 
51
 
 
52
  Lemma silly : E = E.
 
53
  Proof.
 
54
    clear. induction E.  (* this fails. *)
 
55
  Abort.
 
56
 
 
57
End Properties.