Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
compilation Add .S targets to examples compilation Holmakefile Dec 17, 2018
Holmakefile Clean more Holmakefiles Dec 14, 2018
README.md Add readmePrefix for examples/compilation Dec 16, 2018
array_searchProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
catProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
diffProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
diffScript.sml Clean up after store_thms with two different names Dec 3, 2018
doubleProgScript.sml Update for ref --> Ref Jan 15, 2019
echoProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
grepProgScript.sml Remove redundant EqualityType proofs. Dec 10, 2018
helloErrProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
helloProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
insertSortProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
iocatProgScript.sml Fix a proof in iocatProg Dec 16, 2018
lcsScript.sml Fix lcsScript Dec 4, 2018
patchProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
queueProgScript.sml Update for ref --> Ref Jan 15, 2019
quicksortProgScript.sml Replace Q.store_thm and store_thm with Theorem Dec 3, 2018
readmePrefix Update README for examples directory Sep 28, 2017
sortProgScript.sml Fix a proof in sortProg Dec 16, 2018
splitwordsScript.sml Symlink wordcount example into examples directory Oct 28, 2017
stackProgScript.sml Update for ref --> Ref Jan 15, 2019
wordcountProgScript.sml Symlink wordcount example into examples directory Oct 28, 2017

README.md

Examples of verified programs built using CakeML infrastructure.

Larger examples (like the CakeML compiler and Candle theorem prover) can be found in their own top-level directories.

array_searchProgScript.sml: An example based on searching an array.

catProgScript.sml: cat program example: concatenate and print lines from files.

compilation: Compilation of the CakeML examples to different architectures.

diffProgScript.sml: diff example: find a patch representing the difference between two files.

diffScript.sml: Implementation and verification of diff and patch algorithms

doubleProgScript.sml: Examples on the topic of doubling a number.

echoProgScript.sml: echo program example: print the command line arguments.

grepProgScript.sml: grep example: search for file lines matching a regular expression.

helloErrProgScript.sml: Hello World on standard error.

helloProgScript.sml: Hello World example, printing to standard output.

insertSortProgScript.sml: In-place insertion sort on a polymorphic array.

iocatProgScript.sml: Faster cat: process 2048 chars at a time.

lcsScript.sml: Verification of longest common subsequence algorithms.

patchProgScript.sml: patch example: apply a patch to a file.

queueProgScript.sml: An example of a queue data structure implemented using CakeML arrays, verified using CF.

quicksortProgScript.sml: In-place quick sort on a polymorphic array.

sortProgScript.sml: Program to sort the lines in a file, built on top of the quick sort example.

splitwordsScript.sml: A high-level specification of words and frequencies

stackProgScript.sml: An example of a stack data structure implemented using CakeML arrays, verified using CF.

wordcountProgScript.sml: Simple wordcount program, to demonstrate use of CF.