Package hydra
Interface Reduction
-
public interface ReductionFunctions for reducing terms and types, i.e. performing computations.
-
-
Method Summary
Static Methods Modifier and Type Method Description static TermalphaConvert(Name vold, Name vnew, Term term)static Either<InContext<Error_>,Type>betaReduceType(Context cx, Graph graph, Type typ)static <T0> Either<InContext<Error_>,Type>betaReduceType_mapExpr(java.util.function.Function<ApplicationType,Either<InContext<Error_>,Type>> reduceApp, java.util.function.Function<T0,Either<InContext<Error_>,Type>> recurse, T0 t)static TermcontractTerm(Term term)static <T0> TermcontractTerm_rewrite(java.util.function.Function<Term,Term> hydra_rewriting_deannotateTerm2, java.util.function.Function<Name,java.util.function.Function<Term,java.lang.Boolean>> hydra_rewriting_isFreeVariableInTerm2, java.util.function.Function<Name,java.util.function.Function<Term,java.util.function.Function<Term,Term>>> hydra_rewriting_replaceFreeTermVariable2, java.util.function.Function<T0,Term> recurse, T0 t)static java.lang.BooleancountPrimitiveInvocations()static TermetaExpandTerm(Graph graph, Term term)static TermetaExpandTermNew(Graph tx0, Term term0)static Either<InContext<Error_>,Term>etaExpandTypedTerm(Context cx, Graph tx0, Term term0)static java.lang.IntegeretaExpansionArity(Graph graph, Term term)static TermetaReduceTerm(Term term)static Either<InContext<Error_>,Term>reduceTerm(Context cx, Graph graph, java.lang.Boolean eager, Term term)static java.lang.BooleantermIsClosed(Term term)static java.lang.BooleantermIsValue(Term term)
-
-
-
Method Detail
-
betaReduceType
static Either<InContext<Error_>,Type> betaReduceType(Context cx, Graph graph, Type typ)
-
betaReduceType_mapExpr
static <T0> Either<InContext<Error_>,Type> betaReduceType_mapExpr(java.util.function.Function<ApplicationType,Either<InContext<Error_>,Type>> reduceApp, java.util.function.Function<T0,Either<InContext<Error_>,Type>> recurse, T0 t)
-
contractTerm_rewrite
static <T0> Term contractTerm_rewrite(java.util.function.Function<Term,Term> hydra_rewriting_deannotateTerm2, java.util.function.Function<Name,java.util.function.Function<Term,java.lang.Boolean>> hydra_rewriting_isFreeVariableInTerm2, java.util.function.Function<Name,java.util.function.Function<Term,java.util.function.Function<Term,Term>>> hydra_rewriting_replaceFreeTermVariable2, java.util.function.Function<T0,Term> recurse, T0 t)
-
countPrimitiveInvocations
static java.lang.Boolean countPrimitiveInvocations()
-
etaExpandTypedTerm
static Either<InContext<Error_>,Term> etaExpandTypedTerm(Context cx, Graph tx0, Term term0)
-
reduceTerm
static Either<InContext<Error_>,Term> reduceTerm(Context cx, Graph graph, java.lang.Boolean eager, Term term)
-
termIsClosed
static java.lang.Boolean termIsClosed(Term term)
-
termIsValue
static java.lang.Boolean termIsValue(Term term)
-
-