Equations
- Lean.Meta.Linear.Nat.instReprExpr = { reprPrec := Lean.Meta.Linear.Nat.reprExpr✝ }
Equations
Equations
@[inline]
@[inline]
@[inline]
Equations
- One or more equations did not get rendered due to their size.
- Lean.Meta.Linear.Nat.LinearExpr.toExpr (Nat.Linear.Expr.num v) = Lean.mkApp (Lean.mkConst (Lean.Name.mkStr4 "Nat" "Linear" "Expr" "num")) (Lean.mkNatLit v)
- Lean.Meta.Linear.Nat.LinearExpr.toExpr (Nat.Linear.Expr.var i) = Lean.mkApp (Lean.mkConst (Lean.Name.mkStr4 "Nat" "Linear" "Expr" "var")) (Lean.mkNatLit i)
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Meta.Linear.Nat.LinearExpr.toArith
(ctx : Array Lean.Expr)
(e : Lean.Meta.Linear.Nat.LinearExpr)
:
Equations
- One or more equations did not get rendered due to their size.
- Lean.Meta.Linear.Nat.LinearExpr.toArith ctx (Nat.Linear.Expr.num v) = pure (Lean.mkNatLit v)
- Lean.Meta.Linear.Nat.LinearExpr.toArith ctx (Nat.Linear.Expr.var i) = pure ctx[i]!
- Lean.Meta.Linear.Nat.LinearExpr.toArith ctx (Nat.Linear.Expr.mulL k a) = do let a ← Lean.Meta.Linear.Nat.LinearExpr.toArith ctx a Lean.Meta.mkMul (Lean.mkNatLit k) a
- Lean.Meta.Linear.Nat.LinearExpr.toArith ctx (Nat.Linear.Expr.mulR a k) = do let a ← Lean.Meta.Linear.Nat.LinearExpr.toArith ctx a Lean.Meta.mkMul a (Lean.mkNatLit k)
def
Lean.Meta.Linear.Nat.LinearCnstr.toArith
(ctx : Array Lean.Expr)
(c : Lean.Meta.Linear.Nat.LinearCnstr)
:
Equations
- One or more equations did not get rendered due to their size.
- varMap : Lean.Meta.KExprMap Nat
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Meta.Linear.Nat.ToLinear.run
{α : Type}
(x : Lean.Meta.Linear.Nat.ToLinear.M α)
:
Lean.MetaM (α × Array Lean.Expr)
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.Linear.Nat.toContextExpr ctx = Lean.Meta.mkListLit (Lean.mkConst (Lean.Name.mkStr1 "Nat")) (Array.toList ctx)
Equations
- One or more equations did not get rendered due to their size.