blob: 7917f1582826c2ab3e53de0f1fe86138ae5f22dc (
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
|
(***********************************************************************)
(* 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 *)
(***********************************************************************)
(* $Id$ *)
Require Export Le.
Require Export Lt.
Require Export Plus.
Require Export Gt.
Require Export Minus.
Require Export Mult.
Require Export Between.
Require Export Minus.
Axiom My_special_variable : nat -> nat.
Grammar nat number :=.
Grammar constr constr10 :=
natural_nat [ nat:number($c) ] -> [$c].
Grammar constr pattern :=
natural_pat [ nat:pat_number($c) ] -> [$c].
Syntax constr
level 0:
myspecialvariable [ My_special_variable ] -> ["S"];
level 10:
S [ (S $p) ] -> [$p:"nat_printer"]
| O [ O ] -> [ "0" ]
.
|