Created
September 11, 2015 12:17
-
-
Save master-q/534a2db4fbe427cf8e78 to your computer and use it in GitHub Desktop.
fun_signature.sats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* Normal Function *) | |
fun{a:vt0p} | |
list_vt_reverse_append | |
{m,n:int} .<m>. ( | |
list_vt (INV(a), m), list_vt (a, n) | |
) : list_vt (a, m+n) | |
(* Mixed Function *) | |
fun{a:vt0p} | |
gflist_vt_revapp | |
{xs1,xs2:ilist} .<xs1>. ( | |
xs1: gflist_vt (INV(a), xs1), xs2: gflist_vt (a, xs2) | |
) : [res:ilist] (REVAPP (xs1, xs2, res) | gflist_vt (a, res)) | |
(* Proof Function *) | |
prfun | |
lemma_revapp_length | |
{xs,ys,zs:ilist}{m,n:int} .<xs>. ( | |
pf: REVAPP (xs, ys, zs), pf1len: LENGTH (xs, m), pf2len: LENGTH (ys, n) | |
) : LENGTH (zs, m+n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment