In Isabelle, the command print_state can print the current goals needed to be proved. However, I want the goals to to be printed in other easy-to-tackle formats like S-expressions and abstract syntax tree.
The default printing mode doesn't include this kind of format, so I am wondering how to modify the ML file inside Isabelle. Or more specific, how does the current goals pass to be printed. I am pretty it is in AST format inside the ML files before being passed to be printed, but I was having a hard time finding how the variables are transferred. Does anyone know how to solve this?