]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/RELATIONAL/NPlus/defs.ma
matita 0.5.1 tagged
[helm.git] / matita / contribs / RELATIONAL / NPlus / defs.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15
16
17 include "datatypes/Nat.ma".
18
19 inductive NPlus (p:Nat): Nat \to Nat \to Prop \def
20    | nplus_zero_2: NPlus p zero p
21    | nplus_succ_2: \forall q, r. NPlus p q r \to NPlus p (succ q) (succ r).
22
23 (*CSC: the URI must disappear: there is a bug now *)
24 interpretation "natural plus predicate" 'rel_plus x y z = 
25    (cic:/matita/RELATIONAL/NPlus/defs/NPlus.ind#xpointer(1/1) x y z).
26
27 notation "hvbox(a break + b break == c)"
28   non associative with precedence 95
29 for @{ 'rel_plus $a $b $c}.