lets-prove-leftpad icon indicating copy to clipboard operation
lets-prove-leftpad copied to clipboard

ATS example

Open NOTtheMessiah opened this issue 7 years ago • 1 comments

An example of using refinement types and dependent types to write a padded string in ATS described below:

http://blog.vmchale.com/article/practical-ats

More about ATS: https://en.wikipedia.org/wiki/ATS_(programming_language)

NOTtheMessiah avatar Jun 27 '18 14:06 NOTtheMessiah

That example doesn't match the spec, and doesn't formally prove any properties on its output. This looks closer but I don't know enough ATS to evaluate it. Someone with ATS expertise will have to make a PR with their writeup.

hwayne avatar Jun 28 '18 21:06 hwayne