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
Equations
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 => Std.format n | x => Std.Format.text "<local>" }
Instances For
- discrTree : InstanceTree
- instanceNames : DeclKeyedMap Name InstanceEntry
- classChanges : PHashMap Name (List InstanceChange)
For each class, the changes of its instances since the import, newest first. Type class resolution depends on the global instances only through the classes it consults, and records their changes instead of the generation of the whole table (
RecordedDeps.instClassChanges). Recorded changes are only compared within the module that recorded them, i.e. against states with the same imported instances, so equal changes mean equal instances of the class. Restoring an earlier state (e.g. at the end of a section) restores the changes with it.
Instances For
Equations
The class an instance's key is rooted at; see Instances.classChanges.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The changes of the instances of className since the import; see Instances.classChanges.
Equations
- d.getClassChanges className = Lean.PersistentHashMap.findD d.classChanges className []
Instances For
Adds an imported instance, which is not a change; see Instances.classChanges.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
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
The global instance entries of a module, preprocessed and stored in its olean so that importing them
does not require adding each entry (see registerSimpleScopedEnvExtensionWithSummaries).
- roots : Array (DiscrTree.Key × DiscrTree.Trie InstanceEntry)
The names and entries of the named entries owned by the module (see
ImportedDeclKeyedMap.sortOwned).The names and entries of the remaining named entries, in order.
Instances For
Preprocesses the global instance entries the current module exports.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Adds the global entries of all imported modules to the empty instance set d, as
addImportedInstanceEntry would.
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
The changes of the global instances of className; see Instances.classChanges.
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 #
Equations
- Lean.Meta.PrioritySet = Std.TreeSet Nat fun (x y : Nat) => compare y x
Instances For
- priorities : PrioritySet
Instances For
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