Coq4j: A Neo4j database for Coq dependency graphs.
The Coq Proof Assistant is a widely used system
for interactively developing formal proofs in a logic based on dependent types.
The existence of large bodies of formalised computer science and mathematics
gives rise to the opportunity to treat these libraries as objects of study in themselves.
That is, we can explore the structure of mathematical theories using the same kinds of
algorithms we might use to explore a social network graph.
One example is coq-dpdgraph,
a tool that generates directed graphs to capture the dependencies between
coq objects (definitions, lemmas, proofs).
Currently this can be used to generate static graphs that can be inspected with
This is very useful, but as theories get large it quickly becomes difficult to
gain useful insights from enormous complex graphs.
The Coq4j project aims to go a step further.
This project will develop code to translate any graph generated by coq-dpdgraph to
a Neo4j database.
We can then use the cypher query language to interactively explore the structure
of the associated theory.
We will test this approach on a number of existing coq theories
and develop a library of cypher queries that are especially tailored
to exploring the structure of mathematical theories.
We might call this empirical meta-mathematics.
experiment will be an attempt to apply this framework to the formalisation of the
Odd Order Theorem,
a tour de force coq development comprised of over 15K definitions and 4K theorems.
No previous knowledge of Coq, Neo4j, or group theory will be assumed.