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 (Lake.NameMap α) (Lake.Name × α)
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lake.instCoeRBMapNameQuickCmpNameMap_lake = { coe := id }
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Name Helpers #
@[simp]
theorem
Lake.Name.quickCmpAux_iff_eq
{n : Lake.Name}
{n' : Lake.Name}
:
n.quickCmpAux n' = Ordering.eq ↔ n = n'
theorem
Lake.Name.eq_of_quickCmp
{n : Lake.Name}
{n' : Lake.Name}
:
n.quickCmp n' = Ordering.eq → n = n'
Equations
- Lake.Name.quoteFrom ref n = { raw := (Lean.quote n).raw.copyHeadTailInfoFrom ref }