Equations
- Lean.instCoeStringName = { coe := Lean.Name.mkSimple }
@[export lean_name_hash_exported]
Equations
Equations
- Lean.Name.getPrefix _fun_discr = match _fun_discr with | Lean.Name.anonymous => Lean.Name.anonymous | Lean.Name.str p a a_1 => p | Lean.Name.num p a a_1 => p
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Name.getNumParts Lean.Name.anonymous = 0
- Lean.Name.getNumParts (Lean.Name.str p a a_1) = Lean.Name.getNumParts p + 1
- Lean.Name.getNumParts (Lean.Name.num p a a_1) = Lean.Name.getNumParts p + 1
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- Lean.Name.eqStr _fun_discr _fun_discr = match _fun_discr, _fun_discr with | Lean.Name.str Lean.Name.anonymous s a, s' => s == s' | x, x_1 => false
Equations
- Lean.Name.isPrefixOf _fun_discr Lean.Name.anonymous = (_fun_discr == Lean.Name.anonymous)
- Lean.Name.isPrefixOf _fun_discr (Lean.Name.num p' a a_1) = (_fun_discr == Lean.Name.num p' a a_1 || Lean.Name.isPrefixOf _fun_discr p')
- Lean.Name.isPrefixOf _fun_discr (Lean.Name.str p' a a_1) = (_fun_discr == Lean.Name.str p' a a_1 || Lean.Name.isPrefixOf _fun_discr p')
Equations
- Lean.Name.isSuffixOf Lean.Name.anonymous _fun_discr = true
- Lean.Name.isSuffixOf (Lean.Name.str p₁ s₁ a) (Lean.Name.str p₂ s₂ a_1) = (s₁ == s₂ && Lean.Name.isSuffixOf p₁ p₂)
- Lean.Name.isSuffixOf (Lean.Name.num p₁ n₁ a) (Lean.Name.num p₂ n₂ a_1) = (n₁ == n₂ && Lean.Name.isSuffixOf p₁ p₂)
- Lean.Name.isSuffixOf _fun_discr _fun_discr = false
Equations
- Lean.Name.cmp Lean.Name.anonymous Lean.Name.anonymous = Ordering.eq
- Lean.Name.cmp Lean.Name.anonymous _fun_discr = Ordering.lt
- Lean.Name.cmp _fun_discr Lean.Name.anonymous = Ordering.gt
- Lean.Name.cmp (Lean.Name.num p₁ i₁ a) (Lean.Name.num p₂ i₂ a_1) = match Lean.Name.cmp p₁ p₂ with | Ordering.eq => compare i₁ i₂ | ord => ord
- Lean.Name.cmp (Lean.Name.num a a_1 a_2) (Lean.Name.str a_3 a_4 a_5) = Ordering.lt
- Lean.Name.cmp (Lean.Name.str a a_1 a_2) (Lean.Name.num a_3 a_4 a_5) = Ordering.gt
- Lean.Name.cmp (Lean.Name.str p₁ n₁ a) (Lean.Name.str p₂ n₂ a_1) = match Lean.Name.cmp p₁ p₂ with | Ordering.eq => compare n₁ n₂ | ord => ord
Equations
- Lean.Name.lt x y = (Lean.Name.cmp x y == Ordering.lt)
Equations
- Lean.Name.quickCmpAux Lean.Name.anonymous Lean.Name.anonymous = Ordering.eq
- Lean.Name.quickCmpAux Lean.Name.anonymous _fun_discr = Ordering.lt
- Lean.Name.quickCmpAux _fun_discr Lean.Name.anonymous = Ordering.gt
- Lean.Name.quickCmpAux (Lean.Name.num p₁ i₁ a) (Lean.Name.num p₂ i₂ a_1) = match compare i₁ i₂ with | Ordering.eq => Lean.Name.quickCmpAux p₁ p₂ | ord => ord
- Lean.Name.quickCmpAux (Lean.Name.num a a_1 a_2) (Lean.Name.str a_3 a_4 a_5) = Ordering.lt
- Lean.Name.quickCmpAux (Lean.Name.str a a_1 a_2) (Lean.Name.num a_3 a_4 a_5) = Ordering.gt
- Lean.Name.quickCmpAux (Lean.Name.str p₁ n₁ a) (Lean.Name.str p₂ n₂ a_1) = match compare n₁ n₂ with | Ordering.eq => Lean.Name.quickCmpAux p₁ p₂ | ord => ord
Equations
- Lean.Name.quickCmp n₁ n₂ = match compare (Lean.Name.hash n₁) (Lean.Name.hash n₂) with | Ordering.eq => Lean.Name.quickCmpAux n₁ n₂ | ord => ord
Equations
- Lean.Name.quickLt n₁ n₂ = (Lean.Name.quickCmp n₁ n₂ == Ordering.lt)
@[inline]
Equations
- Lean.Name.hasLtQuick = { lt := fun a b => Lean.Name.quickLt a b = true }
@[inline]
Equations
- Lean.Name.instDecidableRelNameLtHasLtQuick = inferInstanceAs (DecidableRel fun a b => Lean.Name.quickLt a b = true)
Equations
- Lean.Name.isInternal (Lean.Name.str p s a) = (String.get s 0 == Char.ofNat 95 || Lean.Name.isInternal p)
- Lean.Name.isInternal (Lean.Name.num p a a_1) = Lean.Name.isInternal p
- Lean.Name.isInternal _fun_discr = false
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Name.isAnonymous _fun_discr = match _fun_discr with | Lean.Name.anonymous => true | x => false
Equations
- Lean.Name.isStr _fun_discr = match _fun_discr with | Lean.Name.str a a_1 a_2 => true | x => false
Equations
- Lean.Name.isNum _fun_discr = match _fun_discr with | Lean.Name.num a a_1 a_2 => true | x => false
Equations
@[inline]
Equations
Equations
- Lean.NameMap.instEmptyCollectionNameMap α = { emptyCollection := Lean.mkNameMap α }
Equations
- Lean.NameMap.instInhabitedNameMap α = { default := ∅ }
Equations
- Lean.NameMap.insert m n a = Std.RBMap.insert m n a
Equations
- Lean.NameMap.contains m n = Std.RBMap.contains m n
@[inline]
Equations
- Lean.NameMap.find? m n = Std.RBMap.find? m n
Equations
- Lean.NameSet.instEmptyCollectionNameSet = { emptyCollection := Lean.NameSet.empty }
Equations
- Lean.NameSet.instInhabitedNameSet = { default := Lean.NameSet.empty }
Equations
- Lean.NameSet.insert s n = Std.RBTree.insert s n
Equations
- Lean.NameSet.contains s n = Std.RBMap.contains s n
Equations
- Lean.NameSet.instForInNameSetName = inferInstanceAs (ForIn m (Std.RBTree Lean.Name Lean.Name.quickCmp) Lean.Name)
@[inline]
Equations
- Lean.NameSSet.empty = Lean.SSet.empty
Equations
- Lean.NameSSet.instEmptyCollectionNameSSet = { emptyCollection := Lean.NameSSet.empty }
Equations
- Lean.NameSSet.instInhabitedNameSSet = { default := Lean.NameSSet.empty }
@[inline]
Equations
- Lean.NameSSet.insert s n = Lean.SSet.insert s n
@[inline]
Equations
@[inline]
Equations
- Lean.NameHashSet.empty = Std.HashSet.empty
Equations
- Lean.NameHashSet.instEmptyCollectionNameHashSet = { emptyCollection := Lean.NameHashSet.empty }
Equations
- Lean.NameHashSet.instInhabitedNameHashSet = { default := ∅ }
Equations
Equations
Equations
- String.toName s = let ps := String.splitOn s "." List.foldl (fun n p => Lean.Name.mkStr n (String.trim p)) Lean.Name.anonymous ps