@[extern c inline "lean_box(LEAN_MAX_CTOR_FIELDS)"]
@[extern c inline "lean_box(LEAN_MAX_CTOR_SCALARS_SIZE)"]
- env : Lean.Environment
- localCtx : Lean.IR.LocalContext
- decls : Array Lean.IR.Decl
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
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.
Equations
- Lean.IR.Checker.checkArg a = match a with | Lean.IR.Arg.var x => Lean.IR.Checker.checkVar x | x => pure ()
Equations
@[inline]
Equations
- Lean.IR.Checker.checkEqTypes ty₁ ty₂ = if (ty₁ == ty₂) = true then pure PUnit.unit else throw "unexpected type '{ty₁}' != '{ty₂}'"
@[inline]
def
Lean.IR.Checker.checkType
(ty : Lean.IR.IRType)
(p : Lean.IR.IRType → Bool)
(suffix? : optParam (Option String) none)
:
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.IR.Checker.checkObjType ty = Lean.IR.Checker.checkType ty Lean.IR.IRType.isObj (some "object expected")
Equations
- Lean.IR.Checker.checkScalarType ty = Lean.IR.Checker.checkType ty Lean.IR.IRType.isScalar (some "scalar expected")
Equations
- One or more equations did not get rendered due to their size.
@[inline]
def
Lean.IR.Checker.checkVarType
(x : Lean.IR.VarId)
(p : Lean.IR.IRType → Bool)
(suffix? : optParam (Option String) none)
:
Equations
- Lean.IR.Checker.checkVarType x p suffix? = do let ty ← Lean.IR.Checker.getType x Lean.IR.Checker.checkType ty p suffix?
Equations
- Lean.IR.Checker.checkObjVar x = Lean.IR.Checker.checkVarType x Lean.IR.IRType.isObj (some "object expected")
Equations
- Lean.IR.Checker.checkScalarVar x = Lean.IR.Checker.checkVarType x Lean.IR.IRType.isScalar (some "scalar expected")
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.
@[inline]
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.
Equations
- Lean.IR.checkDecls decls = Array.forM (Lean.IR.checkDecl decls) decls 0 (Array.size decls)