Djinn.LJTFormula

djinn-lib-0.0.1.2: Generate Haskell code from a type. Library extracted from djinn package.

Safe Haskell | Safe
Language | Haskell98

Djinn.LJTFormula

# Documentation

newtype Symbol

Constructors

Symbol String |

Instances

Eq Symbol |
Ord Symbol |
Show Symbol |

data Formula

Constructors

Conj [Formula] |
Disj [(ConsDesc, Formula)] |
Formula :-> Formula infixr 2 |
PVar Symbol |

Instances

Eq Formula |
Ord Formula |
Show Formula |

(<->) :: Formula -> Formula -> Formula infix 2

(&) :: Formula -> Formula -> Formula infixl 4

(|:) :: Formula -> Formula -> Formula infixl 3

fnot :: Formula -> Formula

false :: Formula

true :: Formula

data ConsDesc

Constructors

ConsDesc String Int |

Instances

Eq ConsDesc |
Ord ConsDesc |
Show ConsDesc |

data Term

Constructors

Var Symbol |
Lam Symbol Term |
Apply Term Term |
Ctuple Int |
Csplit Int |
Cinj ConsDesc Int |
Ccases [ConsDesc] |
Xsel Int Int Term |

Instances

Eq Term |
Ord Term |
Show Term |

applys :: Term -> [Term] -> Term

freeVars :: Term -> [Symbol]