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

« back to all changes in this revision

Viewing changes to test-suite/success/import_mod.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
 
 
2
Definition p := 0.
 
3
Definition m := 0.
 
4
 
 
5
Module Test_Import.
 
6
  Module P.
 
7
    Definition p := 1.
 
8
  End P.
 
9
 
 
10
  Module M.
 
11
    Import P.
 
12
    Definition m := p.
 
13
  End M.
 
14
 
 
15
  Module N.
 
16
    Import M.
 
17
 
 
18
    Lemma th0 : p = 0.
 
19
      reflexivity.
 
20
    Qed.
 
21
 
 
22
  End N.
 
23
 
 
24
 
 
25
  (* M and P should be closed *)
 
26
  Lemma th1 : m = 0 /\ p = 0.
 
27
    split; reflexivity.
 
28
  Qed.
 
29
 
 
30
 
 
31
  Import N.
 
32
 
 
33
  (* M and P should still be closed *)
 
34
  Lemma th2 : m = 0 /\ p = 0.
 
35
    split; reflexivity.
 
36
  Qed.
 
37
End Test_Import.
 
38
 
 
39
 
 
40
(********************************************************************)
 
41
 
 
42
 
 
43
Module Test_Export.
 
44
  Module P.
 
45
    Definition p := 1.
 
46
  End P.
 
47
 
 
48
  Module M.
 
49
    Export P.
 
50
    Definition m := p.
 
51
  End M.
 
52
 
 
53
  Module N.
 
54
    Export M.
 
55
 
 
56
    Lemma th0 : p = 1.
 
57
      reflexivity.
 
58
    Qed.
 
59
 
 
60
  End N.
 
61
 
 
62
 
 
63
  (* M and P should be closed *)
 
64
  Lemma th1 : m = 0 /\ p = 0.
 
65
    split; reflexivity.
 
66
  Qed.
 
67
 
 
68
 
 
69
  Import N.
 
70
 
 
71
  (* M and P should now be opened *)
 
72
  Lemma th2 : m = 1 /\ p = 1.
 
73
    split; reflexivity.
 
74
  Qed.
 
75
End Test_Export.