Equations
- Lean.binductionOnSuffix = "binductionOn"
Instances For
Equations
- Lean.mkRecOnName indDeclName = indDeclName.mkStr Lean.recOnSuffix
Instances For
Equations
- Lean.mkBInductionOnName indDeclName = indDeclName.mkStr Lean.binductionOnSuffix
Instances For
Equations
- Lean.mkIBelowName indDeclName = indDeclName.mkStr Lean.ibelowSuffix
Instances For
Instances For
@[export lean_is_aux_recursor]
Instances For
def
Lean.isAuxRecursorWithSuffix
(env : Lean.Environment)
(declName : Lean.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.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