Packages

  • package root
    Definition Classes
    root
  • package provingground

    This is work towards automated theorem proving based on learning, using homotopy type theory (HoTT) as foundations and natural language processing.

    This is work towards automated theorem proving based on learning, using homotopy type theory (HoTT) as foundations and natural language processing.

    The implementation of homotopy type theory is split into:

    • the object HoTT with terms, types, functions and dependent functions, pairs etc
    • the package induction with general inductive types and recursion/induction on these.

    The learning package has the code for learning.

    Scala code, including the spire library, is integrated with homotopy type theory in the scalahott package

    We have implemented a functor based approach to translation in the translation package, used for nlp as well as serialization and parsing.

    The library package is contains basic structures implemented in HoTT.

    Definition Classes
    root
  • package induction

    Much of the richness of HoTT is in the definitions of Inductive types (and their indexed counterparts) and of (dependent) functions on these by recursion and induction These are implemented using several layers of recursive definitions and diagonals (i.e., fixed points).

    Much of the richness of HoTT is in the definitions of Inductive types (and their indexed counterparts) and of (dependent) functions on these by recursion and induction These are implemented using several layers of recursive definitions and diagonals (i.e., fixed points). In HoTT, recursion and induction are applications of (dependent) functions rec_W,X and ind_W, Xs to the definition data.

    It is useful to capture information regarding inductive types and the recursion and induction functions in scala types. Our implementation is designed to do this.

    Inductive Type Definitions

    Inductive types are specified by introduction rules. Each introduction rule is specified in ConstructorShape (without specifying the type) and ConstructorTL including the specific type. The full definition is in ConstructorSeqTL.

    Recursion and Induction functions

    These are defined recursively, first for each introduction rule and then for the inductive type as a whole. A subtlety is that the scala type of the rec_W,X and induc_W, Xs functions depends on the scala type of the codomain X (or family Xs). To make these types visible, some type level calculations using implicits are done, giving traits ConstructorPatternMap and ConstructorSeqMap that have recursive definition of the recursion and induction functions, the former for the case of a single introduction rule. Traits ConstructorSeqMapper and ConstructorPatternMapper provide the lifts.

    Indexed Versions

    There are indexed versions of all these definitions, to work with indexed inductive type families.

    Definition Classes
    provingground
  • object ConstructorShape
    Definition Classes
    induction
  • CnstDepFuncConsShape
  • CnstFuncConsShape
  • FuncConsShape
  • IdShape

case class FuncConsShape[HS <: HList, H <: Term with Subs[H], HC <: Term with Subs[HC], F <: Term with Subs[F]](tail: IterFuncShape[H, F], head: ConstructorShape[HS, H, HC]) extends ConstructorShape[::[FuncConsShape.type, HS], H, Func[F, HC]] with Product with Serializable

ConstructorShape corresponding to an introduction rule of the form (.. -> W) -> head

Linear Supertypes
Serializable, Product, Equals, ConstructorShape[::[FuncConsShape.type, HS], H, Func[F, HC]], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FuncConsShape
  2. Serializable
  3. Product
  4. Equals
  5. ConstructorShape
  6. AnyRef
  7. 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 FuncConsShape(tail: IterFuncShape[H, F], head: ConstructorShape[HS, H, HC])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toany2stringadd[FuncConsShape[HS, H, HC, F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def -->:(that: IdShape.type): FuncConsShape[::[FuncConsShape.type, HS], H, Func[F, HC], H]

    returns shape that -> this' where that must be the shape for inductive type W

    returns shape that -> this' where that must be the shape for inductive type W

    Definition Classes
    ConstructorShape
  5. def -->:[F <: Term with Subs[F]](that: IterFuncShape[H, F]): FuncConsShape[::[FuncConsShape.type, HS], H, Func[F, HC], F]

    returns shape that -> this' where that is of the form W, A -> W etc; invoking this is an error if we that is independent of W

    returns shape that -> this' where that is of the form W, A -> W etc; invoking this is an error if we that is independent of W

    Definition Classes
    ConstructorShape
  6. def ->[B](y: B): (FuncConsShape[HS, H, HC, F], B)
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toArrowAssoc[FuncConsShape[HS, H, HC, F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. def ->:[T <: Term with Subs[T]](tail: Typ[T]): CnstFuncConsShape[::[FuncConsShape.type, HS], H, Func[F, HC], T, Nothing]

    returns shape tail ->: this where tail must be independent of the inductive type W being defined.

    returns shape tail ->: this where tail must be independent of the inductive type W being defined.

    Definition Classes
    ConstructorShape
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def apply(tp: Typ[H]): FuncTyp[F, HC]

    returns HoTT type of the introduction rule given the (inductive) type W (to be the head).

    returns HoTT type of the introduction rule given the (inductive) type W (to be the head).

    Definition Classes
    FuncConsShapeConstructorShape
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def ensuring(cond: (FuncConsShape[HS, H, HC, F]) => Boolean, msg: => Any): FuncConsShape[HS, H, HC, F]
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toEnsuring[FuncConsShape[HS, H, HC, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (FuncConsShape[HS, H, HC, F]) => Boolean): FuncConsShape[HS, H, HC, F]
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toEnsuring[FuncConsShape[HS, H, HC, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: => Any): FuncConsShape[HS, H, HC, F]
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toEnsuring[FuncConsShape[HS, H, HC, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): FuncConsShape[HS, H, HC, F]
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toEnsuring[FuncConsShape[HS, H, HC, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toStringFormat[FuncConsShape[HS, H, HC, F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. val head: ConstructorShape[HS, H, HC]
  20. val introArgs: Int
    Definition Classes
    FuncConsShapeConstructorShape
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def lift[Cod <: Term with Subs[Cod], RecDataType <: Term with Subs[RecDataType], InducDataType <: Term with Subs[InducDataType]](implicit mp: ConstructorPatternMapper[::[FuncConsShape.type, HS], Cod, Func[F, HC], H, RecDataType, InducDataType]): ConstructorPatternMap[Cod, Func[F, HC], H, RecDataType, InducDataType]

    lift to ConstructorPatternMap using an implicit ConstructorPatternMapper, which could from the mapper method.

    lift to ConstructorPatternMap using an implicit ConstructorPatternMapper, which could from the mapper method.

    Definition Classes
    ConstructorShape
  23. def mapped[Cod <: Term with Subs[Cod]]: ConstructorPatternMap[Cod, Func[F, HC], H, RecDataType, InducDataType] forSome {type RecDataType <: Term with Subs[RecDataType], type InducDataType <: Term with Subs[InducDataType]}

    lift to ConstructorPatternMap using the result of the mapper method.

    lift to ConstructorPatternMap using the result of the mapper method.

    Definition Classes
    ConstructorShape
  24. def mapper[C <: Term with Subs[C]]: ConstructorPatternMapper[::[FuncConsShape.type, HS], C, Func[F, HC], H, RecDataType, InducDataType] forSome {type RecDataType <: Term with Subs[RecDataType], type InducDataType <: Term with Subs[InducDataType]}

    helper to give ConstructorPatternMap when scala type of codomain is specified.

    helper to give ConstructorPatternMap when scala type of codomain is specified.

    Definition Classes
    FuncConsShapeConstructorShape
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. def subs(x: Term, y: Term): FuncConsShape[HS, H, HC, F]
    Definition Classes
    FuncConsShapeConstructorShape
  30. def symbcons(name: AnySym, tp: Typ[H]): ConstructorShape.symbcons._1.type.Obj with Subs[ConstructorShape.symbcons._1.type.Obj] forSome {val _1: Typ[Func[F, HC]]}

    returns term giving introduction rule given inductive type and name

    returns term giving introduction rule given inductive type and name

    Definition Classes
    ConstructorShape
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. val tail: IterFuncShape[H, F]
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. def ~>:[T <: Term with Subs[T]](tailVar: T): CnstDepFuncConsShape[::[FuncConsShape.type, HS], H, Func[F, HC], T, Nothing]

    returns dependent shape tail ~>: this where tail must be independent of the inductive type W being defined.

    returns dependent shape tail ~>: this where tail must be independent of the inductive type W being defined.

    Definition Classes
    ConstructorShape

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (FuncConsShape[HS, H, HC, F], B)
    Implicit
    This member is added by an implicit conversion from FuncConsShape[HS, H, HC, F] toArrowAssoc[FuncConsShape[HS, H, HC, F]] 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 ConstructorShape[::[FuncConsShape.type, HS], H, Func[F, HC]]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromFuncConsShape[HS, H, HC, F] to any2stringadd[FuncConsShape[HS, H, HC, F]]

Inherited by implicit conversion StringFormat fromFuncConsShape[HS, H, HC, F] to StringFormat[FuncConsShape[HS, H, HC, F]]

Inherited by implicit conversion Ensuring fromFuncConsShape[HS, H, HC, F] to Ensuring[FuncConsShape[HS, H, HC, F]]

Inherited by implicit conversion ArrowAssoc fromFuncConsShape[HS, H, HC, F] to ArrowAssoc[FuncConsShape[HS, H, HC, F]]

Ungrouped