gapt.expr.formula.fol
Members list
Type members
Classlikes
Attributes
- Source
- FOLPosition.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BinaryConnective.type
Attributes
- Companion
- object
- Source
- FOLAtom.scala
- Supertypes
-
trait FOLFormulatrait FOLExpressiontrait Atomtrait Formulatrait FOLPartialAtomtrait HOLPartialAtomclass Exprclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait PropAtom
Attributes
- Companion
- trait
- Source
- FOLAtom.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLAtom.type
Attributes
- Companion
- object
- Source
- FOLAtomConst.scala
- Supertypes
-
trait FOLPartialAtomtrait HOLAtomConsttrait HOLPartialAtomclass Consttrait VarOrConstclass Exprclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait PropAtom
Attributes
- Companion
- trait
- Source
- FOLAtomConst.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLAtomConst.type
Attributes
- Companion
- object
- Source
- FOLConst.scala
- Supertypes
-
trait FOLFunctionConsttrait FOLTermtrait FOLExpressiontrait FOLPartialTermclass Consttrait VarOrConstclass Exprclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Source
- FOLConst.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLConst.type
Attributes
- Source
- FOLExpression.scala
- Supertypes
- Known subtypes
-
trait FOLFormulatrait FOLAtomtrait PropAtomtrait PropFormulatrait FOLTermtrait FOLConsttrait FOLVarShow all
Attributes
- Source
- FOLFormula.scala
- Supertypes
- Known subtypes
Attributes
- Source
- FOLFunction.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLFunction.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 Objecttrait Matchableclass Any
- Self type
-
FOLFunctionArgs.type
Attributes
- Companion
- object
- Source
- FOLFunctionConst.scala
- Supertypes
-
trait FOLPartialTermclass Consttrait VarOrConstclass Exprclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait FOLConst
Attributes
- Companion
- trait
- Source
- FOLFunctionConst.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLFunctionConst.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 Objecttrait Matchableclass Any
- Self type
-
FOLFunctionName.type
Attributes
- Source
- FOLHeadType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLHeadType.type
Attributes
- Source
- FOLPartialAtom.scala
- Supertypes
- Known subtypes
Attributes
- Source
- FOLPartialTerm.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- class
- Source
- FOLPosition.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FOLPosition.type
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
Attributes
- Source
- FOLQuantifier.scala
- Supertypes
-
trait LogicalConstantclass Consttrait VarOrConstclass Exprclass Objecttrait Matchableclass AnyShow all
Attributes
- Source
- FOLTerm.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- object
- Source
- FOLVar.scala
- Supertypes
-
trait FOLTermtrait FOLExpressiontrait FOLPartialTermclass Vartrait VarOrConstclass Exprclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Source
- FOLVar.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FOLVar.type
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 Objecttrait Matchableclass Any
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Numeral.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
QuantifierStructure.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Utils.type
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 Objecttrait Matchableclass Any
- Self type
-
changeTypeIn.type
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 Objecttrait Matchableclass Any
- Self type
-
flatSubterms.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
folTermSize.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
getArityOfConstants.type
Attributes
- Source
- hol2fol.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
invertBijectiveMap.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
isFOLFunction.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
isFOLPrenexPi1.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
isFOLPrenexSigma1.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
isPrenexPi1.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
isPrenexSigma1.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
naive.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
- Self type
-
reduceHolToFol.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 Objecttrait Matchableclass Any
- Self type
-
replaceAbstractions.type
Attributes
- Source
- utils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
thresholds.type
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 Objecttrait Matchableclass Any
- Self type
-
undoHol2Fol.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 Objecttrait Matchableclass Any
- Self type