lean4-htt/tests/pkg/module/Module/Imported.lean
Sebastian Ullrich 1b1c05916f
chore: refine module imports (#8120)
* bump whole imported module closure to private if necessary
* disallow import of non-`module` from `module`
2025-04-27 20:45:31 +00:00

19 lines
298 B
Text

module
prelude
import Module.Basic
/-! Theorems should be exported without their bodies -/
/--
info: theorem t : f = 1 :=
<not imported>
-/
#guard_msgs in
#print t
/-- error: dsimp made no progress -/
#guard_msgs in
example : f = 1 := by dsimp only [t]
example : t = t := by dsimp only [trfl]