Powers of two modulo powers of three #
This file proves that 2 generates the unit group modulo every positive power
of three. At level n, its order modulo 3 ^ (n + 1) is exactly
2 * 3 ^ n. Thus one complete period of exponents is equivalent to the full
unit group.
The unit represented by 2 modulo 3 ^ (level + 1).
Equations
- GKPCarry.twoUnit level = ZMod.unitOfCoprime 2 ⋯
Instances For
Send an exponent in one complete period to the corresponding power of
2 in the unit group.
Equations
- GKPCarry.twoPowerUnitMap level exponent = GKPCarry.twoUnit level ^ ↑exponent
Instances For
A complete period of exponents is equivalent to all units modulo the corresponding power of three.
Equations
- GKPCarry.twoPowerUnitEquiv level = Equiv.ofBijective (GKPCarry.twoPowerUnitMap level) ⋯
Instances For
@[simp]