Hets - the Heterogeneous Tool Set

Copyright(c) DFKI GmbH 2011
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilityportable
Safe HaskellNone

Static.DgUtils

Contents

Description

 

Synopsis

node label types

data NodeName

name of a node in a DG; auxiliary nodes may have extension string and non-zero number (for these, names are usually hidden).

Constructors

NodeName 

hasOpenConsStatus :: Bool -> ConsStatus -> Bool

test if a conservativity is open, return input for None

data NodeMod

node modifications

Constructors

NodeMod 

Fields

delAx :: Bool
 
delTh :: Bool
 
addSen :: Bool
 
delSym :: Bool
 
addSym :: Bool
 

unMod :: NodeMod

an unmodified node

edge types

newtype EdgeId

unique number for edges

Constructors

EdgeId 

Fields

getEdgeNum :: Int
 

incEdgeId :: EdgeId -> EdgeId

next edge id

startEdgeId :: EdgeId

the first edge in a graph

data DGRule

Rules in the development graph calculus, Sect. IV:4.4 of the CASL Reference Manual explains them in depth

showConsStatus :: ConsStatus -> String

to be displayed as edge label

getDGEdgeTypeName :: DGEdgeType -> String

converts a DGEdgeType to a String

listDGEdgeTypes :: [DGEdgeType]

Creates a list with all DGEdgeType types

isDefEdgeType :: DGEdgeType -> Bool

check an EdgeType and see if its a definition link

datatypes for storing the nodes of the ref tree in the global env

for node names

handle edge numbers and proof bases

defaultEdgeId :: EdgeId

create a default ID which has to be changed when inserting a certain edge.

edgeInProofBasis :: EdgeId -> ProofBasis -> Bool

checks if the given edge is contained in the given proof basis..

utilities

getMapAndMaxIndex :: Ord k => k -> (b -> Map k a) -> b -> (Map k a, k)

liftOr :: (a -> Bool) -> (a -> Bool) -> a -> Bool

or two predicates