Documentation

Lean.MetavarContext

The metavariable context stores metavariable declarations and their assignments. It is used in the elaborator, tactic framework, unifier (aka isDefEq), and type class resolution (TC). First, we list all the requirements imposed by these modules.

The temporary metavariables were also used in the "app builder" module used in Lean3. The app builder uses isDefEq. So, it could, in principle, invoke an arbitrary number of nested TC problems. However, in Lean3, all app builder uses are controlled. That is, it is mainly used to synthesize implicit arguments using very simple unification and/or non-nested TC. So, if the "app builder" becomes a bottleneck without tmp metavars, we may solve the issue by implementing isDefEqCheap that never invokes TC and uses tmp metavars.

LocalInstance represents a local typeclass instance registered by and for the elaborator. It stores the name of the typeclass in className, and the concrete typeclass instance in fvar. Note that the kernel does not care about this information, since typeclasses are entirely eliminated during elaboration.

Instances For
    @[reducible, inline]
    Instances For
      @[implicit_reducible]

      Remove local instance with the given fvarId. Do nothing if localInsts does not contain any free variable with id fvarId.

      Instances For

        A kind for the metavariable that determines its unification behaviour. For more information see the large comment at the beginning of this file.

        Instances For
          @[implicit_reducible]

          Information about a metavariable.

          • userName : Name

            A user-friendly name for the metavariable. If anonymous then there is no such name.

          • The local context containing the free variables that the mvar is permitted to depend upon.

          • type : Expr

            The type of the metavariable, in the given lctx.

          • depth : Nat

            The nesting depth of this metavariable. We do not want unification subproblems to influence the results of parent problems. The depth keeps track of this information and ensures that unification subproblems cannot leak information out, by unifying based on depth.

          • localInstances : LocalInstances
          • numScopeArgs : Nat

            See comment at CheckAssignment Meta/ExprDefEq.lean

          • index : Nat

            We use this field to track how old a metavariable is. It is set using a counter at MetavarContext

          Instances For

            A delayed assignment for a metavariable ?m. It represents an assignment of the form ?m := (fun fvars => (mkMVar mvarIdPending)). mvarIdPending is a syntheticOpaque metavariable that has not been synthesized yet. The delayed assignment becomes a real one as soon as mvarIdPending has been fully synthesized. fvars are variables in the mvarIdPending local context.

            See the comment below assignDelayedMVar for the rationale of delayed assignments.

            Recall that we use a locally nameless approach when dealing with binders. Suppose we are trying to synthesize ?n in the expression e, in the context of (fun x => e). The metavariable ?n might depend on the bound variable x. However, since we are locally nameless, the bound variable x is in fact represented by some free variable fvar_x. Thus, when we exit the scope, we must rebind the value of fvar_x in ?n to the de-bruijn index of the bound variable x.

            Instances For

              The metavariable context is a set of metavariable declarations and their assignments.

              For more information on specifics see the comment in the file that MetavarContext is defined in.

              Instances For
                class Lean.MonadMCtx (m : TypeType) :

                A monad with a stateful metavariable context, defining getMCtx and modifyMCtx.

                Instances
                  @[implicit_reducible, always_inline]
                  @[reducible, inline]
                  abbrev Lean.setMCtx {m : TypeType} [MonadMCtx m] (mctx : MetavarContext) :
                  Instances For
                    @[reducible, inline]
                    abbrev Lean.getLevelMVarAssignment? {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : LMVarId) :
                    Instances For
                      @[export lean_get_lmvar_assignment]
                      Instances For
                        @[export lean_get_mvar_assignment]
                        Instances For
                          def Lean.getExprMVarAssignment? {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : MVarId) :
                          Instances For
                            @[export lean_get_delayed_mvar_assignment]
                            Instances For
                              partial def Lean.getDelayedMVarRoot {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : MVarId) :

                              Given a sequence of delayed assignments

                              mvarId₁ := fun ... => mvarId₂;
                              ...
                              mvarIdₙ := fun ... => mvarId_root  -- where `mvarId_root` is not delayed assigned
                              

                              in mctx, getDelayedRoot mctx mvarId₁ return mvarId_root. If mvarId₁ is not delayed assigned then return mvarId₁

                              def Lean.isLevelMVarAssigned {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : LMVarId) :
                              Instances For
                                def Lean.MVarId.isAssigned {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : MVarId) :

                                Return true if the give metavariable is already assigned.

                                Instances For
                                  def Lean.MVarId.isDelayedAssigned {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : MVarId) :
                                  Instances For

                                    Check whether a metavariable is assigned or delayed-assigned. A delayed-assigned metavariable is already 'solved' but the solution cannot be substituted yet because we have to wait for some other metavariables to be assigned first. So in many situations you want to treat a delayed-assigned metavariable as assigned.

                                    Instances For
                                      def Lean.isLevelMVarAssignable {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : LMVarId) :
                                      Instances For
                                        def Lean.MVarId.isAssignable {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : MVarId) :
                                        Instances For

                                          Return true iff the given level contains an assigned metavariable.

                                          Instances For
                                            def Lean.hasAssignedMVar {m : TypeType} [Monad m] [MonadMCtx m] :
                                            Exprm Bool

                                            Return true iff expression contains assigned (level/expr) metavariables or delayed assigned mvars

                                            Instances For

                                              Return true iff the given level contains a metavariable that can be assigned.

                                              Instances For
                                                def Lean.hasAssignableMVar {m : TypeType} [Monad m] [MonadMCtx m] :
                                                Exprm Bool

                                                Return true iff expression contains a metavariable that can be assigned.

                                                Instances For
                                                  def Lean.assignLevelMVar {m : TypeType} [MonadMCtx m] (mvarId : LMVarId) (val : Level) :

                                                  Add mvarId := u to the universe metavariable assignment. This method does not check whether mvarId is already assigned, nor it checks whether a cycle is being introduced. This is a low-level API, and it is safer to use isLevelDefEq (mkLevelMVar mvarId) u.

                                                  Instances For
                                                    @[export lean_assign_lmvar]
                                                    Instances For
                                                      def Lean.MVarId.assign {m : TypeType} [MonadMCtx m] (mvarId : MVarId) (val : Expr) :

                                                      Add mvarId := x to the metavariable assignment. This method does not check whether mvarId is already assigned, nor it checks whether a cycle is being introduced, or whether the expression has the right type. This is a low-level API, and it is safer to use isDefEq (mkMVar mvarId) x.

                                                      Instances For
                                                        @[export lean_assign_mvar]
                                                        Instances For
                                                          def Lean.assignDelayedMVar {m : TypeType} [MonadMCtx m] (mvarId : MVarId) (fvars : Array Expr) (mvarIdPending : MVarId) :

                                                          Add a delayed assignment for the given metavariable. You must make sure that the metavariable is not already assigned or delayed-assigned.

                                                          Instances For

                                                            Notes on artificial eta-expanded terms due to metavariables. #

                                                            We try avoid synthetic terms such as ((fun x y => t) a b) in the output produced by the elaborator. This kind of term may be generated when instantiating metavariable assignments. This module tries to avoid their generation because they often introduce unnecessary dependencies and may affect automation.

                                                            When elaborating terms, we use metavariables to represent "holes". Each hole has a context which includes all free variables that may be used to "fill" the hole. Suppose, we create a metavariable (hole) ?m : Nat in a context containing (x : Nat) (y : Nat) (b : Bool), then we can assign terms such as x + y to ?m since x and y are in the context used to create ?m. Now, suppose we have the term ?m + 1 and we want to create the lambda expression fun x => ?m + 1. This term is not correct since we may assign to ?m a term containing x.

                                                            We address this issue by create a synthetic metavariable ?n : NatNat and adding the delayed assignment ?n #[x] := ?m, and the term fun x => ?n x + 1. When we later assign a term t[x] to ?m, fun x => t[x] is assigned to ?n, and if we substitute it at fun x => ?n x + 1, we produce fun x => ((fun x => t[x]) x) + 1.

                                                            To avoid this term eta-expanded term, we apply beta-reduction when instantiating metavariable assignments in this module. This operation is performed at instantiateExprMVars, elimMVarDeps, and levelMVarToParam.

                                                            @[extern lean_instantiate_level_mvars]
                                                            Instances For
                                                              @[extern lean_instantiate_expr_mvars]
                                                              def Lean.instantiateExprMVars {m : TypeType} [Monad m] [MonadMCtx m] (e : Expr) :

                                                              instantiateExprMVars main function

                                                              Instances For
                                                                def Lean.instantiateMVars {m : TypeType} [Monad m] [MonadMCtx m] (e : Expr) :
                                                                Instances For
                                                                  Instances For
                                                                    def Lean.instantiateMVarDeclMVars {m : TypeType} [Monad m] [MonadMCtx m] (mvarId : MVarId) :
                                                                    Instances For
                                                                      Instances For
                                                                        Instances For
                                                                          @[inline]
                                                                          def Lean.findExprDependsOn {m : TypeType} [Monad m] [MonadMCtx m] (e : Expr) (pf : FVarIdBool := fun (x : FVarId) => false) (pm : MVarIdBool := fun (x : MVarId) => false) :

                                                                          Return true iff e depends on a free variable x s.t. pf x is true, or an unassigned metavariable ?m s.t. pm ?m is true. For each metavariable ?m (that does not satisfy pm occurring in x 1- If ?m := t, then we visit t looking for x 2- If ?m is unassigned, then we consider the worst case and check whether x is in the local context of ?m. This case is a "may dependency". That is, we may assign a term t to ?m s.t. t contains x.

                                                                          Instances For
                                                                            @[inline]
                                                                            def Lean.findLocalDeclDependsOn {m : TypeType} [Monad m] [MonadMCtx m] (localDecl : LocalDecl) (pf : FVarIdBool := fun (x : FVarId) => false) (pm : MVarIdBool := fun (x : MVarId) => false) (generalizeNondepLet : Bool := true) :

                                                                            Similar to findExprDependsOn, but checks the expressions in the given local declaration depends on a free variable x s.t. pf x is true or an unassigned metavariable ?m s.t. pm ?m is true.

                                                                            • When generalizeNondepLet := true (the default), then values of nondependent lets are ignored, for computing dependencies from "within" a telescope.
                                                                            Instances For
                                                                              def Lean.exprDependsOn {m : TypeType} [Monad m] [MonadMCtx m] (e : Expr) (fvarId : FVarId) :
                                                                              Instances For
                                                                                def Lean.dependsOn {m : TypeType} [Monad m] [MonadMCtx m] (e : Expr) (fvarId : FVarId) :

                                                                                Return true iff e depends on the free variable fvarId

                                                                                Instances For
                                                                                  def Lean.localDeclDependsOn {m : TypeType} [Monad m] [MonadMCtx m] (localDecl : LocalDecl) (fvarId : FVarId) (generalizeNondepLet : Bool := true) :

                                                                                  Returns true iff localDecl depends on the free variable fvarId

                                                                                  • When generalizeNondepLet := true (the default), then values of nondependent lets are ignored, for computing dependencies from "within" a telescope.
                                                                                  Instances For
                                                                                    def Lean.exprDependsOn' {m : TypeType} [Monad m] [MonadMCtx m] (e x : Expr) :

                                                                                    Similar to exprDependsOn, but x can be a free variable or an unassigned metavariable.

                                                                                    Instances For
                                                                                      def Lean.localDeclDependsOn' {m : TypeType} [Monad m] [MonadMCtx m] (localDecl : LocalDecl) (x : Expr) (generalizeNondepLet : Bool := true) :

                                                                                      Similar to localDeclDependsOn, but x can be a free variable or an unassigned metavariable.

                                                                                      Instances For
                                                                                        def Lean.dependsOnPred {m : TypeType} [Monad m] [MonadMCtx m] (e : Expr) (pf : FVarIdBool := fun (x : FVarId) => false) (pm : MVarIdBool := fun (x : MVarId) => false) :

                                                                                        Return true iff e depends on a free variable x s.t. pf x, or an unassigned metavariable ?m s.t. pm ?m is true.

                                                                                        Instances For
                                                                                          def Lean.localDeclDependsOnPred {m : TypeType} [Monad m] [MonadMCtx m] (localDecl : LocalDecl) (pf : FVarIdBool := fun (x : FVarId) => false) (pm : MVarIdBool := fun (x : MVarId) => false) (generalizeNondepLet : Bool := true) :

                                                                                          Return true iff the local declaration localDecl depends on a free variable x s.t. pf x, an unassigned metavariable ?m s.t. pm ?m is true.

                                                                                          Instances For
                                                                                            def Lean.MetavarContext.addExprMVarDecl (mctx : MetavarContext) (mvarId : MVarId) (userName : Name) (lctx : LocalContext) (localInstances : LocalInstances) (type : Expr) (kind : MetavarKind := MetavarKind.natural) (numScopeArgs : Nat := 0) :

                                                                                            Low level API for adding/declaring metavariable declarations. It is used to implement actions in the monads MetaM, ElabM and TacticM. It should not be used directly since the argument (mvarId : MVarId) is assumed to be "unique".

                                                                                            Instances For
                                                                                              def Lean.MetavarContext.addExprMVarDeclExp (mctx : MetavarContext) (mvarId : MVarId) (userName : Name) (lctx : LocalContext) (localInstances : LocalInstances) (type : Expr) (kind : MetavarKind) :
                                                                                              Instances For

                                                                                                Low level API for adding/declaring universe level metavariable declarations. It is used to implement actions in the monads MetaM, ElabM and TacticM. It should not be used directly since the argument (mvarId : MVarId) is assumed to be "unique".

                                                                                                Instances For

                                                                                                  Modify the declaration of a metavariable. If the metavariable is not declared, the MetavarContext is returned unchanged.

                                                                                                  You must ensure that the modification is legal. In particular, expressions may only be replaced with defeq expressions.

                                                                                                  Instances For

                                                                                                    Set the metavariable user facing name.

                                                                                                    Instances For

                                                                                                      Low-level version of setMVarUserName. It does not update the table userNames. Thus, findUserName? cannot see the modification. It is meant for mkForallFVars' where we temporarily set the user facing name of metavariables to get more meaningful binder names.

                                                                                                      Instances For

                                                                                                        Update the type of the given metavariable. This function assumes the new type is definitionally equal to the current one

                                                                                                        Instances For

                                                                                                          Modify the local context of a metavariable. If the metavariable is not declared, the MetavarContext is returned unchanged.

                                                                                                          You must ensure that the modification is legal. In particular, expressions may only be replaced with defeq expressions.

                                                                                                          Instances For

                                                                                                            Set the kind of an fvar. If the given metavariable is not declared or the given fvar doesn't exist in its context, the MetavarContext is returned unchanged.

                                                                                                            Instances For

                                                                                                              Set the BinderInfo of an fvar. If the given metavariable is not declared or the given fvar doesn't exist in its context, the MetavarContext is returned unchanged.

                                                                                                              Instances For
                                                                                                                def Lean.MetavarContext.incDepth (mctx : MetavarContext) (allowLevelAssignments : Bool := false) :
                                                                                                                Instances For
                                                                                                                  Instances For

                                                                                                                    MkBinding and elimMVarDepsAux are mutually recursive, but cache is only used at elimMVarDepsAux. We use a single state object for convenience.

                                                                                                                    We have a NameGenerator because we need to generate fresh auxiliary metavariables.

                                                                                                                    Instances For
                                                                                                                      • quotContext : Name
                                                                                                                      • preserveOrder : Bool
                                                                                                                      • binderInfoForMVars : BinderInfo

                                                                                                                        When creating binders for abstracted metavariables, we use the following BinderInfo.

                                                                                                                      • mvarIdsToAbstract : MVarIdSet

                                                                                                                        Set of unassigned metavariables being abstracted.

                                                                                                                      Instances For
                                                                                                                        @[reducible, inline]
                                                                                                                        Instances For
                                                                                                                          @[reducible, inline]
                                                                                                                          Instances For
                                                                                                                            def Lean.MetavarContext.MkBinding.collectForwardDeps (lctx : LocalContext) (toRevert : Array Expr) (generalizeNondepLet : Bool := true) :

                                                                                                                            Given toRevert an array of free variables s.t. lctx contains their declarations, return a new array of free variables that contains toRevert and all variables in lctx that may depend on toRevert.

                                                                                                                            When generalizeNondepLet := true (the default), then the values of nondependent lets are not considered when computing forward dependencies.

                                                                                                                            Remark: the result is sorted by LocalDecl indices.

                                                                                                                            Remark: We used to throw an Exception.revertFailure exception when an auxiliary declaration had to be reversed. Recall that auxiliary declarations are created when compiling (mutually) recursive definitions. The revertFailure due to auxiliary declaration dependency was originally introduced in Lean3 to address issue https://github.com/leanprover/lean/issues/1258.

                                                                                                                            In Lean4, this solution is not satisfactory because all definitions/theorems are potentially recursive. So, even a simple (incomplete) definition such as

                                                                                                                            variables {α : Type} in
                                                                                                                            def f (a : α) : List α :=
                                                                                                                            _
                                                                                                                            

                                                                                                                            would trigger the Exception.revertFailure exception. In the definition above, the elaborator creates the auxiliary definition f : {α : Type} → List α. The _ is elaborated as a new fresh variable ?m that contains α : Type, a : α, and f : α → List α in its context, When we try to create the lambda fun {α : Type} (a : α) => ?m, we first need to create an auxiliary ?n which does not contain α and a in its context. That is, we create the metavariable ?n : {α : Type} → (a : α) → (f : α → List α) → List α, add the delayed assignment ?n #[l, a, f] := ?m, and create the lambda fun {α : Type} (a : α) => ?n α a f.

                                                                                                                            See elimMVarDeps for more information.

                                                                                                                            If we kept using the Lean3 approach, we would get the Exception.revertFailure exception because we are reverting the auxiliary definition f.

                                                                                                                            Note that https://github.com/leanprover/lean/issues/1258 is not an issue in Lean4 because we have changed how we compile recursive definitions.

                                                                                                                            Instances For

                                                                                                                              Create a new LocalContext by removing the free variables in toRevert from lctx. We use this function when we create auxiliary metavariables at elimMVarDepsAux.

                                                                                                                              Instances For

                                                                                                                                Revert the variables xs from the local context of mvarId, returning an expression representing the (new) reverted metavariable and the list of variables that were actually reverted (this list will include any forward dependencies).

                                                                                                                                See details in the comment at the top of the file.

                                                                                                                                Instances For
                                                                                                                                  @[inline]

                                                                                                                                  Similar to Expr.abstractRange, but handles metavariables correctly. It uses elimMVarDeps to ensure e and the type of the free variables xs do not contain a metavariable ?m s.t. local context of ?m contains a free variable in xs.

                                                                                                                                  Instances For
                                                                                                                                    def Lean.MetavarContext.MkBinding.mkBinding (isLambda : Bool) (lctx : LocalContext) (xs : Array Expr) (e : Expr) (usedOnly usedLetOnly etaReduce generalizeNondepLet : Bool) :

                                                                                                                                    Similar to LocalContext.mkBinding, but handles metavariables correctly. This function trusts that xs has all forward dependencies that appear in e and that the variables are in order. It will panic when any of the xs is neither a free variable nor a metavariable.

                                                                                                                                    • If usedOnly := true then forall and lambda expressions are created only for used variables.
                                                                                                                                    • If usedLetOnly := true then let expressions are created only for used (let-) variables.
                                                                                                                                    • If generalizeNondepLet := true then nondependent let variables become forall or lambda expressions according to the value of usedOnly. Generally, generalizeNondepLet should be true unless all nondep entries in xs have known provenance, e.g. when leaving a telescope combinator like Meta.lambdaLetTelescope. See also LocalDecl.ldecl.
                                                                                                                                      • This needs to be true when making terms that should remain type correct with respect to the same lctx; for example, if e' ← mkBinding true lctx xs e (generalizeNondepLet := true) and xs' ← xs.filterM (FVarId.isLetVar · false), then one has that mkAppN e' xs' is definitionally equal to e with respect to lctx.
                                                                                                                                      • Note: generalizeNondepLet := true is the common case, so mkBinding API uses it as the default.
                                                                                                                                    Instances For
                                                                                                                                      Instances For
                                                                                                                                        @[reducible, inline]
                                                                                                                                        Instances For
                                                                                                                                          def Lean.MetavarContext.elimMVarDeps (xs : Array Expr) (e : Expr) (preserveOrder : Bool) :
                                                                                                                                          Instances For
                                                                                                                                            def Lean.MetavarContext.revert (xs : Array Expr) (mvarId : MVarId) (preserveOrder : Bool) :
                                                                                                                                            Instances For
                                                                                                                                              def Lean.MetavarContext.mkBinding (isLambda : Bool) (xs : Array Expr) (e : Expr) (usedOnly : Bool := false) (usedLetOnly : Bool := true) (etaReduce : Bool := false) (generalizeNondepLet : Bool := true) (binderInfoForMVars : BinderInfo := BinderInfo.implicit) :
                                                                                                                                              Instances For
                                                                                                                                                @[inline]
                                                                                                                                                def Lean.MetavarContext.mkLambda (xs : Array Expr) (e : Expr) (usedOnly : Bool := false) (usedLetOnly : Bool := true) (etaReduce : Bool := false) (generalizeNondepLet : Bool := true) (binderInfoForMVars : BinderInfo := BinderInfo.implicit) :
                                                                                                                                                Instances For
                                                                                                                                                  @[inline]
                                                                                                                                                  def Lean.MetavarContext.mkForall (xs : Array Expr) (e : Expr) (usedOnly : Bool := false) (usedLetOnly generalizeNondepLet : Bool := true) (binderInfoForMVars : BinderInfo := BinderInfo.implicit) :
                                                                                                                                                  Instances For
                                                                                                                                                    @[inline]
                                                                                                                                                    Instances For
                                                                                                                                                      @[inline]
                                                                                                                                                      def Lean.MetavarContext.collectForwardDeps (toRevert : Array Expr) (preserveOrder : Bool) (generalizeNondepLet : Bool := true) :
                                                                                                                                                      Instances For
                                                                                                                                                        partial def Lean.MetavarContext.isWellFormed {m : TypeType} [Monad m] [MonadMCtx m] (lctx : LocalContext) :
                                                                                                                                                        Exprm Bool

                                                                                                                                                        isWellFormed lctx e returns true iff

                                                                                                                                                        • All locals in e are declared in lctx
                                                                                                                                                        • All metavariables ?m in e have a local context which is a subprefix of lctx or are assigned, and the assignment is well-formed.
                                                                                                                                                        Instances For
                                                                                                                                                          Instances For
                                                                                                                                                            @[reducible, inline]
                                                                                                                                                            Instances For
                                                                                                                                                              Instances For
                                                                                                                                                                def Lean.MetavarContext.levelMVarToParam (mctx : MetavarContext) (alreadyUsedPred : NameBool) (except : LMVarIdBool) (e : Expr) (paramNamePrefix : Name := `u) (nextParamIdx : Nat := 1) :
                                                                                                                                                                Instances For
                                                                                                                                                                  def Lean.MVarId.modifyDecl {m : TypeType} [MonadMCtx m] (mvarId : MVarId) (f : MetavarDeclMetavarDecl) :

                                                                                                                                                                  Modify the declaration of a metavariable. If the metavariable is not declared, nothing happens.

                                                                                                                                                                  You must ensure that the modification is legal. In particular, expressions may only be replaced with defeq expressions.

                                                                                                                                                                  Instances For
                                                                                                                                                                    def Lean.MVarId.modifyLCtx {m : TypeType} [MonadMCtx m] (mvarId : MVarId) (f : LocalContextLocalContext) :

                                                                                                                                                                    Modify the local context of a metavariable. If the metavariable is not declared, nothing happens.

                                                                                                                                                                    You must ensure that the modification is legal. In particular, expressions may only be replaced with defeq expressions.

                                                                                                                                                                    Instances For
                                                                                                                                                                      def Lean.MVarId.setFVarKind {m : TypeType} [MonadMCtx m] (mvarId : MVarId) (fvarId : FVarId) (kind : LocalDeclKind) :

                                                                                                                                                                      Set the kind of an fvar. If the given metavariable is not declared or the given fvar doesn't exist in its context, nothing happens.

                                                                                                                                                                      Instances For
                                                                                                                                                                        def Lean.MVarId.setFVarBinderInfo {m : TypeType} [MonadMCtx m] (mvarId : MVarId) (fvarId : FVarId) (bi : BinderInfo) :

                                                                                                                                                                        Set the BinderInfo of an fvar. If the given metavariable is not declared or the given fvar doesn't exist in its context, nothing happens.

                                                                                                                                                                        Instances For