def
Lean.Kernel.Environment.addDecl
(env : Environment)
(opts : Options)
(decl : Declaration)
(cancelTk? : Option IO.CancelToken := none)
:
Adds given declaration to the environment, respecting debug.skipKernelTC
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns the kind of the declaration as originally declared instead of as exported. This information
is stored by Lean.addDecl
and may be inaccurate if that function was circumvented. Returns none
if the declaration was not found.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Checks whether the declaration was originally declared as a theorem; see also
Lean.getOriginalConstKind?
. Returns false
if the declaration was not found.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If warn.sorry
is set to true, then, so long as the message log does not already have any errors,
declarations with sorryAx
generate the "declaration uses 'sorry'" warning.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.addAndCompile decl logCompileErrors = do Lean.addDecl decl Lean.compileDecl decl logCompileErrors