Mercurial > hg > Papers > 2023 > soto-master
annotate Paper/src/agda-hoare-term.agda @ 28:423f59b098ac
Add svg
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 15 Feb 2023 17:18:23 +0900 |
parents | a72446879486 |
children |
rev | line source |
---|---|
1 | 1 loopP' : {l : Level} {t : Set l} → Envc → (exit : Envc → t) → t |
2 loopP' record { c10 = c10 ; varn = zero ; vari = vari } exit = | |
3 exit (record { c10 = c10 ; varn = zero ; vari = vari }) | |
4 loopP' record { c10 = c10 ; varn = (suc varn₁) ; vari = vari } exit = | |
5 whileLoopP' (record { c10 = c10 ; varn = (suc varn₁) ; vari = vari }) | |
6 (λ env → loopP' (record { c10 = c10 ; varn = varn₁ ; vari = vari }) exit ) exit | |
7 | |
8 whileTestPCall' : (c10 : ℕ ) → Envc | |
9 whileTestPCall' c10 = whileTestP' {_} {_} c10 (λ env → loopP' env (λ env → env)) | |
10 | |
11 -- whileTestP' 10 | |
12 -- record { c10 = 10 ; varn = 0 ; vari = 10 } |