@[export lean_add_protected]
Equations
@[export lean_is_protected]
Equations
Equations
- Lean.mkPrivateName env n = Lean.Name.mkNum (Lean.privateHeader ++ Lean.Environment.mainModule env) 0 ++ n
Equations
- Lean.isPrivateName (Lean.Name.str p a a_1) = (Lean.Name.str p a a_1 == Lean.privateHeader || Lean.isPrivateName p)
- Lean.isPrivateName (Lean.Name.num p a a_1) = Lean.isPrivateName p
- Lean.isPrivateName _fun_discr = false
@[export lean_is_private_name]
Equations
@[export lean_private_to_user_name]
Equations
- Lean.privateToUserName? n = if Lean.isPrivateName n = true then some (Lean.privateToUserNameAux n) else none
Equations
- Lean.isPrivateNameFromImportedModule env n = match Lean.privateToUserName? n with | some userName => Lean.mkPrivateName env userName != n | x => false
@[export lean_private_prefix]
Equations
- Lean.privatePrefix? n = if Lean.isPrivateName n = true then some (Lean.privatePrefixAux n) else none