|
|
|
|
|
|
Synopsis |
|
|
|
|
Formula syntax tree
|
|
type VarName = String |
|
data Formula |
Modal formulas
| Constructors | | Instances | |
|
|
data Note |
Unimportant notes
| Constructors | NoteTruth [(String, Bool)] | in which worlds is this formula true/false?
|
| Instances | |
|
|
Operators
|
|
data BinOp |
A binary operator that combines two formulas into a larger one
| Constructors | | Instances | |
|
|
precedence :: BinOp -> (Int, Int, Int) |
The precedence and associativity of an operator
|
|
Top level syntax
|
|
data Program |
A program is a formula which can contain extra progamming constructs
| Constructors | | Instances | |
|
|
evalProgram :: Program -> (Axioms, Formula) |
Extract the formula and axioms from a program
|
|
traverseProgram :: (Formula -> Formula -> Formula) -> Program -> Program |
Traverse a formula bottom up
|
|
Properties
|
|
agents :: Formula -> Set Agents |
The agents mentioned in a formula
|
|
Produced by Haddock version 0.8 |