sealed trait ConstructorShape[S <: HList, H <: Term with Subs[H], ConstructorType <: Term with Subs[ConstructorType]] extends AnyRef
The introduction rule for an inductive type, as a function of the type; typically (A -> B -> W)-> C -> W -> (D -> W) -> W as a function of W May have Pi-types instead of function types.
Usually constructed using the DSL in TLImplicits
- S
formal type to capture information at type level
- H
scala type of the terms of the inductive type.
- ConstructorType
scala type of a constructor (introduction rule) corresponding to this pattern.
- Alphabetic
- By Inheritance
- ConstructorShape
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply(tp: Typ[H]): Typ[ConstructorType]
returns HoTT type of the introduction rule given the (inductive) type W (to be the head).
- abstract val introArgs: Int
- abstract def mapper[Cod <: Term with Subs[Cod]]: ConstructorPatternMapper[S, Cod, ConstructorType, 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.
- abstract def subs(x: Term, y: Term): ConstructorShape[S, H, ConstructorType]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toany2stringadd[ConstructorShape[S, H, ConstructorType]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def -->:(that: IdShape.type): FuncConsShape[S, H, ConstructorType, H]
returns shape
that -> this' where
thatmust be the shape for inductive type
W - def -->:[F <: Term with Subs[F]](that: IterFuncShape[H, F]): FuncConsShape[S, H, ConstructorType, F]
returns shape
that -> this' where
thatis of the form
W,
A -> Wetc; invoking this is an error if we
thatis independent of
W - def ->[B](y: B): (ConstructorShape[S, H, ConstructorType], B)
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toArrowAssoc[ConstructorShape[S, H, ConstructorType]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- def ->:[T <: Term with Subs[T]](tail: Typ[T]): CnstFuncConsShape[S, H, ConstructorType, T, Nothing]
returns shape
tail ->: this
where tail must be independent of the inductive typeW
being defined. - final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (ConstructorShape[S, H, ConstructorType]) => Boolean, msg: => Any): ConstructorShape[S, H, ConstructorType]
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toEnsuring[ConstructorShape[S, H, ConstructorType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ConstructorShape[S, H, ConstructorType]) => Boolean): ConstructorShape[S, H, ConstructorType]
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toEnsuring[ConstructorShape[S, H, ConstructorType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ConstructorShape[S, H, ConstructorType]
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toEnsuring[ConstructorShape[S, H, ConstructorType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ConstructorShape[S, H, ConstructorType]
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toEnsuring[ConstructorShape[S, H, ConstructorType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toStringFormat[ConstructorShape[S, H, ConstructorType]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lift[Cod <: Term with Subs[Cod], RecDataType <: Term with Subs[RecDataType], InducDataType <: Term with Subs[InducDataType]](implicit mp: ConstructorPatternMapper[S, Cod, ConstructorType, H, RecDataType, InducDataType]): ConstructorPatternMap[Cod, ConstructorType, H, RecDataType, InducDataType]
lift to ConstructorPatternMap using an implicit ConstructorPatternMapper, which could from the mapper method.
- def mapped[Cod <: Term with Subs[Cod]]: ConstructorPatternMap[Cod, ConstructorType, 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def symbcons(name: AnySym, tp: Typ[H]): symbcons._1.type.Obj with Subs[symbcons._1.type.Obj] forSome {val _1: Typ[ConstructorType]}
returns term giving introduction rule given inductive type and name
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def ~>:[T <: Term with Subs[T]](tailVar: T): CnstDepFuncConsShape[S, H, ConstructorType, T, Nothing]
returns dependent shape
tail ~>: this
where tail must be independent of the inductive typeW
being defined.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (ConstructorShape[S, H, ConstructorType], B)
- Implicit
- This member is added by an implicit conversion from ConstructorShape[S, H, ConstructorType] toArrowAssoc[ConstructorShape[S, H, ConstructorType]] 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.