Logic_SoftFOL.hs revision 98890889ffb2e8f6f722b00e265a211f13b5a861
{-# LANGUAGE CPP, MultiParamTypeClasses, TypeSynonymInstances #-}
{- |
Module : $Header$
Description : Instance of class Logic for SoftFOL.
Copyright : (c) Rene Wagner, Klaus Luettich, Uni Bremen 2005-2007
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability : provisional
Portability : non-portable (imports Logic)
Instance of class Logic for SoftFOL.
-}
module SoftFOL.Logic_SoftFOL where
import Common.DefaultMorphism
import Common.DocUtils
import Common.ProofTree
import ATC.ProofTree ()
import Logic.Logic
import SoftFOL.ATC_SoftFOL ()
import SoftFOL.Sign
import SoftFOL.Print
import SoftFOL.Conversions
import SoftFOL.Morphism
#ifdef UNI_PACKAGE
import Common.ProverTools
import SoftFOL.ProveSPASS
import SoftFOL.ProveHyperHyper
#ifndef NOMATHSERVER
import SoftFOL.ProveMathServ
import SoftFOL.ProveVampire
#endif
import SoftFOL.ProveDarwin
#endif
import SoftFOL.ProveMetis
instance Pretty Sign where
pretty = pretty . signToSPLogicalPart
{- |
A dummy datatype for the LogicGraph and for identifying the right
instances
-}
data SoftFOL = SoftFOL deriving (Show)
instance Language SoftFOL where
description _ =
"SoftFOL - Softly typed First Order Logic for "++
"Automated Theorem Proving Systems\n\n" ++
"This logic corresponds to the logic of SPASS, \n"++
"but the generation of TPTP is also possible.\n" ++
"See http://spass.mpi-sb.mpg.de/\n"++
instance Logic.Logic.Syntax SoftFOL () () ()
-- default implementation is fine!
instance Sentences SoftFOL Sentence Sign
SoftFOLMorphism SFSymbol where
map_sen SoftFOL _ s = return s
sym_of SoftFOL = singletonList . symOf
sym_name SoftFOL = symbolToId
print_named SoftFOL = printFormula
-- other default implementations are fine
instance StaticAnalysis SoftFOL () Sentence
() ()
Sign
SoftFOLMorphism SFSymbol () where
empty_signature SoftFOL = emptySign
is_subsig SoftFOL _ _ = True
subsig_inclusion SoftFOL = defaultInclusion
instance Logic SoftFOL () () Sentence () ()
Sign
SoftFOLMorphism SFSymbol () ProofTree where
stability _ = Testing
-- again default implementations are fine
-- the prover uses HTk and IO functions from uni
#ifdef UNI_PACKAGE
provers SoftFOL =
unsafeProverCheck "SPASS" "PATH" spassProver
#ifndef NOMATHSERVER
++ [mathServBroker, vampire]
#endif
++ unsafeProverCheck "darwin" "PATH" (darwinProver Darwin)
++ unsafeProverCheck "e-darwin" "PATH" (darwinProver EDarwin)
++ (unsafeProverCheck "metis" "PATH" metisProver)
++ unsafeProverCheck "ekrh" "PATH" hyperProver
cons_checkers SoftFOL =
unsafeProverCheck "darwin" "PATH" (darwinConsChecker Darwin)
++ unsafeProverCheck "e-darwin" "PATH" (darwinConsChecker EDarwin)
++ unsafeProverCheck "ekrh" "PATH" hyperConsChecker
#endif