Documentation

Lean.Elab.ConfigEval.DeriveEvalConfigItem

Derivation of EvalConfigItem #

This module defines defEvalConfigItem, which derives an EvalConfigItem object for structures. Its main interface are the command syntaxes defined in Lean.Elab.ConfigEval.Commands.

  • exact : EvalConfigItemHandlerKind

    Handler is called when its key matches the configuration key exactly. The matched key is not allowed to be Name.anonymous.

  • wildcard : EvalConfigItemHandlerKind

    Handler is called when its key is a strict prefix of the configuration key. The matched key may be Name.anonymous.

Instances For
    • ref : Syntax

      Ref for the key.

    • key : Name

      The key that's handled. May be anonymous for certain kinds.

    • The kind of match this handler is looking for.

    • body : Term

      A function fun cfg item => ....

    • projFn? : Option Name

      Constant to use for terminfo. This is added to the HandlerTrie.

    • struct? : Option Name

      Constant to use for field completion terminfo.

    Instances For
      Instances For

        Precompiled version of evalTermOrExprWithElab (α := Bool) that also makes use of the cached item.bool? value.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Lean.Elab.ConfigEval.defEvalConfigItem (doc? : Option (TSyntax `Lean.Parser.Command.docComment)) (vis? : Option (TSyntax `Lean.Parser.Command.visibility)) (kind : TSyntax `Lean.Parser.Term.attrKind) (tk : Syntax) (struct fnIdent : Ident) (extraBinders : TSyntaxArray `Lean.Parser.Term.bracketedBinder) (view : EvalConfigItemView) :

            Makes an EvalConfigItem for the structure. Supports structures with no parameters or universes.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For