Agda-2.2.8: A dependently typed functional programming language and proof assistant

Agda.TypeChecking.Conversion

Contents

Synopsis

Documentation

sameVars :: Args -> Args -> BoolSource

Check if to lists of arguments are the same (and all variables). Precondition: the lists have the same length.

compareTerm :: MonadTCM tcm => Comparison -> Type -> Term -> Term -> tcm ConstraintsSource

Type directed equality on values.

compareAtom :: MonadTCM tcm => Comparison -> Type -> Term -> Term -> tcm ConstraintsSource

Syntax directed equality on atomic values

compareArgs :: MonadTCM tcm => [Polarity] -> Type -> Args -> Args -> tcm ConstraintsSource

Type-directed equality on argument lists

compareType :: MonadTCM tcm => Comparison -> Type -> Type -> tcm ConstraintsSource

Equality on Types

Sorts

leqSort :: MonadTCM tcm => Sort -> Sort -> tcm ConstraintsSource

Check that the first sort is less or equal to the second.

equalSort :: MonadTCM tcm => Sort -> Sort -> tcm ConstraintsSource

Check that the first sort equal to the second.