Hi,
there's the function Function.get_info
, which gives me the info and therefore the terms of functions created by fun
and function
. Is there also a function to get the terms of a primrec
function?
There is nothing user-relevant stored for functions defined using primrec, but you can find the simp rules and constants in the Spec_Rules database. Try:
ML ‹Spec_Rules.get @{context}›
ML ‹Spec_Rules.retrieve @{context} @{term "replicate"}›
Thank you!
Last updated: Dec 21 2024 at 16:20 UTC