decls
Term.decls : string -> term list
Returns a list of constants having the same name.
An invocation Term.decls s
returns a list of constants
found in the current theory having the name s
. If there are
no constants with name s
, then the empty list is
returned.
Never fails.
- decls "+";
> val it = [`$+`] : term list
- map dest_thy_const it;
> val it = [{Name = "+", Thy = "arithmetic", Ty = `:num -> num -> num`}] : ...
Useful for untangling confusion arising from overloading and also the possibility to declare two different constants with the same name in different theories.