Debian Codegraph @

test-suite/success/mutual_record.v

raw
1 Module M0.
2
3 Inductive foo (A : Type) := Foo {
4 foo0 : option (bar A);
5 foo1 : nat;
6 foo2 := foo1 = 0;
7 foo3 : foo2;
8 }
9
10 with bar (A : Type) := Bar {
11 bar0 : A;
12 bar1 := 0;
13 bar2 : bar1 = 0;
14 bar3 : nat -> foo A;
15 }.
16
17 End M0.
18
19 Module M1.
20
21 Set Primitive Projections.
22
23 Inductive foo (A : Type) := Foo {
24 foo0 : option (bar A);
25 foo1 : nat;
26 foo2 := foo1 = 0;
27 foo3 : foo2;
28 }
29
30 with bar (A : Type) := Bar {
31 bar0 : A;
32 bar1 := 0;
33 bar2 : bar1 = 0;
34 bar3 : nat -> foo A;
35 }.
36
37 End M1.
38
39 Module M2.
40
41 Set Primitive Projections.
42
43 CoInductive foo (A : Type) := Foo {
44 foo0 : option (bar A);
45 foo1 : nat;
46 foo2 := foo1 = 0;
47 foo3 : foo2;
48 }
49
50 with bar (A : Type) := Bar {
51 bar0 : A;
52 bar1 := 0;
53 bar2 : bar1 = 0;
54 bar3 : nat -> foo A;
55 }.
56
57 End M2.