Instances For
@[extern lean_get_max_ctor_scalars_size]
Instances For
Instances For
Instances For
- env : Lean.Environment
- localCtx : Lean.IR.LocalContext
- decls : Array Lean.IR.Decl
Instances For
@[inline, reducible]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.IR.Checker.checkArg a = match a with | Lean.IR.Arg.var x => Lean.IR.Checker.checkVar x | x => pure ()
Instances For
Equations
Instances For
@[inline]
Equations
- Lean.IR.Checker.checkEqTypes ty₁ ty₂ = if (ty₁ == ty₂) = true then pure PUnit.unit else throw "unexpected type '{ty₁}' != '{ty₂}'"
Instances For
@[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.
Instances For
Equations
- Lean.IR.Checker.checkObjType ty = Lean.IR.Checker.checkType ty Lean.IR.IRType.isObj (some "object expected")
Instances For
Equations
- Lean.IR.Checker.checkScalarType ty = Lean.IR.Checker.checkType ty Lean.IR.IRType.isScalar (some "scalar expected")
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[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?
Instances For
Equations
- Lean.IR.Checker.checkObjVar x = Lean.IR.Checker.checkVarType x Lean.IR.IRType.isObj (some "object expected")
Instances For
Equations
- Lean.IR.Checker.checkScalarVar x = Lean.IR.Checker.checkVarType x Lean.IR.IRType.isScalar (some "scalar expected")
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.IR.checkDecls decls = Array.forM (Lean.IR.checkDecl decls) decls 0