Skip to content

Mukundks2004/leftpad

Repository files navigation

Leftpad

Code to prove correctness of the leftpad program

Progression

  • Naturals (for measuring the length of lists)

    • Addition
    • Subtraction
  • Booleans (for equality- two terms of the same type are either equal or not)

    • Logical AND
  • Equality typeclass (our leftpad will be polymorphic so the generic parameter must be an instance of the equality typeclass to be comparable)

  • List (duh)

    • isPrefixOf
    • isSuffixOf
    • length
    • repeat
    • toString

About

Proving correctness of leftpad

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages