Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines types and functions for Theoretical Models.
Synopsis
- class Theory t where
- valid_context :: Lens' t [TheoryModel]
- spaces :: Lens' t [SpaceDefn]
- quantities :: Lens' t [QuantityDict]
- operations :: Lens' t [ConceptChunk]
- defined_quant :: Lens' t [ModelQDef]
- invariants :: Lens' t [ModelExpr]
- defined_fun :: Lens' t [ModelQDef]
- data TheoryModel
- tm :: (Quantity q, MayHaveUnit q, Concept c) => ModelKind ModelExpr -> [q] -> [c] -> [ModelQDef] -> [ModelExpr] -> [ModelQDef] -> [DecRef] -> String -> [Sentence] -> TheoryModel
- tmNoRefs :: (Quantity q, MayHaveUnit q, Concept c) => ModelKind ModelExpr -> [q] -> [c] -> [ModelQDef] -> [ModelExpr] -> [ModelQDef] -> String -> [Sentence] -> TheoryModel
Class
Theories are the basis for building models with context, spaces, quantities, operations, invariants, etc.
valid_context :: Lens' t [TheoryModel] Source #
spaces :: Lens' t [SpaceDefn] Source #
quantities :: Lens' t [QuantityDict] Source #
operations :: Lens' t [ConceptChunk] Source #
defined_quant :: Lens' t [ModelQDef] Source #
invariants :: Lens' t [ModelExpr] Source #
defined_fun :: Lens' t [ModelQDef] Source #
Instances
Theory TheoryModel Source # | Finds the aspects of the |
Defined in Theory.Drasil.Theory valid_context :: Lens' TheoryModel [TheoryModel] Source # spaces :: Lens' TheoryModel [SpaceDefn] Source # quantities :: Lens' TheoryModel [QuantityDict] Source # operations :: Lens' TheoryModel [ConceptChunk] Source # defined_quant :: Lens' TheoryModel [ModelQDef] Source # invariants :: Lens' TheoryModel [ModelExpr] Source # defined_fun :: Lens' TheoryModel [ModelQDef] Source # |
Type
data TheoryModel Source #
A TheoryModel is a collection of:
- tUid - a UID,
- con - a ConceptChunk,
- vctx - definition context (
TheoryModel
s), - spc - type definitions (
SpaceDefn
s), - quan - quantities (
QuantityDict
s), - ops - operations (
ConceptChunk
s), - defq - definitions (
QDefinition
s), - invs - invariants (
ModelExpr
s), - dfun - defined functions (
QDefinition
s), - ref - accompanying references (
DecRef
s), - lb - a label (
SpaceDefn
), - ra - reference address (
SpaceDefn
), - notes - additional notes (
Sentence
s).
Right now, neither the definition context (vctx) nor the spaces (spc) are ever defined.