English
The canonical decision for primality coincides with its simplified form in a singleton context.
Русский
Каноническое решение primality совпадает с его упрощённой формой в единственном контексте.
LaTeX
$$$\\\\mathrm{decidablePrime} = \\\\mathrm{decidablePrime'}.$$$
Lean4
/-- This definition is faster in the virtual machine than `decidablePrime`,
but slower in the kernel.
-/
def decidablePrime' (p : ℕ) : Decidable (Prime p) :=
decidable_of_iff' _ prime_def_minFac