Agda.TypeChecking.Telescope
- renameP :: Subst t => Permutation -> t -> t
- renaming :: Permutation -> [Term]
- renamingR :: Permutation -> [Term]
- flattenTel :: Telescope -> [Arg Type]
- reorderTel :: [Arg Type] -> Maybe Permutation
- reorderTel_ :: [Arg Type] -> Permutation
- unflattenTel :: [String] -> [Arg Type] -> Telescope
- teleNames :: Telescope -> [String]
- teleArgNames :: Telescope -> [Arg String]
- teleArgs :: Telescope -> Args
- data SplitTel = SplitTel {}
- splitTelescope :: VarSet -> Telescope -> SplitTel
- telView :: Type -> TCM TelView
- telViewUpTo :: Int -> Type -> TCM TelView
- piApplyM :: Type -> Args -> TCM Type
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 ( -> ~)
reorderTel_ :: [Arg Type] -> Permutation
unflattenTel :: [String] -> [Arg Type] -> Telescope
Unflatten: turns a flattened telescope into a proper telescope. Must be properly ordered.
teleArgNames :: Telescope -> [Arg String]
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$.