It would be nice to be able to mark parts of a theory as "private", meaning that the definitions and lemmas can be used in the rest of the theory but not from outside the theory, even if it's imported or through explicit qualification. Like with data abstraction, the private parts could be changed without breaking uses of the theory. Non-private parts should not mention private parts, although proofs of non-private lemmas would often use private lemmas. docgen could ignore the private parts.
It would be nice to be able to mark parts of a theory as "private", meaning that the definitions and lemmas can be used in the rest of the theory but not from outside the theory, even if it's imported or through explicit qualification. Like with data abstraction, the private parts could be changed without breaking uses of the theory. Non-private parts should not mention private parts, although proofs of non-private lemmas would often use private lemmas.
docgencould ignore the private parts.