- keys : Array Lean.Meta.InstanceKey
- val : Lean.Expr
- priority : Nat
The order in which the instance's arguments are to be synthesized.
- attrKind : Lean.AttributeKind
Instances For
Equations
- Lean.Meta.instBEqInstanceEntry = { beq := fun (e₁ e₂ : Lean.Meta.InstanceEntry) => e₁.val == e₂.val }
Equations
- Lean.Meta.instToFormatInstanceEntry = { format := fun (e : Lean.Meta.InstanceEntry) => match e.globalName? with | some n => Lean.format n | x => Std.Format.text "<local>" }
@[reducible, inline]
Instances For
- discrTree : Lean.Meta.InstanceTree
- instanceNames : Lean.PHashMap Lean.Name Lean.Meta.InstanceEntry
- erased : Lean.PHashSet Lean.Name
Instances For
Equations
- Lean.Meta.instInhabitedInstances = { default := { discrTree := default, instanceNames := default, erased := default } }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
def
Lean.Meta.Instances.erase
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
(d : Lean.Meta.Instances)
(declName : Lean.Name)
:
Instances For
Instances For
Instances For
Equations
- Lean.Meta.isInstanceCore env declName = Lean.PersistentHashMap.contains (Lean.ScopedEnvExtension.getState Lean.Meta.instanceExtension env).instanceNames declName
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Default instance support #
- defaultInstances : Lean.NameMap (List (Lean.Name × Nat))
- priorities : Lean.Meta.PrioritySet
Instances For
Equations
- Lean.Meta.instInhabitedDefaultInstances = { default := { defaultInstances := default, priorities := default } }
def
Lean.Meta.addDefaultInstanceEntry
(d : Lean.Meta.DefaultInstances)
(e : Lean.Meta.DefaultInstanceEntry)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Instances For
def
Lean.Meta.getDefaultInstances
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
(className : Lean.Name)
:
Equations
- Lean.Meta.getDefaultInstances className = do let __do_lift ← Lean.getEnv pure (((Lean.Meta.defaultInstanceExtension.getState __do_lift).defaultInstances.find? className).getD [])