Module aya.base

Record Class CoeTerm

java.lang.Object
java.lang.Record
org.aya.core.term.CoeTerm
All Implemented Interfaces:
Term, AyaDocile, org.aya.guest0x0.cubical.Restr.TermLike<Term>

public record CoeTerm(@NotNull Term type, @NotNull org.aya.guest0x0.cubical.Restr<Term> restr) extends Record implements Term
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoeTerm(@NotNull Term type, @NotNull org.aya.guest0x0.cubical.Restr<Term> restr)
    Creates an instance of a CoeTerm record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull Term
    coeFill(@NotNull Term type, @NotNull org.aya.guest0x0.cubical.Restr<Term> phi, Term ri)
    coeFill (A : I -> Type) (phi : I) : Pi (u : A 0) -> Path A u (coe A phi u)
    static @NotNull Term
    coeFillInv(@NotNull Term type, @NotNull org.aya.guest0x0.cubical.Restr<Term> phi, @NotNull Term ri)
     
    static @NotNull Term
    coeInv(@NotNull Term A, @NotNull org.aya.guest0x0.cubical.Restr<Term> phi)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull org.aya.guest0x0.cubical.Restr<Term>
    Returns the value of the restr record component.
    final String
    Returns a string representation of this record class.
    @NotNull Term
    Returns the value of the type record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.aya.generic.AyaDocile

    debuggerOnlyToDoc

    Methods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike

    asFormula

    Methods inherited from interface org.aya.core.term.Term

    computeSort, computeType, descent, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
  • Constructor Details

    • CoeTerm

      public CoeTerm(@NotNull @NotNull Term type, @NotNull @NotNull org.aya.guest0x0.cubical.Restr<Term> restr)
      Creates an instance of a CoeTerm record class.
      Parameters:
      type - the value for the type record component
      restr - the value for the restr record component
  • Method Details

    • coeFill

      @NotNull public static @NotNull Term coeFill(@NotNull @NotNull Term type, @NotNull @NotNull org.aya.guest0x0.cubical.Restr<Term> phi, Term ri)
      coeFill (A : I -> Type) (phi : I) : Pi (u : A 0) -> Path A u (coe A phi u)
      Parameters:
      ri - the interval abstraction or its inverse
    • coeInv

      @NotNull public static @NotNull Term coeInv(@NotNull @NotNull Term A, @NotNull @NotNull org.aya.guest0x0.cubical.Restr<Term> phi)
    • coeFillInv

      @NotNull public static @NotNull Term coeFillInv(@NotNull @NotNull Term type, @NotNull @NotNull org.aya.guest0x0.cubical.Restr<Term> phi, @NotNull @NotNull Term ri)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      @NotNull public @NotNull Term type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • restr

      @NotNull public @NotNull org.aya.guest0x0.cubical.Restr<Term> restr()
      Returns the value of the restr record component.
      Returns:
      the value of the restr record component