Registers inst as the instance for type. synthInstance? returns it without
running typeclass resolution, making inst the canonical representative for type.
Intended for satellite modules that construct instances for types they create themselves
(e.g., grind linarith's envelope type IntModule.OfNatModule.Q).
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
Helper function for instantiating a type class type, and
then using the result to perform isDefEq x val.
Equations
- Lean.Meta.Sym.synthInstanceAndAssign x type = do let __x ← Lean.Meta.Sym.synthInstance? type match __x with | some val => liftM (Lean.Meta.isDefEq x val) | x => pure false