Created
July 31, 2014 02:39
-
-
Save pscollins/bd821617b3596849623b to your computer and use it in GitHub Desktop.
This file contains 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
\local{ | |
\newcommand\recel{\nonterm{recaccess}} | |
}{ | |
Let | |
\[ | |
\ntHash\ntPosInt (\ntSExp) := \recel | |
\] | |
in the definitions that follow. | |
\local{ | |
\newcommand\recty{\indexedTerms} | |
\newcommand\posval{l} | |
\newcommand\resty{\term_{\posval}} | |
}{ | |
\[ | |
\typeRule{ | |
\curr \says \ntSExp \is \recty | |
}{ | |
\curr \says \ntHash\posval (\ntSExp) \is \resty | |
} | |
\] | |
} | |
\local{ | |
\newcommand\elty{\term} | |
\newcommand\inputty{\elty} | |
\newcommand\returnty{()} | |
}{ | |
\[ | |
\typeRule{ | |
\curr \says \recel \is \elty \andAlso | |
\curr \says \ntSExp \is \inputty | |
}{ | |
\curr \says \recel := \ntSExp \is \returnty | |
} | |
\] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment