A #lang rosette
template for program verification and synthesis.
You can skip this section if you have already done it.
- Set your PATH environment variable so that you can use Racket command-line functions.
- Install
from-template
either from the DrRacket menu File | Package Manager or from the commandraco pkg install from-template
.
Run the command:
raco new rosette-template <destination-dir>
# if you omit `<destination-dir>`, the default is `./rosette-template`
The template contains many Rosette example files.
synth.rkt
: a sample program synthesizer (synthesis query) taken from Building a Program Synthesizer by James Bornholt.verify.rkt
: a sample program verifier (verification query).sudoku.rkt
: a sample Sudoku solver (angelic execution query)
Detailed description is given in each file.