TPTP Examples
This commit is contained in:
commit
2b3a0ef47c
13 changed files with 289 additions and 0 deletions
22
scripts/e_graph.sh
Executable file
22
scripts/e_graph.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# ProofGraph Output via E Prover
|
||||
|
||||
show_usage() {
|
||||
echo "Usage: e_graph [problem_file]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check argument count
|
||||
if [ "$#" -ne 1 ]; then
|
||||
show_usage
|
||||
fi
|
||||
|
||||
# Use E Prover to produce a proof graph via GraphViz dot format
|
||||
eprover --proof-graph=1 -l 0 "$1" > example_proofgraph.dot
|
||||
|
||||
# Use GraphVis to create a postscript file from the dot format
|
||||
dot -Tps example_proofgraph.dot -o proof_graph.ps
|
||||
|
||||
# Cleanup
|
||||
rm e.dot
|
17
scripts/vampire_ce.sh
Executable file
17
scripts/vampire_ce.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Consequence Elimination via Vampire
|
||||
|
||||
show_usage() {
|
||||
echo "Usage: vampire_ce [problem_file]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check argument count
|
||||
if [ "$#" -ne 1 ]; then
|
||||
show_usage
|
||||
fi
|
||||
|
||||
# Note: Disables avatar mode (av) which uses a Z3 solver.
|
||||
|
||||
vampire -av off --mode consequence_elimination "$1"
|
17
scripts/vampire_qa.sh
Executable file
17
scripts/vampire_qa.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Question Answering using Vampire
|
||||
|
||||
show_usage() {
|
||||
echo "Usage: vampire_qa [problem_file]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check argument count
|
||||
if [ "$#" -ne 1 ]; then
|
||||
show_usage
|
||||
fi
|
||||
|
||||
# Note: Disables avatar mode (av) which uses a Z3 solver.
|
||||
|
||||
vampire -av off -qa answer_literal "$1"
|
Loading…
Add table
Add a link
Reference in a new issue