Skip to content

Commit

Permalink
[ README ] changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto committed Feb 20, 2017
1 parent bd141c2 commit 5777efd
Showing 1 changed file with 64 additions and 59 deletions.
123 changes: 64 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# OnlineATPs [![Build Status](https://travis-ci.org/jonaprieto/online-atps.svg?branch=master)](https://travis-ci.org/jonaprieto/online-atps)

OnlineATPs is a command-line client for
[TPTP World](http://www.cs.miami.edu/~tptp/cgi-bin/SystemOnTPTP)
that allows us to take advantage of using
[ATP](http://www.cs.miami.edu/~tptp/OverviewOfATP.html)s without install any of them.
[TPTP World](http://www.cs.miami.edu/~tptp/cgi-bin/SystemOnTPTP).
We can use an online [ATP](http://www.cs.miami.edu/~tptp/OverviewOfATP.html)
as it would be running locally. Indeed, SystemOnTPTP has available more than
forty automatic theorem provers and we take avantage of all.


#### Requirements

* OnlineATPs has been built and tested using [GHC](https://www.haskell.org/ghc/) 7.6.3, 7.8.4, 7.10.3, and 8.0.2. Check your version:
* OnlineATPs has been built and tested using [GHC](https://www.haskell.org/ghc/) 7.6.3, 7.8.4, 7.10.3, and 8.0.2. Please, check your version:

````bash
$ ghc --version
````

* Please install the last version of [Cabal](https://www.haskell.org/cabal/). OnlineATPs has been installed successfully using `cabal-1.22` and `cabal-1.24`
* Use the last version of [Cabal](https://www.haskell.org/cabal/). OnlineATPs has been installed successfully using `cabal-1.22` and `cabal-1.24`.

````bash
$ cabal update
Expand All @@ -31,10 +33,63 @@ $ cabal install

#### Usage

To take advantage of OnlineATPs, visit first
[SystemOnTPTP](http://www.cs.miami.edu/~tptp/cgi-bin/SystemOnTPTP) to understand what is about and see all
its options. Briefly, the work flow using OnlineATPs consists mainly in provide a problem in
[TSTP](http://www.cs.miami.edu/~tptp/TSTP/) format and at least one ATP name, then executing it, we get an output pretty similar to the answer given by a local ATP. Let see.
* To take advantage of OnlineATPs, we recommend check first
[SystemOnTPTP](http://www.cs.miami.edu/~tptp/cgi-bin/SystemOnTPTP) to see what is about.

* The user provide a problem formatted using
[TPTP](http://www.cs.miami.edu/~tptp/TPTP/QuickGuide/) syntax. Also, specify at least one ATP name. Then, execute online-atps to get an output, as we can see this output is pretty similar to the answer given by a local ATP but more verbose. Let see.

* For instance, a TPTP problem looks similar to:

````bash
$ cat basic.tptp
fof(a1, axiom, a).
fof(a2, axiom, b).
fof(a3, axiom, (a & b) => z).
fof(a4, conjecture, z).

````


* Using the option `--atp` we specify the ATP. For instance, using `--atp=vampire` we specify that we are going to use [Vampire](http://www.vprover.org) ATP against the problem.


```
$ online-atps basic.tptp --atp=vampire
% SZS start RequiredInformation
% Congratulations - you have become a registered power user of SystemOnTPTP,
at IP address 138.121.12.14.
% Please consider donating to the TPTP project - see www.tptp.org for
details.
% When you donate this message will disappear.
% If you do not donate a random delay might be added to your processing time.
% SZS end RequiredInformation
Vampire---4.1 system information being retrieved
Vampire---4.1's non-default parameters being retrieved
-t none
-f tptp:raw
-x vampire --mode casc -m 90000 -t %d %s
Vampire---4.1 being checked for execution
Vampire---4.1 checking time limit 240
Vampire---4.1 checking problem name /tmp/SystemOnTPTPFormReply38743/
SOT_Xry401
...
% ------------------------------
% Version: Vampire 4.1 for CASC J8 Entry
% Termination reason: Refutation

% Memory used [KB]: 511
% Time elapsed: 0.043 s
% ------------------------------
% ------------------------------
% Success in time 0.045 s

% END OF SYSTEM OUTPUT
RESULT: SOT_Xry401 - Vampire---4.1 says Theorem - CPU = 0.00 WC = 0.04
OUTPUT: SOT_Xry401 - Vampire---4.1 says Refutation - CPU = 0.00 WC = 0.04

```


* See all ATPs available. Run this command:

Expand All @@ -48,56 +103,6 @@ $ online-atps --list-atps
$ online-atps --help
````

* We can check if a problem (written using [TSTP Syntax](http://www.cs.miami.edu/~tptp/TPTP/SyntaxBNF.html) is a theorem or not. For instance, we have a problem, in this case a conjecture, like this one:

````bash
$ cat basic.tptp
fof(a1, axiom, a).
fof(a2, axiom, b).
fof(a3, axiom, (a & b) => z).
fof(a4, conjecture, z).

````


Using the option `--atp` we are able to use a ATP by his name. For instance, using `--atp=vampire` we specify that we are going to use [Vampire](http://www.vprover.org) ATP against the problem. Then, we should run in our shell something like:

```
$ online-atps basic.tptp --atp=vampire
% SZS start RequiredInformation
% Congratulations - you have become a registered power user of SystemOnTPTP,
at IP address 138.121.12.14.
% Please consider donating to the TPTP project - see www.tptp.org for
details.
% When you donate this message will disappear.
% If you do not donate a random delay might be added to your processing time.
% SZS end RequiredInformation
Vampire---4.1 system information being retrieved
Vampire---4.1's non-default parameters being retrieved
-t none
-f tptp:raw
-x vampire --mode casc -m 90000 -t %d %s
Vampire---4.1 being checked for execution
Vampire---4.1 checking time limit 240
Vampire---4.1 checking problem name /tmp/SystemOnTPTPFormReply38743/
SOT_Xry401
...
% ------------------------------
% Version: Vampire 4.1 for CASC J8 Entry
% Termination reason: Refutation
% Memory used [KB]: 511
% Time elapsed: 0.043 s
% ------------------------------
% ------------------------------
% Success in time 0.045 s
% END OF SYSTEM OUTPUT
RESULT: SOT_Xry401 - Vampire---4.1 says Theorem - CPU = 0.00 WC = 0.04
OUTPUT: SOT_Xry401 - Vampire---4.1 says Refutation - CPU = 0.00 WC = 0.04
```

* OnlineATPs accepts a name for a ATP using the prefix "online-" or not (e.g "vampire" or "online-vampire")

````bash
Expand Down

0 comments on commit 5777efd

Please sign in to comment.