This PR adjusts the experimental module system to not export the bodies of `def`s unless opted out by the new attribute `@[expose]` on the `def` or on a surrounding `section`. --------- Co-authored-by: Markus Himmel <markus@lean-fro.org>
13 lines
165 B
Text
13 lines
165 B
Text
module
|
|
|
|
/-! Module docstring -/
|
|
|
|
/-- A definition. -/
|
|
def f := 1
|
|
|
|
/-- A theorem. -/
|
|
theorem t : f = 1 := sorry
|
|
|
|
theorem trfl : f = 1 := rfl
|
|
|
|
@[expose] def fexp := 1
|