diff options
author | leino <unknown> | 2015-05-29 15:23:24 -0700 |
---|---|---|
committer | leino <unknown> | 2015-05-29 15:23:24 -0700 |
commit | 116e29290d21ce4bb805c4a8803c99a2161cf5ab (patch) | |
tree | d10337efe29f7a09971233304ddddc482b4fdc14 /Test/dafny4/NipkowKlein-chapter3.dfy | |
parent | 7b988b8b6826a0e808725ffde08f96b7a7cf614c (diff) |
Improvements to Nipkow and Klein test cases: Changed imap to map, removed need for Total
Diffstat (limited to 'Test/dafny4/NipkowKlein-chapter3.dfy')
-rw-r--r-- | Test/dafny4/NipkowKlein-chapter3.dfy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/dafny4/NipkowKlein-chapter3.dfy b/Test/dafny4/NipkowKlein-chapter3.dfy index 6572359a..ab45f536 100644 --- a/Test/dafny4/NipkowKlein-chapter3.dfy +++ b/Test/dafny4/NipkowKlein-chapter3.dfy @@ -18,7 +18,7 @@ function append(xs: List, ys: List): List // ----- arithmetic expressions -----
type vname = string // variable names
-datatype aexp = N(n: int) | V(x: vname) | Plus(0: aexp, 1: aexp) // arithmetic expressions
+datatype aexp = N(n: int) | V(vname) | Plus(aexp, aexp) // arithmetic expressions
type val = int
type state = vname -> val
@@ -133,7 +133,7 @@ lemma AsimpCorrect(a: aexp, s: state) // ----- boolean expressions -----
-datatype bexp = Bc(v: bool) | Not(op: bexp) | And(0: bexp, 1: bexp) | Less(a0: aexp, a1: aexp)
+datatype bexp = Bc(v: bool) | Not(bexp) | And(bexp, bexp) | Less(aexp, aexp)
function bval(b: bexp, s: state): bool
reads s.reads
|