Documentation

Lean.ProjFns

structure Lean.ProjectionFunctionInfo :
Type
Equations
def Lean.mkProjectionInfoEx (ctorName : Lean.Name) (numParams : Nat) (i : Nat) (fromClass : Bool) :
Equations
  • Lean.mkProjectionInfoEx ctorName numParams i fromClass = { ctorName := ctorName, numParams := numParams, i := i, fromClass := fromClass }
def Lean.addProjectionFnInfo (env : Lean.Environment) (projName : Lean.Name) (ctorName : Lean.Name) (numParams : Nat) (i : Nat) (fromClass : Bool) :
Equations
Equations
def Lean.isProjectionFn {m : TypeType} [inst : Lean.MonadEnv m] [inst : Monad m] (declName : Lean.Name) :
Equations
def Lean.getProjectionFnInfo? {m : TypeType} [inst : Lean.MonadEnv m] [inst : Monad m] (declName : Lean.Name) :
Equations