annotate paper/src/cbc-hoare-loophelper.agda.replaced @ 3:959f4b34d6f4

add final thesis
author soto
date Tue, 09 Feb 2021 18:44:53 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
1 loopHelper : (n : @$\mathbb{N}$@) @$\rightarrow$@ (env : Envc ) @$\rightarrow$@ (eq : varn env @$\equiv$@ n) @$\rightarrow$@ (seq : whileTestStateP s2 env)
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
2 @$\rightarrow$@ loopPwP' n env (sym eq) seq (@$\lambda$@ env@$\_{1}$@ x @$\rightarrow$@ (vari env@$\_{1}$@ @$\equiv$@ c10 env@$\_{1}$@))
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
3 loopHelper zero env eq refl rewrite eq = refl
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
4 loopHelper (suc n) env refl refl =
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
5 loopHelper n (record { c10 = suc (n + vari env) ; varn = n ; vari = suc (vari env) }) refl (+-suc n (vari env))