aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Init/Logic_TypeSyntax.v
blob: ed915d1192d25e82be8c1a4f95f703c9864e1031 (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
(***********************************************************************)
(*  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*)

Require Logic_Type.

(** Symbolic notations for things in [Logic_type.v] *)

Notation "x == y"  := (eqT ? x y)       (at level 5, no associativity).
Notation "x === y" := (identityT ? x y) (at level 5, no associativity).

(* Order is important to give printing priority to fully typed ALL and EX *)

Notation AllT := (allT ?).
Notation "'ALLT' x : t | p" := (allT t [x:t]p) (at level 10, p at level 8).
Notation "'ALLT' x | p"     := (allT ? [x]p)   (at level 10, p at level 8).

Notation ExT  := (exT ?).
Notation "'EXT' x : t | p"  := (exT t [x:t]p)  (at level 10, p at level 8).
Notation "'EXT' x | p"      := (exT ? [x]p)    (at level 10, p at level 8).

Notation ExT2 := (exT2 ?).
Notation "'EXT' x : t | p & q" := (exT2 t [x:t]p [x:t]q)
  (at level 10, p, q at level 8).
Notation "'EXT' x | p & q"     := (exT2 ? [x]p [x]q)
  (at level 10, p, q at level 8).

(** Parsing only of things in [Logic_type.v] *)

Notation "< A > x == y"  := (eqT A x y)
   (A annot, at level 1, x at level 0, only parsing).

Notation "< A > x === y" := (identityT A x y)
   (A annot, at level 1, x at level 0, only parsing).