An open API service indexing awesome lists of open source software.

https://github.com/thaliaarchi/bfcoq

Brainfuck compiler in Coq
https://github.com/thaliaarchi/bfcoq

Last synced: 6 months ago
JSON representation

Brainfuck compiler in Coq

Awesome Lists containing this project

README

          

# bfcoq

A formally verified Brainfuck compiler in Coq using Hoare logic.

## Stages

- [`Token`](Token.v): Flat lexical tokens
- [`AST`](AST.v): Inductive loops
- [`ComIR`](ComIR.v): Combined sequences of `>`, `<`, `+`, and `-`
- [`RelIR`](RelIR.v): Relative-positioned cell offsets

## Installation

bfcoq requires CompCert for its `byte` type. [Using opam](https://coq.inria.fr/opam-using.html),
make sure that Coq is installed, then install the CompCert package from the Coq
opam repository:

```sh
opam install coq
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-compcert
```