Mercurial > hg > Papers > 2020 > ryokka-master
view paper/src/agda-hoare-prog.agda.replaced @ 4:b5fffa8ae875
fix chapter hoare
author | ryokka |
---|---|
date | Wed, 29 Jan 2020 22:36:17 +0900 |
parents | |
children |
line wrap: on
line source
program : Comm program = Seq ( PComm (@$\lambda$@ env @$\rightarrow$@ record env {varn = 10})) $ Seq ( PComm (@$\lambda$@ env @$\rightarrow$@ record env {vari = 0})) $ While (@$\lambda$@ env @$\rightarrow$@ lt zero (varn env ) ) (Seq (PComm (@$\lambda$@ env @$\rightarrow$@ record env {vari = ((vari env) + 1)} )) $ PComm (@$\lambda$@ env @$\rightarrow$@ record env {varn = ((varn env) - 1)} ))