case class Homomorphism[A, B](domRing: SymbolicCRing[A], codomRing: SymbolicCRing[B], f: (A) => B)(implicit evidence$2: Ring[A], evidence$3: Ring[B]) extends Func[RepTerm[A], RepTerm[B]] with Product with Serializable
- Alphabetic
- By Inheritance
- Homomorphism
- Serializable
- Product
- Equals
- Func
- FuncLike
- Function1
- Term
- Subs
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Homomorphism(domRing: SymbolicCRing[A], codomRing: SymbolicCRing[B], f: (A) => B)(implicit arg0: Ring[A], arg1: Ring[B])
Value Members
- def act(arg: RepTerm[A]): RepTerm[B]
the action of the function to define: define this method, but use apply.
the action of the function to define: define this method, but use apply.
- Definition Classes
- Homomorphism → Func → FuncLike
- def andThen[A](g: (RepTerm[B]) => A): (RepTerm[A]) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(arg: RepTerm[A]): RepTerm[B]
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: RepTerm[A]): RepTerm[B]
- Definition Classes
- FuncLike
- def canApply(arg: RepTerm[A]): 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[RepTerm[B]]
codomain
codomain
- Definition Classes
- Homomorphism → Func
- val codomRing: SymbolicCRing[B]
- def compose[A](g: (A) => RepTerm[A]): (A) => RepTerm[B]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- val depcodom: (RepTerm[A]) => Typ[RepTerm[B]]
- def dependsOn(that: Term): Boolean
returns whether
this
depends onthat
returns whether
this
depends onthat
- Definition Classes
- Term
- val dom: LocalTyp.type
domain
domain
- Definition Classes
- Homomorphism → Func → FuncLike
- val domRing: SymbolicCRing[A]
- val f: (A) => B
- def indepOf(that: Term): Boolean
returns whether
this
is independent ofthat
.returns whether
this
is independent ofthat
.- Definition Classes
- Term
- def newobj: Func[RepTerm[A], RepTerm[B]]
A new object with the same type, to be used in place of a variable to avoid name clashes.
A new object with the same type, to be used in place of a variable to avoid name clashes. Should throw exception when invoked for constants.
- Definition Classes
- Homomorphism → Subs
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def replace(x: Term, y: Term): Func[RepTerm[A], RepTerm[B]] with Subs[Func[RepTerm[A], RepTerm[B]]]
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): Func[RepTerm[A], RepTerm[B]]
substitute x by y recursively in
this
.substitute x by y recursively in
this
.- Definition Classes
- Homomorphism → Func → FuncLike → Subs
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- val typ: FuncTyp[RepTerm[A], RepTerm[B]]
the HoTT-type of the term
the HoTT-type of the term
- Definition Classes
- Homomorphism → Func → FuncLike → Term
- def usesVar(t: Term): Boolean
returns whether the variable
t
is used as a variable in a lambda definition.returns whether the variable
t
is used as a variable in a lambda definition.- Definition Classes
- Term