Helpers for synthesizing the optional instances attached to a classified ring:
IsCharP, PowIdentity, and NoNatZeroDivisors.
The IsCharP instance of a semiring, if any, and its characteristic when it is a numeral.
The
IsCharP type semiringInst ninstance together with the evaluatedn, ifnis a numeral.- symbolic : Bool
trueif anIsCharPinstance exists but its characteristic is not a numeral, e.g.2 ^ wforBitVec w.
Instances For
Returns the IsCharP type semiringInst n instance together with the evaluated n, if n is a numeral.
Equations
- Lean.Meta.Sym.Arith.getIsCharInst? u type semiringInst = do let __do_lift ← Lean.Meta.Sym.Arith.getCharInfo u type semiringInst pure __do_lift.inst?
Instances For
Returns the PowIdentity instance, the CommSemiring instance it was synthesized against,
and the evaluated exponent p.
Equations
- One or more equations did not get rendered due to their size.
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) :
Equations
- One or more equations did not get rendered due to their size.
- Lean.Meta.Sym.Arith.mkLawfulOrderLTInst? u type (some charInst) leInst? = pure none
- Lean.Meta.Sym.Arith.mkLawfulOrderLTInst? u type ltInst? leInst? = pure none