Fiat
Benjamin Delaware, Clément Pit-Claudel, Jason Gross et al. · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 2014
We present Fiat, a library for the Coq proof assistant supporting refinement of declarative specifications into efficient functional programs with a high degree of automation. Each refinement process leaves a proof trail, checkable by the normal Coq kernel, justifying its soundness. We focus on the synthesis of abstract data types that package methods with private data. We demonstrate the utility of our framework by applying it to the synthesis of query structures -- abstract data types with SQL-like query and insert operations. Fiat includes a library for writing specifications of query structures in SQL-inspired notation, expressing operations over relations (tables) in terms of mathematical sets. This library includes a suite of tactics for automating the refinement of specifications into efficient, correct-by-construction OCaml code. Using these tactics, a programmer can generate such an implementation completely automatically by only specifying the equivalent of SQL indexes, data structures capturing useful views of the abstract data. Throughout we speculate on the new programming modularity possibilities enabled by an automated refinement system with proved-correct rules.
Cited by 87 works. doi:10.1145/2676726.2677006
Authors
References
- Proof of correctness of data representations
- A constructive approach to the problem of program correctness
- Programming with abstract data types
- Proof of Correctness of Data Representations
- Comprehending monads
- Comprehension syntax
- Finite Differencing of Computable Expressions
- Scalable Software Libraries
- Data refinement refined resume
- Program synthesis by sketching