Debian Codegraph @

test-suite/success/Mod_strengthen.v

raw
1 Module Type Sub.
2 Axiom Refl1 : forall x : nat, x = x.
3 Axiom Refl2 : forall x : nat, x = x.
4 Axiom Refl3 : forall x : nat, x = x.
5 Inductive T : Set :=
6 A : T.
7 End Sub.
8
9 Module Type Main.
10 Declare Module M: Sub.
11 End Main.
12
13
14 Module A <: Main.
15 Module M <: Sub.
16 Lemma Refl1 : forall x : nat, x = x.
17 intros; reflexivity.
18 Qed.
19 Axiom Refl2 : forall x : nat, x = x.
20 Lemma Refl3 : forall x : nat, x = x.
21 intros; reflexivity.
22 Defined.
23 Inductive T : Set :=
24 A : T.
25 End M.
26 End A.
27
28
29
30 (* first test *)
31
32 Module F (S: Sub).
33 Module M := S.
34 End F.
35
36 Module B <: Main with Module M:=A.M := F A.M.
37
38
39
40 (* second test *)
41
42 Lemma r1 : (A.M.Refl1 = B.M.Refl1).
43 Proof.
44 reflexivity.
45 Qed.
46
47 Lemma r2 : (A.M.Refl2 = B.M.Refl2).
48 Proof.
49 reflexivity.
50 Qed.
51
52 Lemma r3 : (A.M.Refl3 = B.M.Refl3).
53 Proof.
54 reflexivity.
55 Qed.
56
57 Lemma t : (A.M.T = B.M.T).
58 Proof.
59 reflexivity.
60 Qed.
61
62 Lemma a : (A.M.A = B.M.A).
63 Proof.
64 reflexivity.
65 Qed.
66
67