Documentation

Lean.Elab.SetOption

def Lean.Elab.validateOptionValue {m : TypeType} [Monad m] [MonadError m] (optionName : Name) (decl : OptionDecl) (val : DataValue) :
Equations
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.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Lean.Elab.checkDeprecatedOption {m : TypeType} [Monad m] [MonadOptions m] [MonadLog m] [AddMessageContext m] (optionName : Name) (decl : OptionDecl) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For