First tries to convert a string into a legal name.
If that fails, defaults to making it a simple name (e.g., Lean.Name.mkSimple
).
Equations
- Lake.stringToLegalOrSimpleName s = if s.toName.isAnonymous = true then Lean.Name.mkSimple s else s.toName
Instances For
instance
Lake.instForInNameMapProdName_lake
{m : Type u_1 → Type u_2}
{α : Type}
:
ForIn m (Lean.NameMap α) (Lean.Name × α)
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Name Helpers #
@[simp]
Equations
- Lake.Name.quoteFrom ref n = { raw := (Lean.quote `term n).raw.copyHeadTailInfoFrom ref }