Zulip Chat Archive
Stream: lean4
Topic: AST for proof context?
Rehnertz (Jan 13 2024 at 20:16):
I'm working on auto proving and want to get the context (premises and golas) in tactic mode. Is it possible? Is there any reference or tutorial to extract AST of the context?
Henrik Böving (Jan 13 2024 at 20:22):
You should read the lean 4 meta programming book:https://github.com/leanprover-community/lean4-metaprogramming-book
Adam Topaz (Jan 13 2024 at 20:23):
If you want a pretty printed representation of the context, there is a function called ppGoal
or something like that. You could look at its implementation for some hints as well
Last updated: May 02 2025 at 03:31 UTC