Equations
- Lean.binductionOnSuffix = "binductionOn"
Instances For
Equations
- Lean.mkCasesOnName indDeclName = indDeclName.mkStr Lean.casesOnSuffix
Instances For
Equations
- Lean.mkRecOnName indDeclName = indDeclName.mkStr Lean.recOnSuffix
Instances For
Equations
- Lean.mkBRecOnName indDeclName = indDeclName.mkStr Lean.brecOnSuffix
Instances For
Equations
- Lean.mkBInductionOnName indDeclName = indDeclName.mkStr Lean.binductionOnSuffix
Instances For
Equations
- Lean.mkBelowName indDeclName = indDeclName.mkStr Lean.belowSuffix
Instances For
@[export lean_mark_aux_recursor]
Equations
- Lean.markAuxRecursor env declName = Lean.auxRecExt.tag env declName
Instances For
@[export lean_is_aux_recursor]
Equations
- Lean.isAuxRecursor env declName = (Lean.auxRecExt.isTagged env declName || declName == `Eq.ndrec || declName == `Eq.ndrecOn)
Instances For
def
Lean.isAuxRecursorWithSuffix
(env : Lean.Environment)
(declName : Lake.Name)
(suffix : String)
:
Equations
- Lean.isAuxRecursorWithSuffix env declName suffix = match declName with | pre.str s => s == suffix && Lean.isAuxRecursor env declName | x => false
Instances For
Equations
- Lean.isCasesOnRecursor env declName = Lean.isAuxRecursorWithSuffix env declName Lean.casesOnSuffix
Instances For
Equations
- Lean.isRecOnRecursor env declName = Lean.isAuxRecursorWithSuffix env declName Lean.recOnSuffix
Instances For
Equations
- Lean.isBRecOnRecursor env declName = Lean.isAuxRecursorWithSuffix env declName Lean.brecOnSuffix
Instances For
@[export lean_mark_no_confusion]
Equations
- Lean.markNoConfusion env n = Lean.noConfusionExt.tag env n
Instances For
@[export lean_is_no_confusion]
Equations
- Lean.isNoConfusion env n = Lean.noConfusionExt.isTagged env n