undoHol2Fol
This is implements some heuristics to convert a fol formula obtained by gapt.expr.formula.fol.replaceAbstractions and gapt.expr.formula.fol.reduceHolToFol back to its original signature. Sometimes, types have to be guessed and the code is poorly tested, so it is unclear how general it is. It works (and is necessary) during the acnf creation of the n-tape proof.
To extract a signature, use the undoHol2Fol.getSignature, to to the back translation use undoHol2Fol.backtranslate.
Attributes
- Source
- hol2fol_heuristics.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
undoHol2Fol.type
Members list
Value members
Concrete methods
Translate the fol formula e to a hol formula over the given signature for constants and variables.
Translate the fol formula e to a hol formula over the given signature for constants and variables.
Value parameters
- abssymbol_map
-
a mapping fol constant name to a lambda expression (obtained by replaceAbstractions)
- e
-
the fol formula.
- sig_consts
-
a mapping fol name to hol const with appropriate type
- sig_vars
-
a mapping fol name to hol var with appropriate type
Attributes
- Returns
-
the changed formula
- Source
- hol2fol_heuristics.scala
We do some dirty stuff in here to translate a prover9 term back to the richer type signature of hol proofs, undoing replace abstractions at the same time.
We do some dirty stuff in here to translate a prover9 term back to the richer type signature of hol proofs, undoing replace abstractions at the same time.
Attributes
- Source
- hol2fol_heuristics.scala
Attributes
- Source
- hol2fol_heuristics.scala
Attributes
- Source
- hol2fol_heuristics.scala
Concrete fields
Attributes
- Source
- hol2fol_heuristics.scala
Attributes
- Source
- hol2fol_heuristics.scala