Copyright | (c) Rainer Grabbe DFKI GmbH |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | unknown |
Safe Haskell | None |
Functions for parsing MathServ output into a MathServResponse structure.
Synopsis
- callMathServ :: MathServCall -> IO (Either String String)
- parseMathServOut :: Either String String -> IO (Either String MathServResponse)
- data MathServServices
- data MathServOperationTypes
- data MathServCall = MathServCall {
- mathServService :: MathServServices
- mathServOperation :: MathServOperationTypes
- problem :: String
- proverTimeLimit :: Int
- extraOptions :: Maybe String
- data MathServResponse = MathServResponse {
- foAtpResult :: Either String MWFoAtpResult
- timeResource :: MWTimeResource
- data MWFoAtpResult = MWFoAtpResult {
- proof :: MWFormalProof
- outputStr :: String
- systemStatus :: MWStatus
- systemStr :: String
- time :: MWTimeResource
- data MWFormalProof = TstpCnfRefutation {
- formalProof :: String
- proofOf :: MWProvingProblem
- calculus :: MWCalculus
- axioms :: String
- data MWStatus = MWStatus {
- solved :: Bool
- foAtpStatus :: FoAtpStatus
- data FoAtpStatus
- data SolvedStatus
- data UnsolvedStatus
- data MWCalculus
- data MWTimeResource = MWTimeResource {
- cpuTime :: TimeOfDay
- wallClockTime :: TimeOfDay
Documentation
:: MathServCall | needed data to do a MathServ call |
-> IO (Either String String) | Left (SOAP error) or Right (MathServ output or error message) |
Sends a problem in TPTP format to MathServ using a given time limit. Either MathServ output is returned or a simple error message (no XML).
:: Either String String | Left (SOAP error) or Right (MathServ output or error message) |
-> IO (Either String MathServResponse) | parsed rdf-objects in record |
Full parsing of RDF-objects returned by MathServ and putting the results into a MathServResponse data-structure.
data MathServServices Source #
MathServ services to select.
Broker | Broker service |
VampireService | Vampire service |
Instances
Show MathServServices Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MathServServices -> ShowS show :: MathServServices -> String showList :: [MathServServices] -> ShowS |
data MathServOperationTypes Source #
MathServ operation to select. These are only common types and will be translated into correct MathServOperations.
ProblemOpt | stands for ProveProblemOpt |
ProblemChoice | stands for ProveProblemChoice |
TPTPProblem | stands for ProveTPTPProblem or ProveTPTPProblemWithOptions |
Problem | stands for ProveProblem |
Instances
Show MathServOperationTypes Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MathServOperationTypes -> ShowS show :: MathServOperationTypes -> String showList :: [MathServOperationTypes] -> ShowS |
data MathServCall Source #
Record type for all needed data to do a MathServ call.
MathServCall | |
|
data MathServResponse Source #
A MathServ response structure to be filled by parsing all rdf-objects returned by MathServ.
MathServResponse | |
|
Instances
Eq MathServResponse Source # | |
Defined in SoftFOL.MathServParsing (==) :: MathServResponse -> MathServResponse -> Bool (/=) :: MathServResponse -> MathServResponse -> Bool | |
Ord MathServResponse Source # | |
Defined in SoftFOL.MathServParsing compare :: MathServResponse -> MathServResponse -> Ordering (<) :: MathServResponse -> MathServResponse -> Bool (<=) :: MathServResponse -> MathServResponse -> Bool (>) :: MathServResponse -> MathServResponse -> Bool (>=) :: MathServResponse -> MathServResponse -> Bool max :: MathServResponse -> MathServResponse -> MathServResponse min :: MathServResponse -> MathServResponse -> MathServResponse | |
Show MathServResponse Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MathServResponse -> ShowS show :: MathServResponse -> String showList :: [MathServResponse] -> ShowS |
data MWFoAtpResult Source #
MWFoAtpResult | |
|
Instances
Eq MWFoAtpResult Source # | |
Defined in SoftFOL.MathServParsing (==) :: MWFoAtpResult -> MWFoAtpResult -> Bool (/=) :: MWFoAtpResult -> MWFoAtpResult -> Bool | |
Ord MWFoAtpResult Source # | |
Defined in SoftFOL.MathServParsing compare :: MWFoAtpResult -> MWFoAtpResult -> Ordering (<) :: MWFoAtpResult -> MWFoAtpResult -> Bool (<=) :: MWFoAtpResult -> MWFoAtpResult -> Bool (>) :: MWFoAtpResult -> MWFoAtpResult -> Bool (>=) :: MWFoAtpResult -> MWFoAtpResult -> Bool max :: MWFoAtpResult -> MWFoAtpResult -> MWFoAtpResult min :: MWFoAtpResult -> MWFoAtpResult -> MWFoAtpResult | |
Show MWFoAtpResult Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MWFoAtpResult -> ShowS show :: MWFoAtpResult -> String showList :: [MWFoAtpResult] -> ShowS |
data MWFormalProof Source #
TstpCnfRefutation | |
|
Instances
Eq MWFormalProof Source # | |
Defined in SoftFOL.MathServParsing (==) :: MWFormalProof -> MWFormalProof -> Bool (/=) :: MWFormalProof -> MWFormalProof -> Bool | |
Ord MWFormalProof Source # | |
Defined in SoftFOL.MathServParsing compare :: MWFormalProof -> MWFormalProof -> Ordering (<) :: MWFormalProof -> MWFormalProof -> Bool (<=) :: MWFormalProof -> MWFormalProof -> Bool (>) :: MWFormalProof -> MWFormalProof -> Bool (>=) :: MWFormalProof -> MWFormalProof -> Bool max :: MWFormalProof -> MWFormalProof -> MWFormalProof min :: MWFormalProof -> MWFormalProof -> MWFormalProof | |
Show MWFormalProof Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MWFormalProof -> ShowS show :: MWFormalProof -> String showList :: [MWFormalProof] -> ShowS |
MWStatus | |
|
data FoAtpStatus Source #
Instances
Eq FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing (==) :: FoAtpStatus -> FoAtpStatus -> Bool (/=) :: FoAtpStatus -> FoAtpStatus -> Bool | |
Ord FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing compare :: FoAtpStatus -> FoAtpStatus -> Ordering (<) :: FoAtpStatus -> FoAtpStatus -> Bool (<=) :: FoAtpStatus -> FoAtpStatus -> Bool (>) :: FoAtpStatus -> FoAtpStatus -> Bool (>=) :: FoAtpStatus -> FoAtpStatus -> Bool max :: FoAtpStatus -> FoAtpStatus -> FoAtpStatus min :: FoAtpStatus -> FoAtpStatus -> FoAtpStatus | |
Read FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing readsPrec :: Int -> ReadS FoAtpStatus readList :: ReadS [FoAtpStatus] readPrec :: ReadPrec FoAtpStatus readListPrec :: ReadPrec [FoAtpStatus] | |
Show FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> FoAtpStatus -> ShowS show :: FoAtpStatus -> String showList :: [FoAtpStatus] -> ShowS |
data SolvedStatus Source #
CounterEquivalent | |
CounterSatisfiable | |
CounterTheorem | |
Equivalent | |
NoConsequence | |
Satisfiable | |
TautologousConclusion | |
Tautology | |
Theorem | |
Unsatisfiable | |
UnsatisfiableConclusion |
Instances
Eq SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing (==) :: SolvedStatus -> SolvedStatus -> Bool (/=) :: SolvedStatus -> SolvedStatus -> Bool | |
Ord SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing compare :: SolvedStatus -> SolvedStatus -> Ordering (<) :: SolvedStatus -> SolvedStatus -> Bool (<=) :: SolvedStatus -> SolvedStatus -> Bool (>) :: SolvedStatus -> SolvedStatus -> Bool (>=) :: SolvedStatus -> SolvedStatus -> Bool max :: SolvedStatus -> SolvedStatus -> SolvedStatus min :: SolvedStatus -> SolvedStatus -> SolvedStatus | |
Read SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing readsPrec :: Int -> ReadS SolvedStatus readList :: ReadS [SolvedStatus] readPrec :: ReadPrec SolvedStatus readListPrec :: ReadPrec [SolvedStatus] | |
Show SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> SolvedStatus -> ShowS show :: SolvedStatus -> String showList :: [SolvedStatus] -> ShowS |
data UnsolvedStatus Source #
Instances
Eq UnsolvedStatus Source # | |
Defined in SoftFOL.MathServParsing (==) :: UnsolvedStatus -> UnsolvedStatus -> Bool (/=) :: UnsolvedStatus -> UnsolvedStatus -> Bool | |
Ord UnsolvedStatus Source # | |
Defined in SoftFOL.MathServParsing compare :: UnsolvedStatus -> UnsolvedStatus -> Ordering (<) :: UnsolvedStatus -> UnsolvedStatus -> Bool (<=) :: UnsolvedStatus -> UnsolvedStatus -> Bool (>) :: UnsolvedStatus -> UnsolvedStatus -> Bool (>=) :: UnsolvedStatus -> UnsolvedStatus -> Bool max :: UnsolvedStatus -> UnsolvedStatus -> UnsolvedStatus min :: UnsolvedStatus -> UnsolvedStatus -> UnsolvedStatus | |
Read UnsolvedStatus Source # | |
Defined in SoftFOL.MathServParsing readsPrec :: Int -> ReadS UnsolvedStatus readList :: ReadS [UnsolvedStatus] readPrec :: ReadPrec UnsolvedStatus readListPrec :: ReadPrec [UnsolvedStatus] | |
Show UnsolvedStatus Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> UnsolvedStatus -> ShowS show :: UnsolvedStatus -> String showList :: [UnsolvedStatus] -> ShowS |
data MWCalculus Source #
AprosNDCalculus | |
OmegaNDCalculus | |
EpResCalc | |
SpassResCalc | |
StandardRes | |
OtterCalc | |
VampireResCalc | |
ZenonCalc | |
UnknownCalc |
Instances
Eq MWCalculus Source # | |
Defined in SoftFOL.MathServParsing (==) :: MWCalculus -> MWCalculus -> Bool (/=) :: MWCalculus -> MWCalculus -> Bool | |
Ord MWCalculus Source # | |
Defined in SoftFOL.MathServParsing compare :: MWCalculus -> MWCalculus -> Ordering (<) :: MWCalculus -> MWCalculus -> Bool (<=) :: MWCalculus -> MWCalculus -> Bool (>) :: MWCalculus -> MWCalculus -> Bool (>=) :: MWCalculus -> MWCalculus -> Bool max :: MWCalculus -> MWCalculus -> MWCalculus min :: MWCalculus -> MWCalculus -> MWCalculus | |
Read MWCalculus Source # | |
Defined in SoftFOL.MathServParsing readsPrec :: Int -> ReadS MWCalculus readList :: ReadS [MWCalculus] readPrec :: ReadPrec MWCalculus readListPrec :: ReadPrec [MWCalculus] | |
Show MWCalculus Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MWCalculus -> ShowS show :: MWCalculus -> String showList :: [MWCalculus] -> ShowS |
data MWTimeResource Source #
MWTimeResource | |
|
Instances
Eq MWTimeResource Source # | |
Defined in SoftFOL.MathServParsing (==) :: MWTimeResource -> MWTimeResource -> Bool (/=) :: MWTimeResource -> MWTimeResource -> Bool | |
Ord MWTimeResource Source # | |
Defined in SoftFOL.MathServParsing compare :: MWTimeResource -> MWTimeResource -> Ordering (<) :: MWTimeResource -> MWTimeResource -> Bool (<=) :: MWTimeResource -> MWTimeResource -> Bool (>) :: MWTimeResource -> MWTimeResource -> Bool (>=) :: MWTimeResource -> MWTimeResource -> Bool max :: MWTimeResource -> MWTimeResource -> MWTimeResource min :: MWTimeResource -> MWTimeResource -> MWTimeResource | |
Show MWTimeResource Source # | |
Defined in SoftFOL.MathServParsing showsPrec :: Int -> MWTimeResource -> ShowS show :: MWTimeResource -> String showList :: [MWTimeResource] -> ShowS |