Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
solveFormula :: VarSet -> Formula (Atom Rational) -> SatResult Rational Source
returnssolveFormula
{x1,…,xm} φ
such thatSat
MM ⊧_LRA φ
when suchM
exists,- returns
when suchUnsat
M
does 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.