- Haskell compiler GHC. The Glorious Glasgow Haskell Compilation System, version 9.6.4. E.g., from https://www.haskell.org/ghcup/
- Z3 prover, from https://github.com/Z3Prover/z3 (and optionally CVC5)
- Stack from https://www.stackage.org
stack init
stack build
Run ghci on the project folder with
stack repl
On ghci, load an example file in ghci, so that you can use the functions inside it directly.
ghci>:l ExampleCherylsBirthday
--------------------------------
---------------------------------
-- >>> cherylsBirthday
-- Falsifiable. Counter-example:
-- month = 7 :: Integer
-- day = 16 :: Integer
----------------------------------
-- >>> cherylsBirthdaySat
-- Satisfiable. Model:
-- month = 7 :: Integer
-- day = 16 :: Integer
---------------------------------
Haddock generated documentation can be accessed at doc/index.html
Rajaona, F., Boureanu, I., Malvone, V., Belardinelli, F. (2023). Program Semantics and Verification Technique for AI-Centred Programs. In: Chechik, M., Katoen, JP., Leucker, M. (eds) Formal Methods. FM 2023. Lecture Notes in Computer Science, vol 14000. Springer, Cham. https://doi.org/10.1007/978-3-031-27481-7_27