Debian Codegraph @

doc/examples/nnat-rwl.mod

raw
1 -- FILE: /home/diacon/LANG/Cafe/prog/nnat-rwl.mod
2 -- CONTENTS: RWL specification of non-deterministic natural numbers
3 -- featuring the use of the built-in semantic transition
4 -- predicate ==>
5 -- AUTHOR: Jose Meseguer with proof by Razvan Diaconescu
6 -- DIFFICULTY: **
7
8 mod! NNAT {
9 extending(NAT)
10
11 op _|_ : Nat Nat -> Nat {assoc}
12
13 vars M N : Nat
14
15 trans N | M => N .
16 trans N | M => M .
17 }
18
19 --> proof of 3 <= ( 4 | 4 | 5 )
20 red in NNAT : (3 <= ( 4 | 4 | 5 )) ==> true .
21
22 --
23 eof
24 --
25 $Id: nnat-rwl.mod,v 1.2 2010-07-30 04:20:08 sawada Exp $