Logic_Maude.hs revision 34cfbf5a46ff6f7569da54d131a2b8c0795f235f
f56e4fe56fdf66d711e5fafaa71c2587dd9a066fChristian MaederModule : $Header$
f56e4fe56fdf66d711e5fafaa71c2587dd9a066fChristian MaederDescription : Instance of class Logic for Maude
accab0bf9b8aa690d70174f41fe94370323959b9Christian MaederCopyright : (c) Martin Kuehl, Uni Bremen 2008
f56e4fe56fdf66d711e5fafaa71c2587dd9a066fChristian MaederLicense : similar to LGPL, see HetCATS/LICENSE.txt or LIZENZ.txt
accab0bf9b8aa690d70174f41fe94370323959b9Christian MaederMaintainer : mkhl@informatik.uni-bremen.de
accab0bf9b8aa690d70174f41fe94370323959b9Christian MaederStability : experimental
e1997b6204d2de9f4f496c2db72b5e754c66a3cbChristian MaederPortability : non-portable (imports Logic.Logic)
a91ba3a25448d1aa24aaa6f094316334187084d5Christian MaederInstance of class Logic for Maude. See <http://maude.cs.uiuc.edu/>
module Maude.Logic_Maude where
import Logic.Logic
import Maude.AS_Maude (MaudeText(..))
import Maude.Parse (mStuff)
import Maude.Sign (Sign)
import Maude.Morphism (Morphism)
import Maude.Symbol (Symbol)
import Maude.Sentence (Sentence)
import qualified Maude.Sign as Sign
import qualified Maude.Morphism as Morphism
import qualified Maude.Symbol as Symbol
import qualified Maude.Sentence as Sentence
import Maude.ATC_Maude ()
import Maude.Shellout
import Common.AS_Annotation
import Common.ExtSign
import System.IO.Unsafe
, "For an overview of Maude see <http://maude.cs.uiuc.edu/overview.html>."
, "For an information on rewriting logic see <http://maude.cs.uiuc.edu/rwl.html>."
, "For anything else about the Maude project see <http://maude.cs.uiuc.edu/>." ]
ide = Morphism.identity
dom = Morphism.source
cod = Morphism.target
composeMorphisms = Morphism.compose
inverse = Morphism.inverse
isInclusion = Morphism.isInclusion
legal_mor = Morphism.isLegal
is_of_sign Maude = flip Sign.includesSentence
map_sen Maude = Morphism.mapSentence
simplify_sen Maude = Sign.simplifySentence
sym_name Maude = Symbol.toId
sym_of Maude = Sign.symbols
symmap_of Maude = Morphism.symbolMap
is_subsig Maude = Sign.isSubsign
empty_signature Maude = Sign.empty
signature_union Maude sign1 sign2 = return $ Sign.union sign1 sign2
intersection Maude sign1 sign2 = return $ Sign.intersection sign1 sign2
subsig_inclusion Maude src tgt = return $ Morphism.inclusion src tgt