| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
ToySolver.Arith.FourierMotzkin.FOL
Documentation
solveFormula :: VarSet -> Formula (Atom Rational) -> SatResult Rational Source
returnssolveFormula{x1,…,xm} φsuch thatSatMM ⊧_LRA φwhen suchMexists,- returns
when suchUnsatMdoes not exists, and - returns
whenUnknownφis beyond LRA.
eliminateQuantifiers :: Formula (Atom Rational) -> Maybe (Formula (Atom Rational)) Source
Eliminate quantifiers and returns equivalent quantifier-free formula.
returns eliminateQuantifiers φ(ψ, lift) such that:
- ψ is a quantifier-free formula and
LRA ⊢ ∀y1, …, yn. φ ↔ ψwhere{y1, …, yn} = FV(φ) ⊇ FV(ψ), and - if
M ⊧_LRA ψthenlift M ⊧_LRA φ.
φ may or may not be a closed formula.