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

Agda.TypeChecking.Rules.LHS.Split

Synopsis

Documentation

asView :: Pattern -> ([Name], Pattern)Source

TODO: move to Agda.Syntax.Abstract.View

expandLitPattern :: NamedArg Pattern -> TCM (NamedArg Pattern)Source

TODO: move somewhere else

splitProblem :: Problem -> TCM (Either SplitError SplitProblem)Source

Split a problem at the first constructor of datatype type. Implicit patterns should have been inserted.

wellFormedIndicesSource

Arguments

:: [Arg Term]

Parameters.

-> [Arg Term]

Indices.

-> TCM () 

Checks that the indices are constructors (or literals) applied to distinct variables which do not occur free in the parameters.