Environment extension for ext
theorems #
Information about an extensionality theorem, stored in the environment extension.
- declName : Name
Declaration name of the extensionality theorem.
- priority : Nat
Priority of the extensionality theorem.
- keys : Array DiscrTree.Key
Key in the discrimination tree, for the type in which the extensionality theorem holds.
Instances For
Equations
- Lean.Meta.Ext.instInhabitedExtTheorem = { default := { declName := default, priority := default, keys := default } }
Equations
- Lean.Meta.Ext.instReprExtTheorem = { reprPrec := Lean.Meta.Ext.reprExtTheorem✝ }
Equations
Equations
The state of the ext
extension environment
- tree : DiscrTree ExtTheorem
The tree of
ext
extensions. Erased
ext
s viaattribute [-ext]
.
Instances For
Equations
- Lean.Meta.Ext.instInhabitedExtTheorems = { default := { tree := default, erased := default } }
The environment extension to track @[ext]
theorems.
@[inline]
Gets the list of @[ext]
theorems corresponding to the key ty
,
ordered from high priority to low.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Meta.Ext.ExtTheorems.erase
{m : Type → Type}
[Monad m]
[MonadError m]
(d : ExtTheorems)
(declName : Name)
:
Erases a name marked as a ext
attribute.
Check that it does in fact have the ext
attribute by making sure it names a ExtTheorem
found somewhere in the state's tree, and is not erased.
Equations
- One or more equations did not get rendered due to their size.