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
@[deprecated "use `Lean.addDecl` instead to ensure new namespaces are registered" (since := "2024-12-03")]
def
Lean.Environment.addDecl
(env : Environment)
(opts : Options)
(decl : Declaration)
(cancelTk? : Option IO.CancelToken := none)
:
Equations
- env.addDecl opts decl cancelTk? = Lean.Environment.addDeclAux✝ env opts decl cancelTk?
Instances For
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
Equations
- Lean.addAndCompile decl = do Lean.addDecl decl Lean.compileDecl decl