case class RecFn[W <: Term with Subs[W]](codom: Typ[W], data: Func[U, Func[V, W]]) extends RecFunc[PairTerm[U, V], W] with Product with Serializable
Recursion function from product type
- codom
the codomain
- data
the definition data
- Self Type
- RecFn[W]
- Alphabetic
- By Inheritance
- RecFn
- Serializable
- Product
- Equals
- RecFunc
- Func
- FuncLike
- Function1
- Term
- Subs
- AnyRef
- Any
- by UnliftOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- def act(w: PairTerm[U, V]): W
the action of the function to define: define this method, but use apply.
- def andThen[A](g: (W) => A): (PairTerm[U, V]) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(arg: PairTerm[U, V]): W
application of the function: use this but define the act method; checks HoTT-type of argument is in the domain and throws exception if it fails.
- def applyUnchecked(arg: PairTerm[U, V]): W
- Definition Classes
- FuncLike
- def baseFunction: ExstFunc
- Definition Classes
- RecFunc
- def canApply(arg: PairTerm[U, V]): Boolean
checks if application is valid; can override to allow for example resizing universes
checks if application is valid; can override to allow for example resizing universes
- arg
the argument
- returns
whether the argument has the correct type.
- Definition Classes
- FuncLike
- val codom: Typ[W]
codomain
- def compose[A](g: (A) => PairTerm[U, V]): (A) => W
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- val data: Func[U, Func[V, W]]
- val defnData: Vector[Func[U, Func[V, W]]]
definition data for all introduction rules.
- val depcodom: (PairTerm[U, V]) => Typ[W]
- def dependsOn(that: Term): Boolean
returns whether
this
depends onthat
returns whether
this
depends onthat
- Definition Classes
- Term
- lazy val dom: ProdTyp[U, V]
domain
- def equals(that: Any): Boolean
- Definition Classes
- RecFunc → AnyRef → Any
- def fromData(data: Vector[Term]): RecFn[W]
- lazy val fullData: (Typ[PairTerm[U, V]], Typ[W], Vector[Term])
- Definition Classes
- RecFunc
- def hashCode(): Int
- Definition Classes
- RecFunc → AnyRef → Any
- def indepOf(that: Term): Boolean
returns whether
this
is independent ofthat
.returns whether
this
is independent ofthat
.- Definition Classes
- Term
- lazy val intros: Vector[Term]
- def newobj: Nothing
A new object with the same type, to be used in place of a variable to avoid name clashes.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def replace(x: Term, y: Term): Func[PairTerm[U, V], W] with Subs[Func[PairTerm[U, V], W]]
refine substitution so if x and y are both of certain forms such as pairs or formal applications, components are substituted.
refine substitution so if x and y are both of certain forms such as pairs or formal applications, components are substituted.
- Definition Classes
- Subs
- def subs(x: Term, y: Term): RecFn[W]
substitute x by y recursively in
this
. - def toString(): String
- Definition Classes
- RecFunc → Function1 → AnyRef → Any
- lazy val typ: FuncTyp[PairTerm[U, V], W]
the HoTT-type of the term
- def unlift: PartialFunction[PairTerm[U, V], B]
- def usesVar(t: Term): Boolean
returns whether the variable
t
is used as a variable in a lambda definition.