Debian Codegraph @

test-suite/coqdoc/links.v

raw
1 (** Various checks for coqdoc
2
3 - symbols should not be inlined in string g
4 - links to both kinds of notations in a' should work to the right notation
5 - with utf8 option, forall must be unicode
6 - splitting between symbols and ident should be correct in a' and c
7 - ".." should be rendered correctly
8 *)
9
10 Definition a (b: nat) := b.
11
12 Definition f := forall C:Prop, C.
13
14 Notation "n ++ m" := (plus n m).
15
16 Notation "n ++ m" := (mult n m). (* redefinition *)
17
18 Notation "n ** m" := (plus n m) (at level 60).
19
20 Notation "n ▵ m" := (plus n m) (at level 60).
21
22 Notation "n '_' ++ 'x' m" := (plus n m) (at level 3).
23
24 Inductive eq (A:Type) (x:A) : A -> Prop := eq_refl : x = x :>A
25
26 where "x = y :> A" := (@eq A x y) : type_scope.
27
28 Definition eq0 := 0 = 0 :> nat.
29
30 Notation "( x # y ; .. ; z )" := (pair .. (pair x y) .. z).
31
32 Definition b_α := ((0#0;0) , (0 ** 0)).
33
34 Notation h := a.
35
36 Section test.
37
38 Variables b' b2: nat.
39
40 Notation "n + m" := (n ▵ m) : my_scope.
41
42 Delimit Scope my_scope with my.
43
44 Notation l := 0.
45
46 Definition α := (0 + l)%my.
47
48 Definition a' b := b'++0++b2 _ ++x b.
49
50 Definition c := {True}+{True}.
51
52 Definition d := (1+2)%nat.
53
54 Lemma e : nat + nat.
55 Admitted.
56
57 End test.
58
59 Section test2.
60
61 Variables b': nat.
62
63 Section test.
64
65 Variables b2: nat.
66
67 Definition a'' b := b' ++ O ++ b2 _ ++ x b + h 0.
68
69 End test.
70
71 End test2.
72
73 (** skip *)
74
75 (** skip *)
76
77 (** skip *)
78
79 (** skip *)
80
81 (** skip *)
82
83 (** skip *)
84
85 (** skip *)
86
87 (** skip *)
88
89 (** skip *)
90
91 (** skip *)
92
93 (** skip *)
94
95 (** skip *)
96
97 (** skip *)
98
99 (** skip *)
100