Copyright | (c) Kristina Sojakova DFKI Bremen 2009 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | k.sojakova@jacobs-university.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Documentation
Instances
Instances
Eq EXP Source # | |
Data EXP Source # | |
Defined in LF.Sign gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EXP -> c EXP gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EXP dataTypeOf :: EXP -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EXP) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EXP) gmapT :: (forall b. Data b => b -> b) -> EXP -> EXP gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EXP -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EXP -> r gmapQ :: (forall d. Data d => d -> u) -> EXP -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> EXP -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> EXP -> m EXP gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EXP -> m EXP gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EXP -> m EXP | |
Ord EXP Source # | |
Show EXP Source # | |
Generic EXP | |
GetRange EXP Source # | |
FromJSON EXP | |
Defined in LF.ATC_LF parseJSON :: Value -> Parser EXP parseJSONList :: Value -> Parser [EXP] | |
ToJSON EXP | |
Defined in LF.ATC_LF | |
ShATermConvertible EXP | |
Defined in LF.ATC_LF toShATermAux :: ATermTable -> EXP -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [EXP] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, EXP) fromShATermList' :: Int -> ATermTable -> (ATermTable, [EXP]) | |
Pretty EXP Source # | |
Sentences LF Sentence Sign Morphism Symbol Source # | |
Defined in LF.Logic_LF map_sen :: LF -> Morphism -> Sentence -> Result Sentence Source # simplify_sen :: LF -> Sign -> Sentence -> Sentence Source # negation :: LF -> Sentence -> Maybe Sentence Source # print_sign :: LF -> Sign -> Doc Source # print_named :: LF -> Named Sentence -> Doc Source # sym_of :: LF -> Sign -> [Set Symbol] Source # mostSymsOf :: LF -> Sign -> [Symbol] Source # symmap_of :: LF -> Morphism -> EndoMap Symbol Source # sym_name :: LF -> Symbol -> Id Source # sym_label :: LF -> Symbol -> Maybe String Source # fullSymName :: LF -> Symbol -> String Source # symKind :: LF -> Symbol -> String Source # symsOfSen :: LF -> Sign -> Sentence -> [Symbol] Source # pair_symbols :: LF -> Symbol -> Symbol -> Result Symbol Source # | |
StaticAnalysis LF BASIC_SPEC Sentence SYMB_ITEMS SYMB_MAP_ITEMS Sign Morphism Symbol RAW_SYM Source # | |
Defined in LF.Logic_LF 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 # | |
Defined in LF.Logic_LF 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 # | |
Defined in LF.Logic_LF 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 # | |
type Rep EXP | |
Defined in LF.ATC_LF type Rep EXP = D1 ('MetaData "EXP" "LF.Sign" "main" 'False) ((C1 ('MetaCons "Type" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Var" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VAR)) :+: C1 ('MetaCons "Const" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Symbol)))) :+: ((C1 ('MetaCons "Appl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EXP) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [EXP])) :+: C1 ('MetaCons "Func" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [EXP]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EXP))) :+: (C1 ('MetaCons "Pi" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CONTEXT) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EXP)) :+: C1 ('MetaCons "Lamb" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CONTEXT) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EXP))))) |
Instances
Eq DEF Source # | |
Data DEF Source # | |
Defined in LF.Sign gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DEF -> c DEF gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DEF dataTypeOf :: DEF -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DEF) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DEF) gmapT :: (forall b. Data b => b -> b) -> DEF -> DEF gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DEF -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DEF -> r gmapQ :: (forall d. Data d => d -> u) -> DEF -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> DEF -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> DEF -> m DEF gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DEF -> m DEF gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DEF -> m DEF | |
Ord DEF Source # | |
Show DEF Source # | |
Generic DEF | |
FromJSON DEF | |
Defined in LF.ATC_LF parseJSON :: Value -> Parser DEF parseJSONList :: Value -> Parser [DEF] | |
ToJSON DEF | |
Defined in LF.ATC_LF | |
ShATermConvertible DEF | |
Defined in LF.ATC_LF toShATermAux :: ATermTable -> DEF -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [DEF] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, DEF) fromShATermList' :: Int -> ATermTable -> (ATermTable, [DEF]) | |
Pretty DEF Source # | |
type Rep DEF | |
Defined in LF.ATC_LF type Rep DEF = D1 ('MetaData "DEF" "LF.Sign" "main" 'False) (C1 ('MetaCons "Def" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSym") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Symbol) :*: (S1 ('MetaSel ('Just "getType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EXP) :*: S1 ('MetaSel ('Just "getValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EXP))))) |
Instances
gen_module :: String Source #
getSymbols :: Sign -> Set Symbol Source #
getDeclaredSyms :: Sign -> Set Symbol Source #
getDefinedSyms :: Sign -> Set Symbol Source #
getLocalSyms :: Sign -> Set Symbol Source #
getLocalDefs :: Sign -> [DEF] Source #
getGlobalSyms :: Sign -> Set Symbol Source #
getGlobalDefs :: Sign -> [DEF] Source #
isConstant :: Symbol -> Sign -> Bool Source #
isDeclaredSym :: Symbol -> Sign -> Bool Source #
isDefinedSym :: Symbol -> Sign -> Bool Source #
isLocalSym :: Symbol -> Sign -> Bool Source #
isGlobalSym :: Symbol -> Sign -> Bool Source #
getFreeVars :: EXP -> Set VAR Source #
getConstants :: EXP -> Set Symbol Source #