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

Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.Free.Reduce

Description

Free variable check that reduces the subject to make certain variables not free. Used when pruning metavariables in Agda.TypeChecking.MetaVars.Occurs.

Synopsis

Documentation

forceNotFree :: IntSet -> Type -> TCM (IntSet, Type) Source #

Try to enforce a set of variables not occurring in a given type. Returns a possibly reduced version of the type and the subset of variables that does indeed not occur in the reduced type.