Mercurial > hg > Papers > 2023 > soto-master
annotate Paper/src/cbc-hoare-loophelper.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 loopHelper : (n : ℕ) → (env : Envc ) → (eq : varn env ≡ n) → (seq : whileTestStateP s2 env) |
2 → loopPwP' n env (sym eq) seq (λ env₁ x → (vari env₁ ≡ c10 env₁)) | |
3 loopHelper zero env eq refl rewrite eq = refl | |
4 loopHelper (suc n) env refl refl = | |
5 loopHelper n (record { c10 = suc (n + vari env) ; varn = n ; vari = suc (vari env) }) refl (+-suc n (vari env)) |