comparison Paper/src/agda-hoare-term.agda @ 1:a72446879486

Init paper
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Thu, 12 Jan 2023 20:28:50 +0900
parents
children
comparison
equal deleted inserted replaced
0:8df537cb6a18 1:a72446879486
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 }