The alias
command #
The alias
command is used to create synonyms. The plain command can create a synonym of any
declaration. There is also a version to create synonyms for the forward and reverse implications of
an iff theorem.
- plain: Lean.Name → Std.Tactic.Alias.AliasInfo
Plain alias
- forward: Lean.Name → Std.Tactic.Alias.AliasInfo
Forward direction of an iff alias
- reverse: Lean.Name → Std.Tactic.Alias.AliasInfo
Reverse direction of an iff alias
An alias can be in one of three forms
Instances For
The name underlying an alias target
Instances For
The docstring for an alias.
Instances For
Environment extension for registering aliases
Get the alias information for a name
Instances For
Set the alias info for a new declaration
Instances For
Updates the deprecated
declaration to point to target
if no target is provided.
Instances For
The command alias name := target
creates a synonym of target
with the given name.
The command alias ⟨fwd, rev⟩ := target
creates synonyms for the forward and reverse directions
of an iff theorem. Use _
if only one direction is required.
These commands accept all modifiers and attributes that def
and theorem
do.
Instances For
Given a possibly forall-quantified iff expression prf
, produce a value for one
of the implication directions (determined by mp
).
Instances For
The command alias name := target
creates a synonym of target
with the given name.
The command alias ⟨fwd, rev⟩ := target
creates synonyms for the forward and reverse directions
of an iff theorem. Use _
if only one direction is required.
These commands accept all modifiers and attributes that def
and theorem
do.