Documentation

Lean.Meta.Sym.Arith.Insts

Helpers for synthesizing the optional instances attached to a classified ring: IsCharP, PowIdentity, and NoNatZeroDivisors.

def Lean.Meta.Sym.Arith.getIsCharInst? (u : Level) (type semiringInst : Expr) :

Returns the IsCharP type semiringInst n instance together with the evaluated n.

Instances For

    Returns the PowIdentity instance, the CommSemiring instance it was synthesized against, and the evaluated exponent p.

    Instances For

      Returns the NoNatZeroDivisors instance for type, synthesizing the NatModule premise first.

      Instances For

        Order instances. Each returns none (with a debug issue) when synthInstance? fails.

        def Lean.Meta.Sym.Arith.mkLawfulOrderLTInst? (u : Level) (type : Expr) (ltInst? leInst? : Option Expr) :
        Instances For
          Instances For
            Instances For
              Instances For