Hets - the Heterogeneous Tool Set

Copyright(c) Martin Kuehl, Uni Bremen 2008-2009
LicenseGPLv2 or higher, see LICENSE.txt
Maintainermkhl@informatik.uni-bremen.de
Stabilityexperimental
Portabilityportable
Safe HaskellNone

Maude.Morphism

Contents

Description

Definition of morphisms for Maude.

Synopsis

Types

The Morphism type

Auxiliary type

Construction

fromSignRenamings :: Sign -> [Renaming] -> Morphism

Create a Morphism from an initial Signature and a list of Renamings.

fromSignsRenamings :: Sign -> Sign -> [Renaming] -> Morphism

Create a Morphism from a pair of Signatures and a list of Renamings.

empty :: Morphism

the empty Morphism

identity :: Sign -> Morphism

the identity Morphism

inclusion :: Sign -> Sign -> Morphism

the inclusion Morphism

Combination

union :: Morphism -> Morphism -> Morphism

the union of two Morphisms

compose :: Morphism -> Morphism -> Result Morphism

the composition of two Morphisms

Testing

isInclusion :: Morphism -> Bool

True iff the Morphism is an inclusion

isLegal :: Morphism -> Result ()

True iff the Morphism is legal

Conversion

symbolMap :: Morphism -> SymbolMap

extract the complete SymbolMap of a Morphism

Modification

setTarget :: Sign -> Morphism -> Morphism

set a new target for a Morphism

qualifySorts :: Morphism -> Qid -> Symbols -> Morphism

qualify a list of Symbols inside a Morphism

applyRenamings :: Morphism -> [Renaming] -> Morphism

apply a list of Renamings to a Morphism

Application

translateSorts :: HasSorts a => Morphism -> a -> a

translate Sorts along a Morphism