Documentation

Lean.Elab.SetOption

def Lean.Elab.validateOptionValue {m : TypeType} [Monad m] [MonadError m] (optionName : Name) (decl : OptionDecl) (val : DataValue) :
Instances For

    Elaborates id as an identifier representing an option name with value given by val, adding appropriate info to the infotrees.

    Validates that val has the correct type for values of the option id, and returns the updated Options. Does not update the options in the monad m.

    Instances For
      def Lean.Elab.checkDeprecatedOption {m : TypeType} [Monad m] [MonadOptions m] [MonadLog m] [AddMessageContext m] (optionName : Name) (decl : OptionDecl) :
      Instances For