Polynomial-time trial primality for unary degree parameters #
Ignore candidate divisors zero and one, and reject every other actual divisor.
Equations
- MIPRE.LowDegree.DegreeArithmetic.trialCheck q d = decide (List.length d ≤ 1 ∨ ¬List.length d ∣ List.length q)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible, inline]
Instances For
Equations
Instances For
theorem
MIPRE.LowDegree.DegreeArithmetic.fold_primeStep
(ds : List Cost.Unary)
(q : Cost.Unary)
(b : Bool)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
The raw trial-division predicate.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Trial division through all smaller unary candidates is exactly primality.
One polynomial-time primality program on every unary input.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]