java.lang.Object
java.lang.Record
org.aya.core.term.PartialTerm
public record PartialTerm(@NotNull org.aya.guest0x0.cubical.Partial<Term> partial, @NotNull Term rhsType)
extends Record
implements Term
Partial elements.
- Implementation Note:
- I am unsure if this is stable as of our assumptions. Surely a split partial may become a const partial, is that stable?
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
org.aya.guest0x0.cubical.Restr.TermLike.Factory<T>Nested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPartialTerm(@NotNull org.aya.guest0x0.cubical.Partial<Term> partial, @NotNull Term rhsType) Creates an instance of aPartialTermrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.aya.guest0x0.cubical.Partial<Term>amendTerms(org.aya.guest0x0.cubical.Partial<Term> p, UnaryOperator<Term> applyDimsTo) @NotNull PartialTermdescent(@NotNull UnaryOperator<Term> f, @NotNull UnaryOperator<Pat> g) final booleanIndicates whether some other object is "equal to" this one.static @NotNull PartialTermfinal inthashCode()Returns a hash code value for this object.static booleanimpliesCof(org.aya.guest0x0.cubical.Restr<Term> needed, org.aya.guest0x0.cubical.Restr<Term> defined, TyckState state) static @NotNull org.aya.guest0x0.cubical.Partial<Term>@NotNull org.aya.guest0x0.cubical.Partial<Term>partial()Returns the value of thepartialrecord component.@NotNull TermrhsType()Returns the value of therhsTyperecord component.final StringtoString()Returns a string representation of this record class.@NotNull PartialTermMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormulaMethods inherited from interface org.aya.core.term.Term
computeType, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Field Details
-
DUMMY_SPLIT
-
-
Constructor Details
-
Method Details
-
update
@NotNull public @NotNull PartialTerm update(@NotNull @NotNull org.aya.guest0x0.cubical.Partial<Term> partial, @NotNull @NotNull Term rhsType) -
descent
@NotNull public @NotNull PartialTerm descent(@NotNull @NotNull UnaryOperator<Term> f, @NotNull @NotNull UnaryOperator<Pat> g) -
merge
-
amendTerms
public static org.aya.guest0x0.cubical.Partial<Term> amendTerms(org.aya.guest0x0.cubical.Partial<Term> p, UnaryOperator<Term> applyDimsTo) -
from
-
impliesCof
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
partial
Returns the value of thepartialrecord component.- Returns:
- the value of the
partialrecord component
-
rhsType
Returns the value of therhsTyperecord component.- Returns:
- the value of the
rhsTyperecord component
-