Copyright | (c) Eugen Kuksa Uni Bremen 2011 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | eugenk@informatik.uni-bremen.de |
Stability | experimental |
Portability | non-portable (via Logic.Logic) |
Safe Haskell | Safe |
CommonLogic.Sublogic
Description
Sublogics for CommonLogic
Synopsis
- sl_basic_spec :: CommonLogicSL -> BASIC_SPEC -> CommonLogicSL
- data CLTextType
- data CommonLogicSL = CommonLogicSL {
- format :: CLTextType
- compact :: Bool
- sublogics_max :: CommonLogicSL -> CommonLogicSL -> CommonLogicSL
- top :: CommonLogicSL
- bottom :: CommonLogicSL
- propsl :: CommonLogicSL
- folsl :: CommonLogicSL
- fullclsl :: CommonLogicSL
- sublogics_all :: [CommonLogicSL]
- sublogics_name :: CommonLogicSL -> String
- sl_sig :: CommonLogicSL -> Sign -> CommonLogicSL
- sl_sym :: CommonLogicSL -> Symbol -> CommonLogicSL
- sl_mor :: CommonLogicSL -> Morphism -> CommonLogicSL
- sl_symmap :: CommonLogicSL -> SYMB_MAP_ITEMS -> CommonLogicSL
- sl_symitems :: CommonLogicSL -> SYMB_ITEMS -> CommonLogicSL
- sublogic_text :: CommonLogicSL -> TEXT -> CommonLogicSL
- sublogic_name :: CommonLogicSL -> NAME -> CommonLogicSL
- prSymbolM :: CommonLogicSL -> Symbol -> Maybe Symbol
- prSig :: CommonLogicSL -> Sign -> Sign
- prMor :: CommonLogicSL -> Morphism -> Morphism
- prSymMapM :: CommonLogicSL -> SYMB_MAP_ITEMS -> Maybe SYMB_MAP_ITEMS
- prSymItemsM :: CommonLogicSL -> SYMB_ITEMS -> Maybe SYMB_ITEMS
- prName :: CommonLogicSL -> NAME -> Maybe NAME
- prBasicSpec :: CommonLogicSL -> BASIC_SPEC -> BASIC_SPEC
Documentation
sl_basic_spec :: CommonLogicSL -> BASIC_SPEC -> CommonLogicSL Source #
determines sublogic for basic spec
data CLTextType Source #
types of sublogics
Constructors
Propositional | Text without quantifiers |
FirstOrder | Text in First Order Logic |
Impredicative |
Instances
Bounded CLTextType Source # | |
Defined in CommonLogic.Sublogic | |
Enum CLTextType Source # | |
Defined in CommonLogic.Sublogic Methods succ :: CLTextType -> CLTextType pred :: CLTextType -> CLTextType toEnum :: Int -> CLTextType fromEnum :: CLTextType -> Int enumFrom :: CLTextType -> [CLTextType] enumFromThen :: CLTextType -> CLTextType -> [CLTextType] enumFromTo :: CLTextType -> CLTextType -> [CLTextType] enumFromThenTo :: CLTextType -> CLTextType -> CLTextType -> [CLTextType] | |
Eq CLTextType Source # | |
Defined in CommonLogic.Sublogic | |
Ord CLTextType Source # | |
Defined in CommonLogic.Sublogic Methods compare :: CLTextType -> CLTextType -> Ordering (<) :: CLTextType -> CLTextType -> Bool (<=) :: CLTextType -> CLTextType -> Bool (>) :: CLTextType -> CLTextType -> Bool (>=) :: CLTextType -> CLTextType -> Bool max :: CLTextType -> CLTextType -> CLTextType min :: CLTextType -> CLTextType -> CLTextType | |
Show CLTextType Source # | |
Defined in CommonLogic.Sublogic Methods showsPrec :: Int -> CLTextType -> ShowS show :: CLTextType -> String showList :: [CLTextType] -> ShowS | |
Generic CLTextType | |
Defined in CommonLogic.ATC_CommonLogic Associated Types type Rep CLTextType :: Type -> Type | |
FromJSON CLTextType | |
Defined in CommonLogic.ATC_CommonLogic | |
ToJSON CLTextType | |
Defined in CommonLogic.ATC_CommonLogic Methods toJSON :: CLTextType -> Value toEncoding :: CLTextType -> Encoding toJSONList :: [CLTextType] -> Value toEncodingList :: [CLTextType] -> Encoding | |
ShATermConvertible CLTextType | |
Defined in CommonLogic.ATC_CommonLogic Methods toShATermAux :: ATermTable -> CLTextType -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [CLTextType] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, CLTextType) fromShATermList' :: Int -> ATermTable -> (ATermTable, [CLTextType]) | |
type Rep CLTextType | |
Defined in CommonLogic.ATC_CommonLogic type Rep CLTextType = D1 ('MetaData "CLTextType" "CommonLogic.Sublogic" "main" 'False) (C1 ('MetaCons "Propositional" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FirstOrder" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Impredicative" 'PrefixI 'False) (U1 :: Type -> Type))) |
data CommonLogicSL Source #
sublogics for CommonLogic
Constructors
CommonLogicSL | |
Fields
|
Instances
sublogics_max :: CommonLogicSL -> CommonLogicSL -> CommonLogicSL Source #
Yields the greater sublogic
top :: CommonLogicSL Source #
Greates sublogc: FullCommonLogic
bottom :: CommonLogicSL Source #
Smallest sublogic: Propositional
propsl :: CommonLogicSL Source #
Propositional as Sublogic
folsl :: CommonLogicSL Source #
FirstOrder as Sublogic
sublogics_all :: [CommonLogicSL] Source #
all sublogics
sublogics_name :: CommonLogicSL -> String Source #
String representation of a Sublogic
sl_sig :: CommonLogicSL -> Sign -> CommonLogicSL Source #
determines the sublogic for a Signature
sl_sym :: CommonLogicSL -> Symbol -> CommonLogicSL Source #
determines the sublogic for symbols
sl_mor :: CommonLogicSL -> Morphism -> CommonLogicSL Source #
determines the sublogic for a morphism
sl_symmap :: CommonLogicSL -> SYMB_MAP_ITEMS -> CommonLogicSL Source #
determines the sublogic for symbol map items
sl_symitems :: CommonLogicSL -> SYMB_ITEMS -> CommonLogicSL Source #
determines sublogc for symb items
sublogic_text :: CommonLogicSL -> TEXT -> CommonLogicSL Source #
determines the sublogic for a complete text
sublogic_name :: CommonLogicSL -> NAME -> CommonLogicSL Source #
determines the sublogic for names, ignoring predicates
prSymMapM :: CommonLogicSL -> SYMB_MAP_ITEMS -> Maybe SYMB_MAP_ITEMS Source #
projection of symb map items to a sublogic
prSymItemsM :: CommonLogicSL -> SYMB_ITEMS -> Maybe SYMB_ITEMS Source #
prBasicSpec :: CommonLogicSL -> BASIC_SPEC -> BASIC_SPEC Source #
filters all TEXTs inside the BASIC_SPEC of which the sublogic is less than
or equal to cs