Packages

final case class Polarity(inSuc: Boolean) extends AnyVal with Product with Serializable

Polarity of a formula.

There are two polarities, positive/in-succedent and negative/in-antecedent. Polarities serve multiple purposes:

  • They distinguish strong and weak quantifiers. A universal (∀) quantifier in positive/in-succedent polarity is strong (requires an eigenvariable/Skolem inference), and is weak in negative/in-antecedent polarity (can be instantiated with any term).
  • They guide the construction of expansion trees and their deep formulas. A merge in positive polarity has a disjunction as deep formula, in negative polarity it has a conjunction.
  • They specify the side/cedent of a sequent.

Our convention is based on proofs in LK:

  • formulas in the succedent are positive
  • formulas in the antecedent are negative

This is used consistently, except for a major exception: in resolution proofs, the polarity is reversed. A formula in the antecedent of a clause in a resolution proof has the negative/in-antecedent polarity (as it is in the antecedent of a sequent). However upon conversion to LK/ET, the polarity switches to positive/in-succedent polarity.

Source
Polarity.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Polarity
  2. Serializable
  3. Product
  4. Equals
  5. AnyVal
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Polarity(inSuc: Boolean)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Polarity toany2stringadd[Polarity] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Polarity, B)
    Implicit
    This member is added by an implicit conversion from Polarity toArrowAssoc[Polarity] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def ensuring(cond: (Polarity) => Boolean, msg: => Any): Polarity
    Implicit
    This member is added by an implicit conversion from Polarity toEnsuring[Polarity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (Polarity) => Boolean): Polarity
    Implicit
    This member is added by an implicit conversion from Polarity toEnsuring[Polarity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: => Any): Polarity
    Implicit
    This member is added by an implicit conversion from Polarity toEnsuring[Polarity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): Polarity
    Implicit
    This member is added by an implicit conversion from Polarity toEnsuring[Polarity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  12. def inAnt: Boolean
  13. val inSuc: Boolean
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def negative: Boolean
  16. def positive: Boolean
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. def toString(): String
    Definition Classes
    Polarity → Any
  19. def unary_!: Polarity

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Polarity toStringFormat[Polarity] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (Polarity, B)
    Implicit
    This member is added by an implicit conversion from Polarity toArrowAssoc[Polarity] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd fromPolarity to any2stringadd[Polarity]

Inherited by implicit conversion StringFormat fromPolarity to StringFormat[Polarity]

Inherited by implicit conversion Ensuring fromPolarity to Ensuring[Polarity]

Inherited by implicit conversion ArrowAssoc fromPolarity to ArrowAssoc[Polarity]

Ungrouped