Mercurial > hg > Papers > 2023 > soto-master
view Paper/src/agda-hoare-term.agda @ 32:4915eaa51ee0 default tip
Add front
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 23 Feb 2023 18:39:56 +0900 |
parents | a72446879486 |
children |
line wrap: on
line source
loopP' : {l : Level} {t : Set l} → Envc → (exit : Envc → t) → t loopP' record { c10 = c10 ; varn = zero ; vari = vari } exit = exit (record { c10 = c10 ; varn = zero ; vari = vari }) loopP' record { c10 = c10 ; varn = (suc varn₁) ; vari = vari } exit = whileLoopP' (record { c10 = c10 ; varn = (suc varn₁) ; vari = vari }) (λ env → loopP' (record { c10 = c10 ; varn = varn₁ ; vari = vari }) exit ) exit whileTestPCall' : (c10 : ℕ ) → Envc whileTestPCall' c10 = whileTestP' {_} {_} c10 (λ env → loopP' env (λ env → env)) -- whileTestP' 10 -- record { c10 = 10 ; varn = 0 ; vari = 10 }