gapt.expr.formula.hol

Members list

Type members

Classlikes

Attributes

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

Attributes

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

Attributes

Companion
trait
Source
HOLAtomConst.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object HOLFunction

Attributes

Source
HOLFunction.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object HOLOrdering extends HOLOrdering

Ordering for HOL Formulas (also for FOL)

Ordering for HOL Formulas (also for FOL)

Attributes

Companion
class
Source
orderings.scala
Supertypes
class HOLOrdering
trait Ordering[Expr]
trait Equiv[Expr]
trait Serializable
trait Comparator[Expr]
class Object
trait Matchable
class Any
Show all
Self type
class HOLOrdering extends Ordering[Expr]

Attributes

Companion
object
Source
orderings.scala
Supertypes
trait Ordering[Expr]
trait Equiv[Expr]
trait Serializable
trait Comparator[Expr]
class Object
trait Matchable
class Any
Show all
Known subtypes
object HOLOrdering.type
trait HOLPartialAtom extends Expr

Attributes

Source
HOLPartialAtom.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
Known subtypes
trait FOLAtom
trait PropAtom
trait FOLAtomConst
trait HOLAtomConst
trait Atom
Show all
object HOLPosition

Attributes

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

Represents a position in a gapt.expr.Expr.

Represents a position in a gapt.expr.Expr.

Positions are represented by lists of Integers. The empty list denotes the expression itself. A nonempty list denotes a position in the left or right subexpression according to whether it starts with 1 or 2.

The difference between this and gapt.expr.util.LambdaPosition lies in the handling of quantifiers and binary logical connectives. LambdaPositions treat e.g. conjunctions like any other function, while HOLPositions treat them naturally, i.e. 1 denotes the left conjunct and 2 the right conjunct.

Note that this can cause unexpeted behavior: Say a variable of type o -> o -> o is substituted by ∧ in some expression. The LambdaPositions will stay the same, but the HOLPositions won't.

Value parameters

list

The list of integers describing the position.

Attributes

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

Ordering on types.

Ordering on types.

Attributes

Companion
class
Source
orderings.scala
Supertypes
class TAOrdering
trait Ordering[Ty]
trait Equiv[Ty]
trait Serializable
trait Comparator[Ty]
class Object
trait Matchable
class Any
Show all
Self type
TAOrdering.type
class TAOrdering extends Ordering[Ty]

Attributes

Companion
object
Source
orderings.scala
Supertypes
trait Ordering[Ty]
trait Equiv[Ty]
trait Serializable
trait Comparator[Ty]
class Object
trait Matchable
class Any
Show all
Known subtypes
object TAOrdering.type
object atoms

Return the list of all atoms in the given argument.

Return the list of all atoms in the given argument.

Attributes

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

Attributes

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

True iff All or Ex matches any subterm of e.

True iff All or Ex matches any subterm of e.

Attributes

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

True iff All or Ex is contained in the logical structure of the given Formula. For example, P( (all x:x) ) contains a quantifier, but it is inside of an atom.

True iff All or Ex is contained in the logical structure of the given Formula. For example, P( (all x:x) ) contains a quantifier, but it is inside of an atom.

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 dualize

Dualize a formula in NNF by switching conjunctions with disjunctions, universal with existential quantifiers, top with bottom and positive literals with negative literals. The formula dualize( A ) is logically equivalent to the negation of A.

Dualize a formula in NNF by switching conjunctions with disjunctions, universal with existential quantifiers, top with bottom and positive literals with negative literals. The formula dualize( A ) is logically equivalent to the negation of A.

Attributes

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

Attributes

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

Removes top-level connectives from a formula.

Removes top-level connectives from a formula.

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 instantiate

Instantiates a formula with terms.

Instantiates a formula with terms.

Attributes

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

Returns true iff the given Formula is an atom (which does not include top nor bottom).

Returns true iff the given Formula is an atom (which does not include top nor bottom).

Attributes

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

Returns true iff the given Formula is an extended atom, i.e. an atom or top or bottom.

Returns true iff the given Formula is an extended atom, i.e. an atom or top or bottom.

Attributes

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

Returns true iff the given Expr consists of a logical constant.

Returns true iff the given Expr consists of a logical constant.

Attributes

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

Returns true iff the given Formula starts with a negation.

Returns true iff the given Formula starts with a negation.

Attributes

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

Returns true iff the given formula is prenex.

Returns true iff the given formula is prenex.

Attributes

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

Returns true iff the given Formula is a reflexivity atom.

Returns true iff the given Formula is a reflexivity atom.

Attributes

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

the logical complexity of this formula, i.e. the number of logical connectives and atoms starting from the root of the formula. The inner structure of atoms is not counted.

the logical complexity of this formula, i.e. the number of logical connectives and atoms starting from the root of the formula. The inner structure of atoms is not counted.

Attributes

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

Attributes

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

Return the number of atoms in the given argument.

Return the number of atoms in the given argument.

Attributes

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

Attributes

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

Remove the leading negation from a formula.

Remove the leading negation from a formula.

Attributes

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

Attributes

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