gapt.expr.formula.fol

Members list

Type members

Classlikes

Attributes

Source
FOLPosition.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
FOLAtom.scala
Supertypes
trait FOLFormula
trait Atom
trait Formula
class Expr
class Object
trait Matchable
class Any
Show all
Known subtypes
trait PropAtom
object FOLAtom

Attributes

Companion
trait
Source
FOLAtom.scala
Supertypes
class Object
trait Matchable
class Any
Self type
FOLAtom.type

Attributes

Companion
object
Source
FOLAtomConst.scala
Supertypes
trait HOLAtomConst
class Const
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Show all
Known subtypes
trait PropAtom
object FOLAtomConst

Attributes

Companion
trait
Source
FOLAtomConst.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
FOLConst.scala
Supertypes
trait FOLTerm
class Const
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Show all
object FOLConst

Attributes

Companion
trait
Source
FOLConst.scala
Supertypes
class Object
trait Matchable
class Any
Self type
FOLConst.type
trait FOLExpression extends Expr

Attributes

Source
FOLExpression.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
Known subtypes
trait FOLFormula
trait FOLAtom
trait PropAtom
trait PropFormula
trait FOLTerm
trait FOLConst
trait FOLVar
Show all

Attributes

Source
FOLFormula.scala
Supertypes
trait Formula
class Expr
class Object
trait Matchable
class Any
Show all
Known subtypes
trait FOLAtom
trait PropAtom
trait PropFormula
object FOLFunction

Attributes

Source
FOLFunction.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Unsafely extracts the function arguments from a term. Fails if the term is not a function.

Unsafely extracts the function arguments from a term. Fails if the term is not a function.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
FOLFunctionConst.scala
Supertypes
class Const
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Show all
Known subtypes
trait FOLConst

Attributes

Companion
trait
Source
FOLFunctionConst.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Unsafely extracts the function name from a term. Fails if the term is not a function.

Unsafely extracts the function name from a term. Fails if the term is not a function.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object FOLHeadType

Attributes

Source
FOLHeadType.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
FOLPartialAtom.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
Known subtypes
trait FOLAtom
trait PropAtom
trait FOLAtomConst
trait FOLPartialTerm extends Expr

Attributes

Source
FOLPartialTerm.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
Known subtypes
trait FOLConst
trait FOLTerm
trait FOLVar
object FOLPosition

Attributes

Companion
class
Source
FOLPosition.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class FOLPosition(list: List[Int])

Positions are given as lists of Integers. The empty list denotes the current expression itself. A list starting with k denotes a subexpression in the k^th^ argument of the current expression.

Positions are given as lists of Integers. The empty list denotes the current expression itself. A list starting with k denotes a subexpression in the k^th^ argument of the current expression.

Value parameters

list

The list describing the position.

Attributes

Companion
object
Source
FOLPosition.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
FOLQuantifier.scala
Supertypes
class Const
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Show all

Attributes

Source
FOLTerm.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
Show all
Known subtypes
trait FOLConst
trait FOLVar
trait FOLVar extends Var, FOLTerm

Attributes

Companion
object
Source
FOLVar.scala
Supertypes
trait FOLTerm
class Var
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Show all
object FOLVar

Attributes

Companion
trait
Source
FOLVar.scala
Supertypes
class Object
trait Matchable
class Any
Self type
FOLVar.type
class Hol2FolDefinitions(implicit val context: Context)

Definitions of the form cₜ(x₁,...,xₙ) := t(x₁,...,xₙ), where c is a constant and t is a term having as only free variables x₁,...,xₙ.

Definitions of the form cₜ(x₁,...,xₙ) := t(x₁,...,xₙ), where c is a constant and t is a term having as only free variables x₁,...,xₙ.

Value parameters

context

The context with respect to which these definitions are made. In particular the context defines the already used names.

Attributes

Source
hol2fol.scala
Supertypes
class Object
trait Matchable
class Any
object Numeral

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Numeral.type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Utils

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type
object changeTypeIn

Introducing abstractions and converting to fol changes more complex types to fol compatible ones. With changeTypeIn you can change them back.

Introducing abstractions and converting to fol changes more complex types to fol compatible ones. With changeTypeIn you can change them back.

Attributes

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

Flat subterms are obtained by decomposing a sequence of applications in one step i.e. the flat subterms of f x₁ ... xₙ are the term itself and the variables x₁,...,xₙ.

Flat subterms are obtained by decomposing a sequence of applications in one step i.e. the flat subterms of f x₁ ... xₙ are the term itself and the variables x₁,...,xₙ.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object folTermSize

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

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

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object isPrenexPi1

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object naive

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
naive.type
object natMaker

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
natMaker.type

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

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
Supertypes
class Object
trait Matchable
class Any
Self type

Replace lambda-abstractions by constants.

Replace lambda-abstractions by constants.

Each abstraction in an gapt.proofs.HOLSequent is replaced by a separate constant symbol; the used constants are returned in a Map.

Attributes

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

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
thresholds.type
object 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.

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
Supertypes
class Object
trait Matchable
class Any
Self type

Replaces the constants introduced by replaceAbstractions with the original lambda-abstractions.

Replaces the constants introduced by replaceAbstractions with the original lambda-abstractions.

Two lambda abstractions that are matching may have the same abstracting constant. However no effort is made to detect matching lambda abstractions in order to minimize the number of definitions.

Attributes

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