126 datatype_new_compat ~> datatype_compat |
126 datatype_new_compat ~> datatype_compat |
127 primrec_new ~> primrec |
127 primrec_new ~> primrec |
128 wrap_free_constructors ~> free_constructors |
128 wrap_free_constructors ~> free_constructors |
129 INCOMPATIBILITY. |
129 INCOMPATIBILITY. |
130 |
130 |
131 * Old datatype package: |
131 * Old and new (co)datatype packages: |
132 * Generated constants "xxx_case" and "xxx_rec" have been renamed "case_xxx" |
132 * Generated constants "xxx_case" and "xxx_rec" have been renamed "case_xxx" |
133 and "rec_xxx" (e.g., "prod_case" ~> "case_prod"). |
133 and "rec_xxx" (e.g., "prod_case" ~> "case_prod"). |
134 INCOMPATIBILITY. |
134 INCOMPATIBILITY. |
135 |
135 |
136 * The types "'a list" and "'a option", their set and map functions, their |
136 * The types "'a list" and "'a option", their set and map functions, their |
137 relators, and their selectors are now produced using the new BNF-based datatype |
137 relators, and their selectors are now produced using the new BNF-based |
138 package. |
138 datatype package. |
139 Renamed constants: |
139 Renamed constants: |
140 Option.set ~> set_option |
140 Option.set ~> set_option |
141 Option.map ~> map_option |
141 Option.map ~> map_option |
142 option_rel ~> rel_option |
142 option_rel ~> rel_option |
143 Renamed theorems: |
143 Renamed theorems: |
|
144 set_def ~> set_rec[abs_def] |
144 map_def ~> map_rec[abs_def] |
145 map_def ~> map_rec[abs_def] |
145 Option.map_def ~> map_option_case[abs_def] (with "case_option" instead of "rec_option") |
146 Option.map_def ~> map_option_case[abs_def] (with "case_option" instead of "rec_option") |
146 list_all2_def ~> list_all2_iff |
147 list_all2_def ~> list_all2_iff |
|
148 set.simps ~> set_simps (or the slightly different "list.set") |
147 map.simps ~> list.map |
149 map.simps ~> list.map |
148 hd.simps ~> list.sel(1) |
150 hd.simps ~> list.sel(1) |
149 tl.simps ~> list.sel(2-3) |
151 tl.simps ~> list.sel(2-3) |
150 the.simps ~> option.sel |
152 the.simps ~> option.sel |
151 INCOMPATIBILITY. |
153 INCOMPATIBILITY. |