I have sifting through implementation.pdf, section 1.15 and isar-ref.pdf to figure out how to write out the value of a configuration parameter (e.g. declare [[ smt_timeout = 0 ]] ) how do I print the value of smt_timeout?
Would it be something on the lines of ML <Config.get context smt_timeout>? That doesn't seem to be syntactically correct
Is the only way to do this print_options?
This works ML ‹Config.get @{context} SMT_Config.timeout›
Thank you! How should I have figured it out?
from the manual
You can Ctrl-click on smt_timeout to find out the corresponding ML constant. @{context} is the usual way to get hold of the context at that position in ML.
attribute "SMT.smt_timeout"
It doesn't say SMT_Config though
Ant S. said:
attribute "SMT.smt_timeout"
to clarify this is what I get when CTRL-hovering/clicking
is it based on the ML file name (SMT_Config.ml)
If you look at the file, you see that the result of the declaration of the config attribute is assigned to timeout. Since timeout is part of the module SMT_Config, you can refer to this config option as SMT_Config.timeout.
structure SMT_Config: SMT_CONFIG
ah, so this line. Is there some way to get a "bird's eye view" of the file/module structure in jEdit? Sort of like what Ctrl-hovering does in Isar or just hovering over a variable does in VSCode for most languages. Ctrl-click/hover doesn't seem to do much in ML
Is there some jEdit plugin that does this? I found https://github.com/polyml/jedit-plugin but it seems outdated...
the sidekick works to get some idea of the structure
but there is no way to show documentation of a variable
because there is none
Some people have the opinion that no documentation is better than a misleading one
Ant S. said:
Is there some way to get a "bird's eye view" of the file/module structure in jEdit? Sort of like what Ctrl-hovering does in Isar or just hovering over a variable does in VSCode for most languages.
I am not sure I am understanding what you want, but, if you (1) open your ISABELLE_HOME/src/HOL/SMT.thy in jEdit, (2) load it to the end of the file, and then (3) open the smt_config.ML in jEdit, you will be able to ctrl-hover some things in that file and get, e.g. some typing information.
Last updated: May 05 2026 at 02:56 UTC