@[export lean_add_protected]
Instances For
@[export lean_is_protected]
Instances For
Private name support. #
Suppose the user marks as declaration n
as private. Then, we create
the name: _private.
.
We say _private.
is the "private prefix"
We assume that n
is a valid user name and does not contain
Name.num
constructors. Thus, we can easily convert from
private internal name to the user given name.
Equations
- Lean.isPrivateName (Lean.Name.str p str) = (Lean.Name.str p str == Lean.privateHeader || Lean.isPrivateName p)
- Lean.isPrivateName (Lean.Name.num p i) = Lean.isPrivateName p
- Lean.isPrivateName x = false
Instances For
@[export lean_is_private_name]
Instances For
@[export lean_private_to_user_name]
Instances For
Instances For
@[export lean_private_prefix]