@[inline]
- keys : Array Lean.Meta.InstanceKey
- val : Lean.Expr
- priority : Nat
- attrKind : Lean.AttributeKind
Instances For
Equations
- Lean.Meta.instInhabitedInstanceEntry = { default := { keys := default, val := default, priority := default, globalName? := default, attrKind := default } }
Equations
- Lean.Meta.instBEqInstanceEntry = { beq := fun e₁ e₂ => e₁.val == e₂.val }
Equations
- Lean.Meta.instToFormatInstanceEntry = { format := fun e => match e.globalName? with | some n => Std.format n | x => Std.Format.text "<local>" }
@[inline]
- 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.
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Meta.Instances.erase
{m : Type → Type}
[inst : Monad m]
[inst : Lean.MonadError m]
(d : Lean.Meta.Instances)
(declName : Lean.Name)
:
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.getGlobalInstancesIndex = do let __do_lift ← Lean.getEnv pure (Lean.ScopedEnvExtension.getState Lean.Meta.instanceExtension __do_lift).discrTree
Equations
- Lean.Meta.getErasedInstances = do let __do_lift ← Lean.getEnv pure (Lean.ScopedEnvExtension.getState Lean.Meta.instanceExtension __do_lift).erased
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Default instance support #
@[inline]
Equations
- Lean.Meta.PrioritySet = Lean.RBTree Nat fun x y => compare y x
- 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.
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Meta.getDefaultInstancesPriorities
{m : Type → Type}
[inst : Monad m]
[inst : Lean.MonadEnv m]
:
Equations
- Lean.Meta.getDefaultInstancesPriorities = do let __do_lift ← Lean.getEnv pure (Lean.SimplePersistentEnvExtension.getState Lean.Meta.defaultInstanceExtension __do_lift).priorities