
By: Guest | Date: Feb 15 2014 18:34 | Format: Haskell | Expires: never | Size: 637 B | Hits: 1023
- module Ex12_QBF2 where
- import DTC
- import Ex12_QBF1
- data Disjunction a = Disjunction a a
- data ExistQuantor a = ExistQuantor a
- instance EvalBQF Disjunction where
- evalFormula (Disjunction x y) = x || y
- instance EvalBQF ExistQuantor where
- evalFormula (ExistQuantor e) = e
- disj :: (Disjunction :<: f) => Mu f -> Mu f -> Mu f
- disj x y = inject (Disjunction x y)
- exists :: (ExistQuantor :<: f) => Mu f -> Mu f
- exists x = inject (ExistQuantor x)
Latest pastes
1 hours ago
1 hours ago
1 hours ago
3 hours ago
6 hours ago