Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Sub t ctx ctx' = MkSub (Env ctx (t ctx'))
- unSub :: Sub t ctx ctx' -> Env ctx (t ctx')
- substIdx :: Sub t ctx ctx' -> Idx ctx -> t ctx'
- emptySub :: Sub t EmptyCtx ctx'
- snocSub :: Sub t ctx ctx' -> t ctx' -> Sub t (S ctx) ctx'
- keepSub :: (Rename t, Var t) => Sub t ctx ctx' -> Sub t (S ctx) (S ctx')
- weakenSub :: Wk ctx ctx' -> Sub t ctx' ctx'' -> Sub t ctx ctx''
- nameMe :: Rename t => Sub t ctx ctx' -> Wk ctx' ctx'' -> Sub t ctx ctx''
- idSub :: Var t => Size ctx -> Sub t ctx ctx
- compSub :: Subst t => Sub t ctx ctx' -> Sub t ctx' ctx'' -> Sub t ctx ctx''
- class Var t where
- class Var t => Subst t where
Substitution
weakenSub :: Wk ctx ctx' -> Sub t ctx' ctx'' -> Sub t ctx ctx'' Source #
Precompose Sub
with weakening.
Category
compSub :: Subst t => Sub t ctx ctx' -> Sub t ctx' ctx'' -> Sub t ctx ctx'' Source #
Substitution composition.
Classes
Terms which contain indices as variables.