All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gapt.expr.formula.Quant.scala Maven / Gradle / Ivy

The newest version!
package gapt.expr.formula

import gapt.expr.Var

object Quant {
  def apply(x: Var, sub: Formula, pol: Boolean): Formula =
    if (pol) All(x, sub) else Ex(x, sub)

  def unapply(f: Formula): Option[(Var, Formula, Boolean)] =
    f match {
      case All(v, g) => Some((v, g, true))
      case Ex(v, g)  => Some((v, g, false))
      case _         => None
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy