Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Command.elabInductive modifiers stx = do let v ← Lean.Elab.Command.inductiveSyntaxToView modifiers stx Lean.Elab.Command.elabInductiveViews #[v]
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Macro that expands a declaration with a complex name into an explicit namespace
block.
Implementing this step as a macro means that reuse checking is handled by elabCommand
.
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
Find the common namespace for the given names. Example:
findCommonPrefix [`Lean.Elab.eval, `Lean.mkConst, `Lean.Elab.Tactic.evalTactic]
-- `Lean
Equations
- Lean.Elab.Command.findCommonPrefix ns = match ns with | [] => Lean.Name.anonymous | n :: ns => Lean.Elab.Command.findCommonPrefix.go n ns
Instances For
Equations
- Lean.Elab.Command.findCommonPrefix.go Lean.Name.anonymous ns = Lean.Name.anonymous
- Lean.Elab.Command.findCommonPrefix.go n [] = n
- Lean.Elab.Command.findCommonPrefix.go n (n' :: ns_2) = Lean.Elab.Command.findCommonPrefix.go (Lean.Elab.Command.findCommonPrefix.findCommon n.components n'.components) ns_2
Instances For
Equations
- Lean.Elab.Command.findCommonPrefix.findCommon (a :: as_2) (b :: bs_2) = if (a == b) = true then a ++ Lean.Elab.Command.findCommonPrefix.findCommon as_2 bs_2 else Lean.Name.anonymous
- Lean.Elab.Command.findCommonPrefix.findCommon as bs = Lean.Name.anonymous
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
- 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.