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

Description

Definition of morphisms for Maude.

Synopsis

Types

The Morphism type

data Morphism Source #

Constructors

Morphism 

Fields

Instances

Instances details
Eq Morphism Source # 
Instance details

Defined in Maude.Morphism

Methods

(==) :: Morphism -> Morphism -> Bool

(/=) :: Morphism -> Morphism -> Bool

Ord Morphism Source # 
Instance details

Defined in Maude.Morphism

Methods

compare :: Morphism -> Morphism -> Ordering

(<) :: Morphism -> Morphism -> Bool

(<=) :: Morphism -> Morphism -> Bool

(>) :: Morphism -> Morphism -> Bool

(>=) :: Morphism -> Morphism -> Bool

max :: Morphism -> Morphism -> Morphism

min :: Morphism -> Morphism -> Morphism

Show Morphism Source # 
Instance details

Defined in Maude.Morphism

Methods

showsPrec :: Int -> Morphism -> ShowS

show :: Morphism -> String

showList :: [Morphism] -> ShowS

Generic Morphism 
Instance details

Defined in Maude.ATC_Maude

Associated Types

type Rep Morphism :: Type -> Type

Methods

from :: Morphism -> Rep Morphism x

to :: Rep Morphism x -> Morphism

FromJSON Morphism 
Instance details

Defined in Maude.ATC_Maude

Methods

parseJSON :: Value -> Parser Morphism

parseJSONList :: Value -> Parser [Morphism]

ToJSON Morphism 
Instance details

Defined in Maude.ATC_Maude

Methods

toJSON :: Morphism -> Value

toEncoding :: Morphism -> Encoding

toJSONList :: [Morphism] -> Value

toEncodingList :: [Morphism] -> Encoding

ShATermConvertible Morphism 
Instance details

Defined in Maude.ATC_Maude

Methods

toShATermAux :: ATermTable -> Morphism -> IO (ATermTable, Int)

toShATermList' :: ATermTable -> [Morphism] -> IO (ATermTable, Int)

fromShATermAux :: Int -> ATermTable -> (ATermTable, Morphism)

fromShATermList' :: Int -> ATermTable -> (ATermTable, [Morphism])

Pretty Morphism Source # 
Instance details

Defined in Maude.Morphism

Category Sign Morphism Source #

Instance of Category for Maude

Instance details

Defined in Maude.Logic_Maude

Sentences Maude Sentence Sign Morphism Symbol Source #

Instance of Sentences for Maude

Instance details

Defined in Maude.Logic_Maude

StaticAnalysis Maude MaudeText Sentence () () Sign Morphism Symbol Symbol Source #

Instance of StaticAnalysis for Maude

Instance details

Defined in Maude.Logic_Maude

Methods

basic_analysis :: Maude -> Maybe ((MaudeText, Sign, GlobalAnnos) -> Result (MaudeText, ExtSign Sign Symbol, [Named Sentence])) Source #

sen_analysis :: Maude -> Maybe ((MaudeText, Sign, Sentence) -> Result Sentence) Source #

extBasicAnalysis :: Maude -> IRI -> LibName -> MaudeText -> Sign -> GlobalAnnos -> Result (MaudeText, ExtSign Sign Symbol, [Named Sentence]) Source #

stat_symb_map_items :: Maude -> Sign -> Maybe Sign -> [()] -> Result (EndoMap Symbol) Source #

stat_symb_items :: Maude -> Sign -> [()] -> Result [Symbol] Source #

convertTheory :: Maude -> Maybe ((Sign, [Named Sentence]) -> MaudeText) Source #

ensures_amalgamability :: Maude -> ([CASLAmalgOpt], Gr Sign (Int, Morphism), [(Int, Morphism)], Gr String String) -> Result Amalgamates Source #

quotient_term_algebra :: Maude -> Morphism -> [Named Sentence] -> Result (Sign, [Named Sentence]) Source #

signature_colimit :: Maude -> Gr Sign (Int, Morphism) -> Result (Sign, Map Int Morphism) Source #

qualify :: Maude -> SIMPLE_ID -> LibName -> Morphism -> Sign -> Result (Morphism, [Named Sentence]) Source #

symbol_to_raw :: Maude -> Symbol -> Symbol Source #

id_to_raw :: Maude -> Id -> Symbol Source #

matches :: Maude -> Symbol -> Symbol -> Bool Source #

empty_signature :: Maude -> Sign Source #

add_symb_to_sign :: Maude -> Sign -> Symbol -> Result Sign Source #

signature_union :: Maude -> Sign -> Sign -> Result Sign Source #

signatureDiff :: Maude -> Sign -> Sign -> Result Sign Source #

intersection :: Maude -> Sign -> Sign -> Result Sign Source #

final_union :: Maude -> Sign -> Sign -> Result Sign Source #

morphism_union :: Maude -> Morphism -> Morphism -> Result Morphism Source #

is_subsig :: Maude -> Sign -> Sign -> Bool Source #

subsig_inclusion :: Maude -> Sign -> Sign -> Result Morphism Source #

generated_sign :: Maude -> Set Symbol -> Sign -> Result Morphism Source #

cogenerated_sign :: Maude -> Set Symbol -> Sign -> Result Morphism Source #

induced_from_morphism :: Maude -> EndoMap Symbol -> Sign -> Result Morphism Source #

induced_from_to_morphism :: Maude -> EndoMap Symbol -> ExtSign Sign Symbol -> ExtSign Sign Symbol -> Result Morphism Source #

is_transportable :: Maude -> Morphism -> Bool Source #

is_injective :: Maude -> Morphism -> Bool Source #

theory_to_taxonomy :: Maude -> TaxoGraphKind -> MMiSSOntology -> Sign -> [Named Sentence] -> Result MMiSSOntology Source #

corresp2th :: Maude -> String -> Bool -> Sign -> Sign -> [()] -> [()] -> EndoMap Symbol -> EndoMap Symbol -> REL_REF -> Result (Sign, [Named Sentence], Sign, Sign, EndoMap Symbol, EndoMap Symbol) Source #

equiv2cospan :: Maude -> Sign -> Sign -> [()] -> [()] -> Result (Sign, Sign, Sign, EndoMap Symbol, EndoMap Symbol) Source #

extract_module :: Maude -> [IRI] -> (Sign, [Named Sentence]) -> Result (Sign, [Named Sentence]) Source #

LogicalFramework Maude () MaudeText Sentence () () Sign Morphism Symbol Symbol () Source # 
Instance details

Defined in Maude.Logic_Maude

Methods

base_sig :: Maude -> Sign Source #

write_logic :: Maude -> String -> String Source #

write_syntax :: Maude -> String -> Morphism -> String Source #

write_proof :: Maude -> String -> Morphism -> String Source #

write_model :: Maude -> String -> Morphism -> String Source #

read_morphism :: Maude -> FilePath -> Morphism Source #

write_comorphism :: Maude -> String -> String -> String -> Morphism -> Morphism -> Morphism -> String Source #

Logic Maude () MaudeText Sentence () () Sign Morphism Symbol Symbol () Source #

Instance of Logic for Maude

Instance details

Defined in Maude.Logic_Maude

Methods

parse_basic_sen :: Maude -> Maybe (MaudeText -> AParser st Sentence) Source #

stability :: Maude -> Stability Source #

data_logic :: Maude -> Maybe AnyLogic Source #

top_sublogic :: Maude -> () Source #

all_sublogics :: Maude -> [()] Source #

bottomSublogic :: Maude -> Maybe () Source #

sublogicDimensions :: Maude -> [[()]] Source #

parseSublogic :: Maude -> String -> Maybe () Source #

proj_sublogic_epsilon :: Maude -> () -> Sign -> Morphism Source #

provers :: Maude -> [Prover Sign Sentence Morphism () ()] Source #

default_prover :: Maude -> String Source #

cons_checkers :: Maude -> [ConsChecker Sign Sentence () Morphism ()] Source #

conservativityCheck :: Maude -> [ConservativityChecker Sign Sentence Morphism] Source #

empty_proof_tree :: Maude -> () Source #

syntaxTable :: Maude -> Sign -> Maybe SyntaxTable Source #

omdoc_metatheory :: Maude -> Maybe OMCD Source #

export_symToOmdoc :: Maude -> NameMap Symbol -> Symbol -> String -> Result TCElement Source #

export_senToOmdoc :: Maude -> NameMap Symbol -> Sentence -> Result TCorOMElement Source #

export_theoryToOmdoc :: Maude -> SigMap Symbol -> Sign -> [Named Sentence] -> Result [TCElement] Source #

omdocToSym :: Maude -> SigMapI Symbol -> TCElement -> String -> Result Symbol Source #

omdocToSen :: Maude -> SigMapI Symbol -> TCElement -> String -> Result (Maybe (Named Sentence)) Source #

addOMadtToTheory :: Maude -> SigMapI Symbol -> (Sign, [Named Sentence]) -> [[OmdADT]] -> Result (Sign, [Named Sentence]) Source #

addOmdocToTheory :: Maude -> SigMapI Symbol -> (Sign, [Named Sentence]) -> [TCElement] -> Result (Sign, [Named Sentence]) Source #

sublogicOfTheo :: Maude -> (Sign, [Sentence]) -> () Source #

Comorphism Maude2CASL Maude () MaudeText Sentence () () Sign Morphism Symbol Symbol () CASL CASL_Sublogics CASLBasicSpec CASLFORMULA SYMB_ITEMS SYMB_MAP_ITEMS CASLSign CASLMor Symbol RawSymbol ProofTree Source # 
Instance details

Defined in Comorphisms.Maude2CASL

type Rep Morphism 
Instance details

Defined in Maude.ATC_Maude

type Rep Morphism

Auxiliary type

Construction

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

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

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

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

inclusion :: Sign -> Sign -> Morphism Source #

the inclusion Morphism

Combination

union :: Morphism -> Morphism -> Morphism Source #

the union of two Morphisms

compose :: Morphism -> Morphism -> Result Morphism Source #

the composition of two Morphisms

Testing

isInclusion :: Morphism -> Bool Source #

True iff the Morphism is an inclusion

isLegal :: Morphism -> Result () Source #

True iff the Morphism is legal

Conversion

symbolMap :: Morphism -> SymbolMap Source #

extract the complete SymbolMap of a Morphism

Modification

setTarget :: Sign -> Morphism -> Morphism Source #

set a new target for a Morphism

qualifySorts :: Morphism -> Qid -> Symbols -> Morphism Source #

qualify a list of Symbols inside a Morphism

Application

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

translate Sorts along a Morphism