| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Circuit.Logics.Prop
Description
Classical propositional formulas and evaluation.
The formula AST is the "syntax"; Bool (and other Boolean carriers)
are compile targets for evalProp.
Documentation
Propositional formula over variable names v.
Constructors
| Var v | Atomic variable. |
| Bot | Falsehood. |
| Top | Truth. |
| Not (Prop v) | Negation. |
| And (Prop v) (Prop v) | Conjunction. |
| Or (Prop v) (Prop v) | Disjunction. |
| Imp (Prop v) (Prop v) | Implication. |
evalProp :: (Heyting b, Complemented b) => (v -> b) -> Prop v -> b Source #
Evaluate a formula given a valuation into a complemented Heyting algebra.