Hets - the Heterogeneous Tool Set

Copyright(c) Kristina Sojakova DFKI Bremen 2010
LicenseGPLv2 or higher, see LICENSE.txt
Maintainerk.sojakova@jacobs-university.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe

LF.AS

Description

 

Documentation

data BASIC_SPEC Source #

Constructors

Basic_spec [Annoted BASIC_ITEM] 

Instances

Show BASIC_SPEC Source # 

Methods

showsPrec :: Int -> BASIC_SPEC -> ShowS

show :: BASIC_SPEC -> String

showList :: [BASIC_SPEC] -> ShowS

GetRange BASIC_SPEC Source # 
Pretty BASIC_SPEC Source # 
Syntax LF BASIC_SPEC Symbol SYMB_ITEMS SYMB_MAP_ITEMS Source # 
StaticAnalysis LF BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM Source # 

Methods

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

sen_analysis :: LF -> Maybe ((BASIC_SPEC, Sign, Sentence) -> Result Sentence) Source #

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

stat_symb_map_items :: LF -> Sign -> Maybe Sign -> [SYMB_MAP_ITEMS] -> Result (EndoMap RAW_SYM) Source #

stat_symb_items :: LF -> Sign -> [SYMB_ITEMS] -> Result [RAW_SYM] Source #

convertTheory :: LF -> Maybe ((Sign, [Named Sentence]) -> BASIC_SPEC) Source #

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

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

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

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

symbol_to_raw :: LF -> Symbol -> RAW_SYM Source #

id_to_raw :: LF -> Id -> RAW_SYM Source #

matches :: LF -> Symbol -> RAW_SYM -> Bool Source #

empty_signature :: LF -> Sign Source #

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

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

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

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

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

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

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

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

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

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

induced_from_morphism :: LF -> EndoMap RAW_SYM -> Sign -> Result Morphism Source #

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

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

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

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

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

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

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

LogicalFramework LF () BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM () Source # 

Methods

base_sig :: LF -> Sign Source #

write_logic :: LF -> String -> String Source #

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

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

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

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

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

Logic LF () BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM () Source # 

Methods

parse_basic_sen :: LF -> Maybe (BASIC_SPEC -> AParser st Sentence) Source #

stability :: LF -> Stability Source #

data_logic :: LF -> Maybe AnyLogic Source #

top_sublogic :: LF -> () Source #

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

bottomSublogic :: LF -> Maybe () Source #

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

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

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

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

default_prover :: LF -> String Source #

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

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

empty_proof_tree :: LF -> () Source #

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

omdoc_metatheory :: LF -> Maybe OMCD Source #

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

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

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

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

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

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

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

data BASIC_ITEM Source #

Constructors

Decl String 
Form String 

Instances

Show BASIC_ITEM Source # 

Methods

showsPrec :: Int -> BASIC_ITEM -> ShowS

show :: BASIC_ITEM -> String

showList :: [BASIC_ITEM] -> ShowS

Pretty BASIC_ITEM Source # 

data SYMB_ITEMS Source #

Constructors

Symb_items [String] 

Instances

Eq SYMB_ITEMS Source # 

Methods

(==) :: SYMB_ITEMS -> SYMB_ITEMS -> Bool

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

Show SYMB_ITEMS Source # 

Methods

showsPrec :: Int -> SYMB_ITEMS -> ShowS

show :: SYMB_ITEMS -> String

showList :: [SYMB_ITEMS] -> ShowS

Pretty SYMB_ITEMS Source # 
Syntax LF BASIC_SPEC Symbol SYMB_ITEMS SYMB_MAP_ITEMS Source # 
StaticAnalysis LF BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM Source # 

Methods

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

sen_analysis :: LF -> Maybe ((BASIC_SPEC, Sign, Sentence) -> Result Sentence) Source #

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

stat_symb_map_items :: LF -> Sign -> Maybe Sign -> [SYMB_MAP_ITEMS] -> Result (EndoMap RAW_SYM) Source #

stat_symb_items :: LF -> Sign -> [SYMB_ITEMS] -> Result [RAW_SYM] Source #

convertTheory :: LF -> Maybe ((Sign, [Named Sentence]) -> BASIC_SPEC) Source #

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

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

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

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

symbol_to_raw :: LF -> Symbol -> RAW_SYM Source #

id_to_raw :: LF -> Id -> RAW_SYM Source #

matches :: LF -> Symbol -> RAW_SYM -> Bool Source #

empty_signature :: LF -> Sign Source #

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

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

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

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

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

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

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

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

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

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

induced_from_morphism :: LF -> EndoMap RAW_SYM -> Sign -> Result Morphism Source #

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

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

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

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

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

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

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

LogicalFramework LF () BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM () Source # 

Methods

base_sig :: LF -> Sign Source #

write_logic :: LF -> String -> String Source #

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

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

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

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

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

Logic LF () BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM () Source # 

Methods

parse_basic_sen :: LF -> Maybe (BASIC_SPEC -> AParser st Sentence) Source #

stability :: LF -> Stability Source #

data_logic :: LF -> Maybe AnyLogic Source #

top_sublogic :: LF -> () Source #

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

bottomSublogic :: LF -> Maybe () Source #

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

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

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

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

default_prover :: LF -> String Source #

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

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

empty_proof_tree :: LF -> () Source #

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

omdoc_metatheory :: LF -> Maybe OMCD Source #

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

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

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

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

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

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

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

data SYMB_MAP_ITEMS Source #

Constructors

Symb_map_items [SYMB_OR_MAP] 

Instances

Eq SYMB_MAP_ITEMS Source # 
Show SYMB_MAP_ITEMS Source # 

Methods

showsPrec :: Int -> SYMB_MAP_ITEMS -> ShowS

show :: SYMB_MAP_ITEMS -> String

showList :: [SYMB_MAP_ITEMS] -> ShowS

Pretty SYMB_MAP_ITEMS Source # 
Syntax LF BASIC_SPEC Symbol SYMB_ITEMS SYMB_MAP_ITEMS Source # 
StaticAnalysis LF BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM Source # 

Methods

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

sen_analysis :: LF -> Maybe ((BASIC_SPEC, Sign, Sentence) -> Result Sentence) Source #

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

stat_symb_map_items :: LF -> Sign -> Maybe Sign -> [SYMB_MAP_ITEMS] -> Result (EndoMap RAW_SYM) Source #

stat_symb_items :: LF -> Sign -> [SYMB_ITEMS] -> Result [RAW_SYM] Source #

convertTheory :: LF -> Maybe ((Sign, [Named Sentence]) -> BASIC_SPEC) Source #

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

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

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

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

symbol_to_raw :: LF -> Symbol -> RAW_SYM Source #

id_to_raw :: LF -> Id -> RAW_SYM Source #

matches :: LF -> Symbol -> RAW_SYM -> Bool Source #

empty_signature :: LF -> Sign Source #

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

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

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

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

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

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

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

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

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

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

induced_from_morphism :: LF -> EndoMap RAW_SYM -> Sign -> Result Morphism Source #

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

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

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

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

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

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

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

LogicalFramework LF () BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM () Source # 

Methods

base_sig :: LF -> Sign Source #

write_logic :: LF -> String -> String Source #

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

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

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

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

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

Logic LF () BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM () Source # 

Methods

parse_basic_sen :: LF -> Maybe (BASIC_SPEC -> AParser st Sentence) Source #

stability :: LF -> Stability Source #

data_logic :: LF -> Maybe AnyLogic Source #

top_sublogic :: LF -> () Source #

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

bottomSublogic :: LF -> Maybe () Source #

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

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

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

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

default_prover :: LF -> String Source #

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

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

empty_proof_tree :: LF -> () Source #

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

omdoc_metatheory :: LF -> Maybe OMCD Source #

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

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

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

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

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

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

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

data SYMB_OR_MAP Source #

Constructors

Symb String 
Symb_map String String 

Instances

Eq SYMB_OR_MAP Source # 

Methods

(==) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool

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

Show SYMB_OR_MAP Source # 

Methods

showsPrec :: Int -> SYMB_OR_MAP -> ShowS

show :: SYMB_OR_MAP -> String

showList :: [SYMB_OR_MAP] -> ShowS

Pretty SYMB_OR_MAP Source #