Zulip Chat Archive
Stream: lean4
Topic: Disable prelude?
Siddharth Bhat (Dec 25 2021 at 15:36):
I'm used to Haskell's {-# NoImplicitPrelude #-}
to turn off all inbuilt/prelude declarations. Is there an equivalent in Lean?
Chris B (Dec 25 2021 at 15:45):
I think it's the same as it was in lean 3, you just put prelude
at the top of the file.
prelude
/- unknown constant 'Nat' -/
#print Nat
/- unknown constant 'Eq' -/
#print Eq
Last updated: Dec 20 2023 at 11:08 UTC