|
| 1 | +# Rational commutative monoids |
| 2 | + |
| 3 | +```agda |
| 4 | +module group-theory.rational-commutative-monoids where |
| 5 | +``` |
| 6 | + |
| 7 | +<details><summary>Imports</summary> |
| 8 | + |
| 9 | +```agda |
| 10 | +open import elementary-number-theory.natural-numbers |
| 11 | +
|
| 12 | +open import foundation.dependent-pair-types |
| 13 | +open import foundation.equivalences |
| 14 | +open import foundation.identity-types |
| 15 | +open import foundation.propositions |
| 16 | +open import foundation.universe-levels |
| 17 | +
|
| 18 | +open import group-theory.commutative-monoids |
| 19 | +open import group-theory.monoids |
| 20 | +open import group-theory.powers-of-elements-commutative-monoids |
| 21 | +``` |
| 22 | + |
| 23 | +</details> |
| 24 | + |
| 25 | +## Idea |
| 26 | + |
| 27 | +A **rational commutative monoid** is a |
| 28 | +[commutative monoid](group-theory.commutative-monoids.md) `(M,0,+)` in which the |
| 29 | +map `x ↦ nx` is invertible for every |
| 30 | +[natural number](elementary-number-theory.natural-numbers.md) `n > 0`. This |
| 31 | +condition implies that we can invert the natural numbers in `M`, which are the |
| 32 | +elements of the form `n1` in `M`. |
| 33 | + |
| 34 | +Note: Since we usually write commutative monoids multiplicatively, the condition |
| 35 | +that a commutative monoid is rational is that the map `x ↦ xⁿ` is invertible for |
| 36 | +every natural number `n > 0`. However, for rational commutative monoids we will |
| 37 | +write the binary operation additively. |
| 38 | + |
| 39 | +## Definition |
| 40 | + |
| 41 | +### The predicate of being a rational commutative monoid |
| 42 | + |
| 43 | +```agda |
| 44 | +module _ |
| 45 | + {l : Level} (M : Commutative-Monoid l) |
| 46 | + where |
| 47 | +
|
| 48 | + is-rational-prop-Commutative-Monoid : Prop l |
| 49 | + is-rational-prop-Commutative-Monoid = |
| 50 | + Π-Prop ℕ |
| 51 | + ( λ n → |
| 52 | + is-equiv-Prop (power-Commutative-Monoid M (succ-ℕ n))) |
| 53 | +
|
| 54 | + is-rational-Commutative-Monoid : UU l |
| 55 | + is-rational-Commutative-Monoid = |
| 56 | + type-Prop is-rational-prop-Commutative-Monoid |
| 57 | +
|
| 58 | + is-prop-is-rational-Commutative-Monoid : |
| 59 | + is-prop is-rational-Commutative-Monoid |
| 60 | + is-prop-is-rational-Commutative-Monoid = |
| 61 | + is-prop-type-Prop is-rational-prop-Commutative-Monoid |
| 62 | +``` |
| 63 | + |
| 64 | +### Rational commutative monoids |
| 65 | + |
| 66 | +```agda |
| 67 | +Rational-Commutative-Monoid : (l : Level) → UU (lsuc l) |
| 68 | +Rational-Commutative-Monoid l = |
| 69 | + Σ (Commutative-Monoid l) is-rational-Commutative-Monoid |
| 70 | +
|
| 71 | +module _ |
| 72 | + {l : Level} (M : Rational-Commutative-Monoid l) |
| 73 | + where |
| 74 | +
|
| 75 | + commutative-monoid-Rational-Commutative-Monoid : Commutative-Monoid l |
| 76 | + commutative-monoid-Rational-Commutative-Monoid = pr1 M |
| 77 | +
|
| 78 | + monoid-Rational-Commutative-Monoid : Monoid l |
| 79 | + monoid-Rational-Commutative-Monoid = |
| 80 | + monoid-Commutative-Monoid commutative-monoid-Rational-Commutative-Monoid |
| 81 | +
|
| 82 | + type-Rational-Commutative-Monoid : UU l |
| 83 | + type-Rational-Commutative-Monoid = |
| 84 | + type-Commutative-Monoid commutative-monoid-Rational-Commutative-Monoid |
| 85 | +
|
| 86 | + add-Rational-Commutative-Monoid : |
| 87 | + (x y : type-Rational-Commutative-Monoid) → |
| 88 | + type-Rational-Commutative-Monoid |
| 89 | + add-Rational-Commutative-Monoid = |
| 90 | + mul-Commutative-Monoid commutative-monoid-Rational-Commutative-Monoid |
| 91 | +
|
| 92 | + zero-Rational-Commutative-Monoid : type-Rational-Commutative-Monoid |
| 93 | + zero-Rational-Commutative-Monoid = |
| 94 | + unit-Commutative-Monoid commutative-monoid-Rational-Commutative-Monoid |
| 95 | +
|
| 96 | + associative-add-Rational-Commutative-Monoid : |
| 97 | + (x y z : type-Rational-Commutative-Monoid) → |
| 98 | + add-Rational-Commutative-Monoid |
| 99 | + ( add-Rational-Commutative-Monoid x y) |
| 100 | + ( z) = |
| 101 | + add-Rational-Commutative-Monoid |
| 102 | + ( x) |
| 103 | + ( add-Rational-Commutative-Monoid y z) |
| 104 | + associative-add-Rational-Commutative-Monoid = |
| 105 | + associative-mul-Commutative-Monoid |
| 106 | + commutative-monoid-Rational-Commutative-Monoid |
| 107 | +
|
| 108 | + left-unit-law-add-Rational-Commutative-Monoid : |
| 109 | + (x : type-Rational-Commutative-Monoid) → |
| 110 | + add-Rational-Commutative-Monoid zero-Rational-Commutative-Monoid x = x |
| 111 | + left-unit-law-add-Rational-Commutative-Monoid = |
| 112 | + left-unit-law-mul-Commutative-Monoid |
| 113 | + commutative-monoid-Rational-Commutative-Monoid |
| 114 | +
|
| 115 | + right-unit-law-add-Rational-Commutative-Monoid : |
| 116 | + (x : type-Rational-Commutative-Monoid) → |
| 117 | + add-Rational-Commutative-Monoid x zero-Rational-Commutative-Monoid = x |
| 118 | + right-unit-law-add-Rational-Commutative-Monoid = |
| 119 | + right-unit-law-mul-Commutative-Monoid |
| 120 | + commutative-monoid-Rational-Commutative-Monoid |
| 121 | +
|
| 122 | + multiple-Rational-Commutative-Monoid : |
| 123 | + ℕ → type-Rational-Commutative-Monoid → type-Rational-Commutative-Monoid |
| 124 | + multiple-Rational-Commutative-Monoid = |
| 125 | + power-Commutative-Monoid commutative-monoid-Rational-Commutative-Monoid |
| 126 | +
|
| 127 | + is-rational-Rational-Commutative-Monoid : |
| 128 | + is-rational-Commutative-Monoid |
| 129 | + commutative-monoid-Rational-Commutative-Monoid |
| 130 | + is-rational-Rational-Commutative-Monoid = pr2 M |
| 131 | +``` |
0 commit comments