Documentation

Lean.Meta.Sym.SynthInstance

Some modules in grind use builtin instances defined directly in core (e.g., lia). Users may provide nonstandard instances that are definitionally equal to the ones in core. Given a type, such as HAdd Int Int Int, this function returns the instance defined in core.

Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      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
          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
            Instances For