disable_tyabbrev_printing : string -> unit
If the string s is not a qualified name (of the form "thy$name"), then all type abbreviations with base name s are disabled. If s does have a qualified name, then only a type abbreviation of that name and theory will be disabled (if such exists).
- type_abbrev("LIST", ``:'a list``) > val it = () : unit - ``:num list``; > val it = ``:num LIST`` : hol_type - disable_tyabbrev_printing "LIST"; > val it = () : unit - ``:num LIST``; > val it = ``:num list`` : hol_type
This is generally the appropriate behaviour. However, there is are a number of useful abbreviations where reversing parsing when printing is not so useful. For example, the abbreviation mapping 'a set to 'a -> bool is convenient, but it would be a mistake having it print because types such as that of conjunction would print as
(/\) : bool -> bool set
As with other printing and parsing functions, there is a version of this function, temp_disable_tyabbrev_printing that does not cause its effect to persist with an exported theory.