Multiplicative_Inverse_in_Ring_of_Integers_Modulo_m
Provedmodular-arithmeticmultiplicative-inverseproofwikiring-theory
Let be the ring of integers modulo . Then has an inverse in .
Preamble
import Mathlib.Analysis.Complex.Basic import Mathlib.Data.ZMod.Basic
Formal statement
theorem Multiplicative_Inverse_in_Ring_of_Integers_Modulo_m (m : ℕ) [NeZero m] (k : ZMod m) : IsUnit k ↔ Nat.Coprime (ZMod.val k) m := by sorry
Source