aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Arith/Arith.v
blob: d5b4610a6110f1cbb5d77ab1694d16d4ae858c74 (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

(* $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" ]
.