Abstract
We present a Coq library that allows for readily proving that a function is computable in polynomial time. It is based on quasi-interpretations that, in combination with termination ordering, provide a characterisation of the class FP of functions computable in polynomial time. At the heart of this formalisation is a proof of soundness and extensional completeness. Compared to the original paper proof, we had to fill a lot of not so trivial details that were left to the reader and fix a few glitches. To demonstrate the usability of our library, we apply it to the modular exponentiation.
Original language | English |
---|---|
Title of host publication | CPP 2018 - Proceedings of the 7th ACM SIGPLAN International Conference on Certified Programs and Proofs, Co-located with POPL 2018 |
Publisher | Association for Computing Machinery |
Publication date | 2018 |
Pages | 146-157 |
ISBN (Electronic) | 9781450355865 |
DOIs | |
Publication status | Published - 2018 |
Event | 7th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2018 - Los Angeles, United States Duration: 8 Jan 2018 → 9 Jan 2018 |
Conference
Conference | 7th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2018 |
---|---|
Country/Territory | United States |
City | Los Angeles |
Period | 08/01/2018 → 09/01/2018 |
Sponsor | ACM SIGPLAN |
Keywords
- Coq formal proof
- Implicit complexity
- Polynomial time