Zulip Chat Archive
Stream: new members
Topic: Lean 4 equivalent for `#print prefix`
Mathieu Guay-Paquet (May 17 2025 at 13:55):
Back in Lean 3, I used #print prefix pretty often to explore the codebase. I searched through the docs and skimmed this page with all the interaction commands, but didn't find anything equivalent in Lean 4. Does something like this still exist? (And while we're at it, some others from the old list like #print notation were very useful as well.)
Kevin Buzzard (May 17 2025 at 14:13):
I usually do #check Complex. and then hit ctrl-space to see everything in the Complex namespace
Aaron Liu (May 17 2025 at 16:49):
I think #print prefix still works, but it's very slow for me
Aaron Liu (May 17 2025 at 16:55):
It's in Batteries.Tactic.PrintPrefix
Last updated: Dec 20 2025 at 21:32 UTC