diff options
author | Nadia Polikarpova <nadia.polikarpova@gmail.com> | 2012-09-23 14:13:34 +0200 |
---|---|---|
committer | Nadia Polikarpova <nadia.polikarpova@gmail.com> | 2012-09-23 14:13:34 +0200 |
commit | ef2e49fe3617331acb73e5fe10a2da2bc3e8a02d (patch) | |
tree | bc1479632c9c006c7ef932dc3c2ad2536314a505 /Test/dafny2 | |
parent | 0f2e84ea7799c04f9b079398989fd503ae72aa52 (diff) |
Use expression splitting for checking calculation steps
Diffstat (limited to 'Test/dafny2')
-rw-r--r-- | Test/dafny2/Calculations.dfy | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Test/dafny2/Calculations.dfy b/Test/dafny2/Calculations.dfy index 1ddd8603..8c13457b 100644 --- a/Test/dafny2/Calculations.dfy +++ b/Test/dafny2/Calculations.dfy @@ -80,10 +80,7 @@ ghost method Lemma_Revacc_calc(xs: List, ys: List) concat(revacc(xrest, Cons(x, Nil)), ys);
{ Lemma_RevCatCommute(); } // forall xs,ys,zs :: revacc(xs, concat(ys, zs)) == concat(revacc(xs, ys), zs)
revacc(xrest, concat(Cons(x, Nil), ys));
- {
- assert forall g, gs :: concat(Cons(g, Nil), gs) == Cons(g, gs);
- assert concat(Cons(x, Nil), ys) == Cons(x, ys);
- }
+ // def. concat (x2)
revacc(xrest, Cons(x, ys));
// def. revacc
revacc(xs, ys);
|