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
Equations
- Lean.mkIBelowName indDeclName = indDeclName.mkStr Lean.ibelowSuffix
Instances For
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 (pre.str s) suffix = ((s == suffix || s.startsWith (toString "" ++ toString suffix ++ toString "_")) && Lean.isAuxRecursor env (pre.str s))
- Lean.isAuxRecursorWithSuffix env declName suffix = 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
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