@[reducible, inline]
Instances For
- keys : Array InstanceKey
- val : Expr
- priority : Nat
The order in which the instance's arguments are to be synthesized.
- attrKind : AttributeKind
Instances For
@[instance_reducible]
Equations
@[instance_reducible]
Equations
- Lean.Meta.instBEqInstanceEntry = { beq := fun (e₁ e₂ : Lean.Meta.InstanceEntry) => e₁.val == e₂.val }
@[instance_reducible]
Equations
- Lean.Meta.instToFormatInstanceEntry = { format := fun (e : Lean.Meta.InstanceEntry) => match e.globalName? with | some n => Std.format n | x => Std.Format.text "<local>" }
@[reducible, inline]
Instances For
- discrTree : InstanceTree
- instanceNames : PHashMap Name InstanceEntry
Instances For
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- d.eraseCore declName = { discrTree := d.discrTree, instanceNames := Lean.PersistentHashMap.erase d.instanceNames declName, erased := Lean.PersistentHashSet.insert d.erased declName }
Instances For
def Lean.Meta.Instances.erase {m : Type → Type} [Monad m] [MonadError m] (d : Instances) (declName : Name) :
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Meta.registerInstance declName attrKind prio = do Lean.setReducibilityStatus declName Lean.ReducibilityStatus.instanceReducible Lean.Meta.addInstance declName attrKind prio
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Meta.isInstance declName = do let __do_lift ← Lean.getEnv pure (Lean.Meta.isInstanceCore __do_lift declName)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Default instance support #
@[reducible, inline]
Equations
- Lean.Meta.PrioritySet = Std.TreeSet Nat fun (x y : Nat) => compare y x
Instances For
- priorities : PrioritySet
Instances For
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Meta.getDefaultInstancesPriorities = do let __do_lift ← Lean.getEnv pure (Lean.Meta.defaultInstanceExtension.getState __do_lift).priorities