java.lang.Object
org.aya.tyck.tycker.AbstractTycker
org.aya.unify.TermComparator
- All Implemented Interfaces:
Contextful,Problematic,Stateful
- Direct Known Subclasses:
Unifier
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NotNull org.aya.util.Orderingprotected final @NotNull org.aya.util.error.SourcePosFields inherited from class org.aya.tyck.tycker.AbstractTycker
reporter, state -
Constructor Summary
ConstructorsConstructorDescriptionTermComparator(@NotNull TyckState state, @NotNull org.aya.syntax.ref.LocalCtx ctx, @NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.util.Ordering cmp) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckEqn(TyckState.Eqn eqn) Maybe you're looking forcompare(org.aya.syntax.core.term.Term, org.aya.syntax.core.term.Term, org.aya.syntax.core.term.Term)instead.booleancompare(@NotNull org.aya.syntax.core.term.Term preLhs, @NotNull org.aya.syntax.core.term.Term preRhs, @Nullable org.aya.syntax.core.term.Term type) Compare two terms with the given (if not null)protected abstract @Nullable org.aya.syntax.core.term.TermdoSolveMeta(@NotNull org.aya.syntax.core.term.call.MetaCall meta, @NotNull org.aya.syntax.core.term.Term rhs, @Nullable org.aya.syntax.core.term.Term type) Trying to solve with@NotNull TermComparator.FailureData@NotNull org.aya.syntax.ref.LocalVarputIndex(@NotNull org.aya.syntax.core.term.Term term) protected @Nullable org.aya.syntax.core.term.TermsolveMeta(@NotNull org.aya.syntax.core.term.call.MetaCall meta, @NotNull org.aya.syntax.core.term.Term rhs, @Nullable org.aya.syntax.core.term.Term type) Methods inherited from class org.aya.tyck.tycker.AbstractTycker
lazyJdg, localCtx, putIndex, reporter, setLocalCtx, state, zonk, zonk, zonkMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aya.tyck.tycker.Contextful
freshMeta, generatePi, mockTerm, subscoped, withMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, failMethods inherited from interface org.aya.tyck.tycker.Stateful
freezeHoles, solve, whnf
-
Field Details
-
pos
@NotNull protected final @NotNull org.aya.util.error.SourcePos pos -
cmp
@NotNull protected @NotNull org.aya.util.Ordering cmp
-
-
Constructor Details
-
TermComparator
public TermComparator(@NotNull @NotNull TyckState state, @NotNull @NotNull org.aya.syntax.ref.LocalCtx ctx, @NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.util.Ordering cmp)
-
-
Method Details
-
doSolveMeta
@Nullable protected abstract @Nullable org.aya.syntax.core.term.Term doSolveMeta(@NotNull @NotNull org.aya.syntax.core.term.call.MetaCall meta, @NotNull @NotNull org.aya.syntax.core.term.Term rhs, @Nullable @Nullable org.aya.syntax.core.term.Term type) Trying to solve with- Parameters:
rhs- in whnf
-
solveMeta
@Nullable protected @Nullable org.aya.syntax.core.term.Term solveMeta(@NotNull @NotNull org.aya.syntax.core.term.call.MetaCall meta, @NotNull @NotNull org.aya.syntax.core.term.Term rhs, @Nullable @Nullable org.aya.syntax.core.term.Term type) -
compare
public boolean compare(@NotNull @NotNull org.aya.syntax.core.term.Term preLhs, @NotNull @NotNull org.aya.syntax.core.term.Term preRhs, @Nullable @Nullable org.aya.syntax.core.term.Term type) Compare two terms with the given (if not null)- Returns:
- true if they are 'the same' under , false otherwise.
-
putIndex
@NotNull public @NotNull org.aya.syntax.ref.LocalVar putIndex(@NotNull @NotNull org.aya.syntax.core.term.Term term) -
getFailure
-
checkEqn
Maybe you're looking forcompare(org.aya.syntax.core.term.Term, org.aya.syntax.core.term.Term, org.aya.syntax.core.term.Term)instead.
-