aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories7/Init/Notations.v
blob: 2e9e1692d32c7106bbb950f7a638b0ee6a5f077f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
(***********************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team    *)
(* <O___,, *        INRIA-Rocquencourt  &  LRI-CNRS-Orsay              *)
(*   \VV/  *************************************************************)
(*    //   *      This file is distributed under the terms of the      *)
(*         *       GNU Lesser General Public License Version 2.1       *)
(***********************************************************************)

(*i $Id$ i*)

(** These are the notations whose level and associativity is imposed by Coq *)

(** Notations for logical connectives *)

Uninterpreted Notation "x <-> y" (at level 8, right associativity)
  V8only (at level 95, no associativity).
Uninterpreted Notation "x /\ y" (at level 6, right associativity) 
  V8only (at level 80, right associativity).
Uninterpreted Notation "x \/ y" (at level 7, right associativity)
  V8only (at level 85, right associativity).
Uninterpreted Notation "~ x" (at level 5, right associativity)
  V8only (at level 75, right associativity).

(** Notations for equality and inequalities *)

Uninterpreted Notation "x = y  :> T" 
  (at level 5, y at next level, no associativity).
Uninterpreted Notation "x = y"
  (at level 5, no associativity).
Uninterpreted Notation "x = y = z"
  (at level 5, no associativity, y at next level).

Uninterpreted Notation "x <> y  :> T" 
  (at level 5, y at next level, no associativity).
Uninterpreted Notation "x <> y"
  (at level 5, no associativity).

Uninterpreted V8Notation "x <= y" (at level 70, no associativity).
Uninterpreted V8Notation "x < y" (at level 70, no associativity).
Uninterpreted V8Notation "x >= y" (at level 70, no associativity).
Uninterpreted V8Notation "x > y" (at level 70, no associativity).

Uninterpreted V8Notation "x <= y <= z" (at level 70, y at next level).
Uninterpreted V8Notation "x <= y < z"  (at level 70, y at next level).
Uninterpreted V8Notation "x < y < z"   (at level 70, y at next level).
Uninterpreted V8Notation "x < y <= z"  (at level 70, y at next level).

(** Arithmetical notations (also used for type constructors) *)

Uninterpreted Notation "x + y" (at level 4, left associativity).
Uninterpreted V8Notation "x - y" (at level 50, left associativity).
Uninterpreted Notation "x * y" (at level 3, right associativity)
  V8only (at level 40, left associativity).
Uninterpreted V8Notation "x / y" (at level 40, left associativity).
Uninterpreted V8Notation "- x" (at level 35, right associativity).
Uninterpreted V8Notation "/ x" (at level 35, right associativity).
Uninterpreted V8Notation "x ^ y" (at level 30, right associativity).

(** Notations for pairs *)

Uninterpreted Notation "( x , y )" (at level 0)
  V8only "( x , y )" (at level 0).

Uninterpreted V8Notation "( x1 , x2 , x3 )" (at level 0).
Uninterpreted V8Notation "( x1 , x2 , x3 )" (at level 0).
Uninterpreted V8Notation "( x1 , x2 , x3 , x4 )" (at level 0).
Uninterpreted V8Notation "( x1 , x2 , x3 , x4 , x5 )" (at level 0).
Uninterpreted V8Notation "( x1 , x2 , x3 , x4 , x5 , x6 )" (at level 0).
Uninterpreted V8Notation "( x1 , x2 , x3 , x4 , x5 , x6 , x7 )" (at level 0).
Uninterpreted V8Notation "( x1 , x2 , x3 , x4 , x5 , x6 , x7 , x8 )" (at level 0).

(** Notation "{ x }" is reserved and has a special status as component
    of other notations; it is at level 1 to factor with {x:A|P} etc *)

Uninterpreted Notation "{ x }" (at level 1)
  V8only (at level 0, x at level 99).

(** Notations for sum-types *)

Uninterpreted Notation "{ A }  + { B }" (at level 4, left associativity)
  V8only (at level 50, left associativity).

Uninterpreted Notation "A + { B }" (at level 4, left associativity)
  V8only (at level 50, left associativity).

(** Notations for sigma-types or subsets *)

Uninterpreted Notation "{ x : A  |  P }" (at level 1)
  V8only (at level 0, x at level 99).
Uninterpreted Notation "{ x : A  |  P  &  Q }" (at level 1)
  V8only (at level 0, x at level 99).

Uninterpreted Notation "{ x : A  &  P }" (at level 1)
  V8only (at level 0, x at level 99).
Uninterpreted Notation "{ x : A  &  P  &  Q }" (at level 1)
  V8only (at level 0, x at level 99).

Delimits Scope type_scope with type.
Delimits Scope core_scope with core.

Open Scope core_scope.
Open Scope type_scope.