Self-inverse nonzero residues modulo a prime
ProvedWorkbookRestored.plus_42229lean-workbookrestored-importssource-checked
For a prime and nonzero residue , if and only if or .
This restores the missing imports or namespaces of the original node, retaining its formal proposition. Source: Lean-Workbook row lean_workbook_plus_42229 (Apache-2.0).
Preamble
import Mathlib.Analysis.Complex.Basic import Mathlib.Data.ZMod.Basic open Nat
Formal statement
theorem WorkbookRestored.plus_42229 (p : ℕ) (hp : p.Prime) (a : ZMod p) (ha : a ≠ 0) : a = a⁻¹ ↔ a = 1 ∨ a = p-1 := by sorry
Source