diff --git a/Assert.thy b/Assert.thy index da810d1..7d4bb0f 100644 --- a/Assert.thy +++ b/Assert.thy @@ -223,14 +223,14 @@ structure String_of_thm_cmp_assert : STRING_OF_THM_CMP_ASSERT = struct name = "string_of_thm_equal", description = "Check that string representation (including types) " ^"matches given string.", - assertion = (assert_string_of_thm_cmp_args (op =)) + assertion = (assert_string_of_thm_cmp_args (=)) } val string_of_thm_notequal = { name = "string_of_thm_notequal", description = "Check that string representation (including types) " ^"does not match given string.", - assertion = (assert_string_of_thm_cmp_args (op <>)) + assertion = (assert_string_of_thm_cmp_args (<>)) } end \ diff --git a/Hiding_Type_Variables.thy b/Hiding_Type_Variables.thy index 8b10473..eb3bc2c 100644 --- a/Hiding_Type_Variables.thy +++ b/Hiding_Type_Variables.thy @@ -42,21 +42,21 @@ text\ This theory implements a mechanism for declaring default type variables for data types. This comes handy for complex data types with many type variables. The theory sets up both configurable print and parse translations that allows - for replacing @{emph \all\} type variables by @{text \(_)\}, e.g., a five-ary - constructor @{text \('a, 'b, 'c, 'd, 'e) hide_tvar_foo\} can be shorted to - @{text \(_) hide_tvar_foo\}. The use of this shorthand in output (printing) and input + for replacing @{emph \all\} type variables by \(_)\, e.g., a five-ary + constructor \('a, 'b, 'c, 'd, 'e) hide_tvar_foo\ can be shorted to + \(_) hide_tvar_foo\. The use of this shorthand in output (printing) and input (parsing) is, on a per-type basis, user-configurable using the top-level - commands @{text \register_default_tvars\} (for registering the names of the + commands \register_default_tvars\ (for registering the names of the default type variables and the print/parse mode) and - @{text \update_default_tvars_mode\} (for changing the print/parse mode + \update_default_tvars_mode\ (for changing the print/parse mode dynamically). The input also supports short-hands for declaring default sorts (e.g., - @{text \(_::linorder)\} specifies that all default variables need to be + \(_::linorder)\ specifies that all default variables need to be instances of the sort (type class) @{class \linorder\} and short-hands of overriding a suffice (or prefix) of the default type variables. For - example, @{text \('state) hide_tvar_foo _.\} is a short-hand for - @{text \('a, 'b, 'c, 'd, 'state) hide_tvar_foo\}. + example, \('state) hide_tvar_foo _.\ is a short-hand for + \('a, 'b, 'c, 'd, 'state) hide_tvar_foo\. }\ section\Implementation\