verigraph-1.1.1: Software specification and verification tool based on graph rewriting.

MaintainerGuilherme G. Azzi <ggazzi@inf.ufrgs.br>
Stabilityprovisional
Safe HaskellSafe
LanguageHaskell2010

Logic.Ctl

Contents

Description

 

Synopsis

CTL Expressions

data Expr Source #

CTL expressions

Instances

Eq Expr Source # 

Methods

(==) :: Expr -> Expr -> Bool #

(/=) :: Expr -> Expr -> Bool #

Read Expr Source # 
Show Expr Source # 

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Pretty Expr Source # 

Methods

pretty :: Expr -> Doc

prettyList :: [Expr] -> Doc

parseExpr :: SourceName -> String -> Either ParseError Expr Source #

Parse a CTL expressions from the given string.

The first parameter will be used to identify the source of the text in error messages.

This parser is compatible with the pretty printer of expressions, that is, pretty printed expressions will be parseable by this (unless they contain illegal identifiers for atomic propositions).

Model checking

check :: KripkeStructure String -> Expr -> Int -> Bool Source #

Check if the given expression holds in the given state of the Kripke structure.

satisfyExpr :: KripkeStructure String -> Expr -> [State String] Source #

Obtain all states that satisfy the given CTL expression.

satisfyExpr' :: KripkeStructure String -> Expr -> [Int] Source #

Obtain the identifiers of all states that satisfy the given CTL expression.