This repository provides the server for ProveEverywhere.
You can also use this as a coqtop server.
This is written in Haskell, so cabal is required in order to install.
$ git clone git://github.com/prove-everywhere/server.git
$ cd server
$ cabal install
or simply,
$ cabal install prove-everywhere-server
See: prove-everywhere-server --help
This API returns coqtop list.
nothing to input
[{
"last_modified": "2014-09-13T04:49:55.023Z",
"state": {
"current_theorem": "Coq",
"whole_state_number": 2,
"theorem_stack": [],
"theorem_state_number": 0
},
"id": 0
}, {
"last_modified": "2014-09-13T04:49:57.726Z",
"state": {
"current_theorem": "Coq",
"whole_state_number": 2,
"theorem_stack": [],
"theorem_state_number": 0
},
"id": 1
}]
This API starts new coqtop process and returns initial information.
nothing to input
{
"state": {
"current_theorem": "Coq",
"whole_state_number": 2,
"theorem_stack": [],
"theorem_state_number": 0
},
"output": "Welcome to Coq 8.4pl4 (June 2014)",
"id": 2
}
This API sends command to the coqtop and returns output from the coqtop.
{
"command": "Require Import ssrbool."
}
{
"remaining": 0,
"state": {
"current_theorem": "Coq",
"whole_state_number": 3,
"theorem_stack": [0],
"theorem_state_number": 0
},
"error_output": null,
"last_output": {
"output": "Small Scale Reflection version 1.5 loaded. Copyright 2005-2012 Microsoft Corporation and INRIA. Distributed under the terms of the CeCILL-B license. [Loading ML file ssreflect.cmxs ... done] Ambiguous paths: [pred_of_mem_pred; sort_of_simpl_pred] : mem_pred >-> pred_sort",
"type": "info"
},
"id": 0,
"succeeded": 1
}
This API kills the coqtop process.
nothing to input
{}