Debian Codegraph @

test-suite/modules/Tescik.v

raw
1
2 Module Type ELEM.
3 Parameter A : Set.
4 Parameter x : A.
5 End ELEM.
6
7 Module Nat.
8 Definition A := nat.
9 Definition x := 0.
10 End Nat.
11
12 Module List (X: ELEM).
13 Inductive list : Set :=
14 | nil : list
15 | cons : X.A -> list -> list.
16
17 Definition head (l : list) := match l with
18 | nil => X.x
19 | cons x _ => x
20 end.
21
22 Definition singl (x : X.A) := cons x nil.
23
24 Lemma head_singl : forall x : X.A, head (singl x) = x.
25 auto.
26 Qed.
27
28 End List.
29
30 Module N := List Nat.