TPTP Examples

This commit is contained in:
Brandon Rozek 2023-03-27 11:01:47 -04:00
commit 2b3a0ef47c
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
13 changed files with 289 additions and 0 deletions

22
scripts/e_graph.sh Executable file
View 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
View 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
View 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"