7. Definitions
The following commands in Lean are definition-like:
-
def -
abbrev -
example -
theorem -
opaque
All of these commands cause Lean to elaborate a term based on a signature.
With the exception of Lean.Parser.Command.exampleexample, which discards the result, the resulting expression in Lean's core language is saved for future use in the environment.
The Lean.Parser.Command.declaration : commandinstance command is described in the section on instance declarations.