equal
deleted
inserted
replaced
179 |
179 |
180 instantiation nat :: comm_semiring_1_cancel |
180 instantiation nat :: comm_semiring_1_cancel |
181 begin |
181 begin |
182 |
182 |
183 definition |
183 definition |
184 One_nat_def [simp, code_post]: "1 = Suc 0" |
184 One_nat_def [simp]: "1 = Suc 0" |
185 |
185 |
186 primrec times_nat where |
186 primrec times_nat where |
187 mult_0: "0 * n = (0\<Colon>nat)" |
187 mult_0: "0 * n = (0\<Colon>nat)" |
188 | mult_Suc: "Suc m * n = n + (m * n)" |
188 | mult_Suc: "Suc m * n = n + (m * n)" |
189 |
189 |
1780 Nat Arith |
1780 Nat Arith |
1781 |
1781 |
1782 code_modulename Haskell |
1782 code_modulename Haskell |
1783 Nat Arith |
1783 Nat Arith |
1784 |
1784 |
|
1785 hide_const (open) of_nat_aux |
|
1786 |
1785 end |
1787 end |