view Paper/src/while_loop_verif/init_cg.agda.replaced @ 1:a72446879486

Init paper
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Thu, 12 Jan 2023 20:28:50 +0900
parents
children c28e8156a37b
line wrap: on
line source

whileTest' : {l : Level} {t : Set l}  !$\rightarrow$! {c10 :  !$\mathbb{N}$! } !$\rightarrow$! (Code : (env : Env)  !$\rightarrow$! ((vari env) !$\equiv$! 0) /\ ((varn env) !$\equiv$! c10) !$\rightarrow$! t) !$\rightarrow$! t
whileTest' {_} {_} {c10} next = next env proof2
  where
    env : Env
    env = record {vari = 0 ; varn = c10}
    proof2 : ((vari env) !$\equiv$! 0) /\ ((varn env) !$\equiv$! c10) -- PostCondition
    proof2 = record {pi1 = refl ; pi2 = refl}