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
Instances For
@[implicit_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
Equations
@[implicit_reducible]
Equations
Equations
Instances For
@[implicit_reducible]
Equations
Equations
Instances For
The state of the ext extension environment
- tree : DiscrTree ExtTheorem
The tree of
extextensions. Erased
exts viaattribute [-ext].
Instances For
@[implicit_reducible]
Equations
Instances For
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
Returns true if d contains theorem with name declName.
Equations
- d.contains declName = ((d.tree.containsValueP fun (x : Lean.Meta.Ext.ExtTheorem) => x.declName == declName) && !Lean.PersistentHashSet.contains d.erased declName)
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.