Zulip Chat Archive
Stream: lean4
Topic: protected + nesting
Eric Rodriguez (Nov 05 2025 at 16:30):
wondering whether it's intended that protected doesn't actually protect more than the "innermost" namespace, i.e.:
namespace A.B.C.D.E.F
theorem abcdef : True := by trivial
protected theorem x : True := by trivial
-- all of these work
#check A.B.C.D.E.F.x
#check B.C.D.E.F.x
#check F.x
-- this fails
#check x
François G. Dorais (Nov 05 2025 at 22:56):
It always worked that way. Do you have a use case where deeper protection is needed?
Last updated: Dec 20 2025 at 21:32 UTC