Prop2CASLHelpers.hs revision e9458b1a7a19a63aa4c179f9ab20f4d50681c168
391N/AModule : ./Propositional/Prop2CASLHelpers.hs
391N/ALicense : GPLv2 or higher, see LICENSE.txt
391N/APortability : portable (imports Logic.Logic)
import qualified Data.Set as Set
import qualified Data.Map as Map
import qualified Common.AS_Annotation as AS_Anno
import qualified Common.Id as Id
import qualified Common.Result as Result
import qualified Common.Lib.MapSet as MapSet
import qualified Propositional.AS_BASIC_Propositional as PBasic
import qualified Propositional.Sublogic as PSL
import qualified Propositional.Sign as PSign
import qualified Propositional.Morphism as PMor
import qualified Propositional.Symbol as PSymbol
import qualified CASL.AS_Basic_CASL as CBasic
import qualified CASL.Sublogic as CSL
import qualified CASL.Sign as CSign
import qualified CASL.Morphism as CMor
mapSig sign = (CSign.emptySign ())
mapSub sl = CSL.bottom
, CSL.has_pred = True
, CSL.has_eq = False
mapTheory (sig, form) = Result.Result [] $
mapSym sym = Set.singleton $
mapSentence _ form = Result.Result [] $ Just $ trForm form
trNamedForm = AS_Anno.mapNamed trForm
PBasic.Conjunction fn rn ->
PBasic.Disjunction fn rn ->
PBasic.Implication f1 f2 rn ->
PBasic.Equivalence f1 f2 rn ->
Map.insert (k, pt) a