equal
deleted
inserted
replaced
3 *) |
3 *) |
4 |
4 |
5 section \<open>The Field of Integers mod 2\<close> |
5 section \<open>The Field of Integers mod 2\<close> |
6 |
6 |
7 theory Z2 |
7 theory Z2 |
8 imports Main "HOL-Library.Bit_Operations" |
8 imports Main |
9 begin |
9 begin |
10 |
10 |
11 text \<open> |
11 text \<open> |
12 Note that in most cases \<^typ>\<open>bool\<close> is appropriate hen a binary type is needed; the |
12 Note that in most cases \<^typ>\<open>bool\<close> is appropriate when a binary type is needed; the |
13 type provided here, for historical reasons named \<^text>\<open>bit\<close>, is only needed if proper |
13 type provided here, for historical reasons named \<^text>\<open>bit\<close>, is only needed if proper |
14 field operations are required. |
14 field operations are required. |
15 \<close> |
15 \<close> |
16 |
16 |
17 typedef bit = \<open>UNIV :: bool set\<close> .. |
17 typedef bit = \<open>UNIV :: bool set\<close> .. |