class reduceHolToFol extends AnyRef
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
- Source
- hol2fol.scala
- Note
Make sure you need all of these tricks. To only replace abstraction subterms, use replaceAbstractions.
- Alphabetic
- By Inheritance
- reduceHolToFol
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new reduceHolToFol()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to any2stringadd[reduceHolToFol] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (reduceHolToFol, B)
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to ArrowAssoc[reduceHolToFol] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(fss: List[HOLSequent], scope: Map[Expr, String], id: Counter): (List[HOLSequent], Map[Expr, String])
Apply method for a an FSequent when scope needs to passed on in a recursion.
Apply method for a an FSequent when scope needs to passed on in a recursion.
- fss
the fsequent to convert
- scope
a mapping of replaced subterms to the constant names which replaced them. you need this for chained applications, like sequents or lists of formulas.
- id
an object with a function which nextId, which provides new numbers.
- returns
a pair of the reduced expression and the updated scope
-
def
apply(s: HOLSequent, scope: Map[Expr, String], id: Counter): (HOLSequent, Map[Expr, String])
Apply method for a an FSequent when scope needs to passed on in a recursion.
Apply method for a an FSequent when scope needs to passed on in a recursion.
- s
the fsequent to convert
- scope
a mapping of replaced subterms to the constant names which replaced them. you need this for chained applications, like sequents or lists of formulas.
- id
an object with a function which nextId, which provides new numbers.
- returns
a pair of the reduced expression and the updated scope
-
def
apply(term: Expr, scope: Map[Expr, String], id: Counter): (FOLExpression, replaceAbstractions.ConstantsMap)
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.
- term
the expression to convert
- scope
a mapping of replaced subterms to the constant names which replaced them. you need this for chained applications, like sequents or lists of formulas.
- id
an object with a function which nextId, which provides new numbers.
- returns
a pair of the reduced expression and the updated scope
-
def
apply(formula: Formula, scope: Map[Expr, String], id: Counter): (FOLFormula, Map[Expr, String])
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.
- formula
the formula to convert
- scope
a mapping of replaced subterms to the constant names which replaced them. you need this for chained applications, like sequents or lists of formulas.
- id
an object with a function which nextId, which provides new numbers.
- returns
a pair of the reduced formula and the updated scope
-
def
apply(fs: List[HOLSequent]): List[HOLSequent]
Convenience method when a single list of fsequents is converted.
Convenience method when a single list of fsequents is converted. Multiple expressions need to pass a scope which holds the replacements which happened so far.
- fs
an fsequent to convert
- returns
the reduced fsequent
-
def
apply(fs: HOLSequent): HOLSequent
Convenience method when only a single fsequent is converted.
Convenience method when only a single fsequent is converted. Multiple expressions need to pass a scope which holds the replacements which happened so far.
- fs
an fsequent to convert
- returns
the reduced fsequent
-
def
apply(formula: Formula): FOLFormula
Convenience method when only a single formula is converted.
Convenience method when only a single formula is converted. Multiple expressions need to pass a scope which holds the replacements which happened so far.
- formula
a HOL formula to convert
- returns
the reduced FOL formula
-
def
apply(term: Expr): FOLExpression
Convenience method when only a single expression is converted.
Convenience method when only a single expression is converted. Multiple expressions need to pass a scope which holds the replacements which happened so far.
- term
a HOL expression to convert
- returns
the reduced FOL expression
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (reduceHolToFol) ⇒ Boolean, msg: ⇒ Any): reduceHolToFol
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to Ensuring[reduceHolToFol] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (reduceHolToFol) ⇒ Boolean): reduceHolToFol
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to Ensuring[reduceHolToFol] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): reduceHolToFol
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to Ensuring[reduceHolToFol] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): reduceHolToFol
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to Ensuring[reduceHolToFol] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to StringFormat[reduceHolToFol] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (reduceHolToFol, B)
- Implicit
- This member is added by an implicit conversion from reduceHolToFol to ArrowAssoc[reduceHolToFol] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
This is the API documentation for GAPT.
The main package is at.logic.gapt.