reduceHolToFol

gapt.expr.formula.fol.reduceHolToFol

Creates a FOL formula from a HOL formula, but applies transformations which do not preserve validity! Transformations applied:

  • Replace all subterms (\x.t[v]) by a function q_n(v). The scope parameter is needed to pass existing term-constant mappings.
  • Change the type of constants and variables s.t. they are first order (i.e. Const("c", To->Ti) is mapped to FOLConst("c",Ti)
  • Logical operators inside the term structure are replaced by first order terms

Attributes

Note

Make sure you need all of these tricks. To only replace abstraction subterms, use replaceAbstractions.

Source
hol2fol.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(formula: Formula)(implicit definition: Hol2FolDefinitions): FOLFormula

Apply method for a formula when scope needs to passed on in a recursion.

Apply method for a formula when scope needs to passed on in a recursion.

Value parameters

formula

the formula to convert

Attributes

Returns

a pair of the reduced formula and the updated scope

Source
hol2fol.scala
def apply(term: Expr)(implicit definition: Hol2FolDefinitions): FOLExpression

Apply method for a an expression when scope needs to passed on in a recursion.

Apply method for a an expression when scope needs to passed on in a recursion.

Value parameters

term

the expression to convert

Attributes

Returns

a pair of the reduced expression and the updated scope

Source
hol2fol.scala