| 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 |
SoftFOL.MathServParsing
Description
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
Arguments
| :: 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).
Arguments
| :: 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.
Constructors
| Broker | Broker service |
| VampireService | Vampire service |
Instances
| Show MathServServices Source # | |
Defined in SoftFOL.MathServParsing Methods 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.
Constructors
| 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 Methods showsPrec :: Int -> MathServOperationTypes -> ShowS show :: MathServOperationTypes -> String showList :: [MathServOperationTypes] -> ShowS | |
data MathServCall Source #
Record type for all needed data to do a MathServ call.
Constructors
| MathServCall | |
Fields
| |
data MathServResponse Source #
A MathServ response structure to be filled by parsing all rdf-objects returned by MathServ.
Constructors
| MathServResponse | |
Fields
| |
Instances
| Eq MathServResponse Source # | |
Defined in SoftFOL.MathServParsing Methods (==) :: MathServResponse -> MathServResponse -> Bool (/=) :: MathServResponse -> MathServResponse -> Bool | |
| Ord MathServResponse Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods showsPrec :: Int -> MathServResponse -> ShowS show :: MathServResponse -> String showList :: [MathServResponse] -> ShowS | |
data MWFoAtpResult Source #
Constructors
| MWFoAtpResult | |
Fields
| |
Instances
| Eq MWFoAtpResult Source # | |
Defined in SoftFOL.MathServParsing | |
| Ord MWFoAtpResult Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods showsPrec :: Int -> MWFoAtpResult -> ShowS show :: MWFoAtpResult -> String showList :: [MWFoAtpResult] -> ShowS | |
data MWFormalProof Source #
Constructors
| TstpCnfRefutation | |
Fields
| |
Instances
| Eq MWFormalProof Source # | |
Defined in SoftFOL.MathServParsing | |
| Ord MWFormalProof Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods showsPrec :: Int -> MWFormalProof -> ShowS show :: MWFormalProof -> String showList :: [MWFormalProof] -> ShowS | |
Constructors
| MWStatus | |
Fields
| |
data FoAtpStatus Source #
Constructors
| Solved SolvedStatus | |
| Unsolved UnsolvedStatus |
Instances
| Eq FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing | |
| Ord FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods readsPrec :: Int -> ReadS FoAtpStatus readList :: ReadS [FoAtpStatus] readPrec :: ReadPrec FoAtpStatus readListPrec :: ReadPrec [FoAtpStatus] | |
| Show FoAtpStatus Source # | |
Defined in SoftFOL.MathServParsing Methods showsPrec :: Int -> FoAtpStatus -> ShowS show :: FoAtpStatus -> String showList :: [FoAtpStatus] -> ShowS | |
data SolvedStatus Source #
Constructors
| CounterEquivalent | |
| CounterSatisfiable | |
| CounterTheorem | |
| Equivalent | |
| NoConsequence | |
| Satisfiable | |
| TautologousConclusion | |
| Tautology | |
| Theorem | |
| Unsatisfiable | |
| UnsatisfiableConclusion |
Instances
| Eq SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing | |
| Ord SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods readsPrec :: Int -> ReadS SolvedStatus readList :: ReadS [SolvedStatus] readPrec :: ReadPrec SolvedStatus readListPrec :: ReadPrec [SolvedStatus] | |
| Show SolvedStatus Source # | |
Defined in SoftFOL.MathServParsing Methods showsPrec :: Int -> SolvedStatus -> ShowS show :: SolvedStatus -> String showList :: [SolvedStatus] -> ShowS | |
data UnsolvedStatus Source #
Constructors
| Assumed | |
| GaveUp | |
| InputError | |
| MemoryOut | |
| ResourceOut | |
| Timeout | |
| Unknown | |
| NoStatus |
Instances
data MWCalculus Source #
Constructors
| AprosNDCalculus | |
| OmegaNDCalculus | |
| EpResCalc | |
| SpassResCalc | |
| StandardRes | |
| OtterCalc | |
| VampireResCalc | |
| ZenonCalc | |
| UnknownCalc |
Instances
| Eq MWCalculus Source # | |
Defined in SoftFOL.MathServParsing | |
| Ord MWCalculus Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods readsPrec :: Int -> ReadS MWCalculus readList :: ReadS [MWCalculus] readPrec :: ReadPrec MWCalculus readListPrec :: ReadPrec [MWCalculus] | |
| Show MWCalculus Source # | |
Defined in SoftFOL.MathServParsing Methods showsPrec :: Int -> MWCalculus -> ShowS show :: MWCalculus -> String showList :: [MWCalculus] -> ShowS | |
data MWTimeResource Source #
Constructors
| MWTimeResource | |
Fields
| |
Instances
| Eq MWTimeResource Source # | |
Defined in SoftFOL.MathServParsing Methods (==) :: MWTimeResource -> MWTimeResource -> Bool (/=) :: MWTimeResource -> MWTimeResource -> Bool | |
| Ord MWTimeResource Source # | |
Defined in SoftFOL.MathServParsing Methods 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 Methods showsPrec :: Int -> MWTimeResource -> ShowS show :: MWTimeResource -> String showList :: [MWTimeResource] -> ShowS | |