License | GNU LGPLv3 |
---|---|
Maintainer | paul.bittner@uni-ulm.de |
Safe Haskell | Safe |
Definition and operations on the ternary logic with null.
In the paper, we call formulas of this logic nullable propositional formulas.
Reuses PropositionalFormula
s.
Synopsis
- type NullableFormula a = Maybe (PropositionalFormula a)
- isnull :: NullableFormula a -> Bool
- notnull :: NullableFormula a -> Bool
- assure :: NullableFormula a -> PropositionalFormula a
- nullable_simplify :: NullableFormula a -> NullableFormula a
- prettyPrint :: Show a => Maybe a -> String
Documentation
type NullableFormula a = Maybe (PropositionalFormula a) Source #
Data type for the ternary logic by Sobocinski.
The Nothing
case represents null as used in our paper.
isnull :: NullableFormula a -> Bool Source #
Returns true
iff the given formula is the value null.
notnull :: NullableFormula a -> Bool Source #
Returns false
iff the given formula is the value null.
assure :: NullableFormula a -> PropositionalFormula a Source #
Converts the given nullable formula to a propositional formula, assuming that the given formula is not null. Crashes otherwise.
nullable_simplify :: NullableFormula a -> NullableFormula a Source #
Simplifies the given formula. Uses simplify
.
prettyPrint :: Show a => Maybe a -> String Source #
Pretty Printing for nullable objects such as the nullable propositional logic.
Orphan instances
Logic a => Logic (Maybe a) Source # | Any |