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

Agda.TypeChecking.SizedTypes

Synopsis

Documentation

compareSizes :: MonadTCM tcm => Comparison -> Term -> Term -> tcm ConstraintsSource

Compare two sizes. Only with --sized-types.

trivial :: MonadTCM tcm => Term -> Term -> tcm BoolSource

getSizeConstraints :: MonadTCM tcm => tcm [SizeConstraint]Source

Find the size constraints.

data SizeExpr Source

Constructors

SizeMeta MetaId [CtxId] 
Rigid CtxId 

Instances

sizeExpr :: MonadTCM tcm => Term -> tcm (SizeExpr, Int)Source

Throws a patternViolation if the term isn't a proper size expression.