
gapt.expr.formula.fol.FOLAtom.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gapt_3 Show documentation
Show all versions of gapt_3 Show documentation
General Architecture for Proof Theory
The newest version!
package gapt.expr.formula.fol
import gapt.expr.Apps
import gapt.expr.formula.Atom
trait FOLAtom extends FOLPartialAtom with Atom with FOLFormula {
private[expr] override val numberOfArguments: Int = 0
}
object FOLAtom {
def apply(sym: String, args: FOLTerm*)(implicit dummyImplicit: DummyImplicit): FOLAtom = FOLAtom(sym, args)
def apply(sym: String, args: Seq[FOLTerm]): FOLAtom =
Apps(FOLAtomConst(sym, args.size), args).asInstanceOf[FOLAtom]
def unapply(e: FOLAtom): Option[(String, List[FOLTerm])] = e match {
case Apps(FOLAtomConst(sym, _), args) if e.isInstanceOf[FOLAtom] =>
Some((sym, args.asInstanceOf[List[FOLTerm]]))
case _ => None
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy