- All Known Subinterfaces:
Callable,Callable.DefCall,Elimination,Formation,StableWHNF
- All Known Implementing Classes:
AppTerm,CoeTerm,ConCall,DataCall,ErrorTerm,FieldTerm,FnCall,FormulaTerm,HCompTerm,IntegerTerm,InTerm,IntervalTerm,LamTerm,ListTerm,MatchTerm,MetaLitTerm,MetaPatTerm,MetaTerm,NewTerm,OutTerm,PAppTerm,PartialTerm,PartialTyTerm,PathTerm,PiTerm,PLamTerm,PrimCall,ProjTerm,RefTerm,RefTerm.Field,SigmaTerm,SortTerm,StringTerm,StructCall,TupTerm
public sealed interface Term
extends AyaDocile, org.aya.guest0x0.cubical.Restr.TermLike<Term>
permits Callable, CoeTerm, Elimination, Formation, FormulaTerm, HCompTerm, InTerm, MatchTerm, MetaLitTerm, MetaPatTerm, PartialTerm, RefTerm, RefTerm.Field, StableWHNF
A well-typed and terminating term.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
org.aya.guest0x0.cubical.Restr.TermLike.Factory<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull TermcomputeType(@NotNull TyckState state, @NotNull LocalCtx ctx) @NotNull Termdescent(@NotNull UnaryOperator<Term> f, @NotNull UnaryOperator<Pat> g) default intfindUsages(@NotNull AnyVar var) default @NotNull TermfreezeHoles(@Nullable TyckState state) default @NotNull Termlift(int ulift) default @NotNull Termnormalize(@NotNull TyckState state, @NotNull NormalizeMode mode) default @NotNull Termrename()default VarConsumer.ScopeCheckerscopeCheck(@NotNull kala.collection.immutable.ImmutableSeq<LocalVar> allowed) default @NotNull Termdefault @NotNull Termdefault @NotNull Termdefault @NotNull Termdefault @NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.prettier.PrettierOptions options) Methods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormula
-
Method Details
-
descent
@NotNull @NotNull Term descent(@NotNull @NotNull UnaryOperator<Term> f, @NotNull @NotNull UnaryOperator<Pat> g) -
subst
-
subst
-
subst
-
subst
-
rename
-
findUsages
-
scopeCheck
default VarConsumer.ScopeChecker scopeCheck(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<LocalVar> allowed) -
normalize
@NotNull default @NotNull Term normalize(@NotNull @NotNull TyckState state, @NotNull @NotNull NormalizeMode mode) - Parameters:
state- used for inlining the holes. Can be null only if we're absolutely sure that holes are frozen, like in the error messages.
-
freezeHoles
-
toDoc
@NotNull default @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.prettier.PrettierOptions options) -
lift
-
computeType
@NotNull default @NotNull Term computeType(@NotNull @NotNull TyckState state, @NotNull @NotNull LocalCtx ctx) - Returns:
- WHNF
- Throws:
NullPointerException- if the term is an introduction rule
-