ToExpr instances for CommRing.Poly types. Numerals are constructor applications on raw
literals (Int.ofNat n, Int.negSucc n, and raw Nat literals), which the kernel evaluates
without unfolding OfNat.ofNat and Neg.neg when it checks certificates.
k as Int.ofNat n or Int.negSucc n on a raw literal.
Equations
- Lean.Meta.Sym.Arith.mkIntLitK (Int.ofNat n) = Lean.mkApp (Lean.mkConst `Int.ofNat) (Lean.mkRawNatLit n)
- Lean.Meta.Sym.Arith.mkIntLitK (Int.negSucc n) = Lean.mkApp (Lean.mkConst `Int.negSucc) (Lean.mkRawNatLit n)
Instances For
Equations
- Lean.Meta.Sym.Arith.ofPower p = Lean.mkApp2 (Lean.mkConst `Lean.Grind.CommRing.Power.mk) (Lean.mkRawNatLit p.x) (Lean.mkRawNatLit p.k)
Instances For
@[instance_reducible]
Equations
- Lean.Meta.Sym.Arith.instToExprPower = { toExpr := Lean.Meta.Sym.Arith.ofPower, toTypeExpr := Lean.mkConst `Lean.Grind.CommRing.Power }
Equations
- Lean.Meta.Sym.Arith.ofMon Lean.Grind.CommRing.Mon.unit = Lean.mkConst `Lean.Grind.CommRing.Mon.unit
- Lean.Meta.Sym.Arith.ofMon (Lean.Grind.CommRing.Mon.mult pw m_2) = Lean.mkApp2 (Lean.mkConst `Lean.Grind.CommRing.Mon.mult) (Lean.toExpr pw) (Lean.Meta.Sym.Arith.ofMon m_2)
Instances For
@[instance_reducible]
Equations
- Lean.Meta.Sym.Arith.instToExprMon = { toExpr := Lean.Meta.Sym.Arith.ofMon, toTypeExpr := Lean.mkConst `Lean.Grind.CommRing.Mon }
Equations
- One or more equations did not get rendered due to their size.
- Lean.Meta.Sym.Arith.ofPoly (Lean.Grind.CommRing.Poly.num k) = Lean.mkApp (Lean.mkConst `Lean.Grind.CommRing.Poly.num) (Lean.Meta.Sym.Arith.mkIntLitK k)
Instances For
@[instance_reducible]
Equations
- Lean.Meta.Sym.Arith.instToExprPoly = { toExpr := Lean.Meta.Sym.Arith.ofPoly, toTypeExpr := Lean.mkConst `Lean.Grind.CommRing.Poly }
Equations
- Lean.Meta.Sym.Arith.ofRingExpr (Lean.Grind.CommRing.Expr.num k) = Lean.mkApp (Lean.mkConst `Lean.Grind.CommRing.Expr.num) (Lean.Meta.Sym.Arith.mkIntLitK k)
- Lean.Meta.Sym.Arith.ofRingExpr (Lean.Grind.CommRing.Expr.intCast k) = Lean.mkApp (Lean.mkConst `Lean.Grind.CommRing.Expr.intCast) (Lean.Meta.Sym.Arith.mkIntLitK k)
- Lean.Meta.Sym.Arith.ofRingExpr (Lean.Grind.CommRing.Expr.natCast k) = Lean.mkApp (Lean.mkConst `Lean.Grind.CommRing.Expr.natCast) (Lean.mkRawNatLit k)
- Lean.Meta.Sym.Arith.ofRingExpr (Lean.Grind.CommRing.Expr.var x) = Lean.mkApp (Lean.mkConst `Lean.Grind.CommRing.Expr.var) (Lean.mkRawNatLit x)
- Lean.Meta.Sym.Arith.ofRingExpr (a.add b) = Lean.mkApp2 (Lean.mkConst `Lean.Grind.CommRing.Expr.add) (Lean.Meta.Sym.Arith.ofRingExpr a) (Lean.Meta.Sym.Arith.ofRingExpr b)
- Lean.Meta.Sym.Arith.ofRingExpr (a.mul b) = Lean.mkApp2 (Lean.mkConst `Lean.Grind.CommRing.Expr.mul) (Lean.Meta.Sym.Arith.ofRingExpr a) (Lean.Meta.Sym.Arith.ofRingExpr b)
- Lean.Meta.Sym.Arith.ofRingExpr (a.sub b) = Lean.mkApp2 (Lean.mkConst `Lean.Grind.CommRing.Expr.sub) (Lean.Meta.Sym.Arith.ofRingExpr a) (Lean.Meta.Sym.Arith.ofRingExpr b)
- Lean.Meta.Sym.Arith.ofRingExpr a.neg = Lean.mkApp (Lean.mkConst `Lean.Grind.CommRing.Expr.neg) (Lean.Meta.Sym.Arith.ofRingExpr a)
- Lean.Meta.Sym.Arith.ofRingExpr (a.pow k) = Lean.mkApp2 (Lean.mkConst `Lean.Grind.CommRing.Expr.pow) (Lean.Meta.Sym.Arith.ofRingExpr a) (Lean.mkRawNatLit k)
Instances For
@[instance_reducible]
Equations
- Lean.Meta.Sym.Arith.instToExprExpr = { toExpr := Lean.Meta.Sym.Arith.ofRingExpr, toTypeExpr := Lean.mkConst `Lean.Grind.CommRing.Expr }