Mercurial > hg > Papers > 2021 > soto-thesis
view paper/src/agda-hoare-term.agda.replaced @ 4:bf1f62556b81
add while_test_init_imple
author | soto |
---|---|
date | Thu, 11 Feb 2021 17:03:31 +0900 |
parents | 959f4b34d6f4 |
children |
line wrap: on
line source
loopP' : {l : Level} {t : Set l} @$\rightarrow$@ Envc @$\rightarrow$@ (exit : Envc @$\rightarrow$@ t) @$\rightarrow$@ 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@$\_{1}$@) ; vari = vari } exit = whileLoopP' (record { c10 = c10 ; varn = (suc varn@$\_{1}$@) ; vari = vari }) (@$\lambda$@ env @$\rightarrow$@ loopP' (record { c10 = c10 ; varn = varn@$\_{1}$@ ; vari = vari }) exit ) exit whileTestPCall' : (c10 : @$\mathbb{N}$@ ) @$\rightarrow$@ Envc whileTestPCall' c10 = whileTestP' {_} {_} c10 (@$\lambda$@ env @$\rightarrow$@ loopP' env (@$\lambda$@ env @$\rightarrow$@ env)) -- whileTestP' 10 -- record { c10 = 10 ; varn = 0 ; vari = 10 }