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

Safe HaskellSafe-Infered

Agda.TypeChecking.Telescope

Synopsis

Documentation

renameP :: Subst t => Permutation -> t -> t

The permutation should permute the corresponding telescope. (left-to-right list)

renaming :: Permutation -> [Term]

If permute π : [a]Γ -> [a]Δ, then substs (renaming π) : Term Γ -> Term Δ

renamingR :: Permutation -> [Term]

If permute π : [a]Γ -> [a]Δ, then substs (renamingR π) : Term Δ -> Term Γ

flattenTel :: Telescope -> [Arg Type]

Flatten telescope: (Γ : Tel) -> [Type Γ]

reorderTel :: [Arg Type] -> Maybe Permutation

Order a flattened telescope in the correct dependeny order: Γ -> Permutation (Γ -> Γ~)

unflattenTel :: [String] -> [Arg Type] -> Telescope

Unflatten: turns a flattened telescope into a proper telescope. Must be properly ordered.

teleNames :: Telescope -> [String]

Get the suggested names from a telescope

data SplitTel

A telescope split in two.

splitTelescope :: VarSet -> Telescope -> SplitTel

Split a telescope into the part that defines the given variables and the part that doesn't.

telViewUpTo :: Int -> Type -> TCM TelView

telViewUpTo n t takes off the first n function types of t. Takes off all if $n < 0$.

piApplyM :: Type -> Args -> TCM Type

A safe variant of piApply.