--- id: QuantumShorOrderFindingCore language: en section: quantum-physics source: Verification/QuantumShorOrderFindingCore.lean source_sha256: 7ecebffd008cd888625cc38cff3acdeeb2c7899d8d3e7ba0cc313729597b7ede novelty: not-assessed status: reviewed --- # Spectral core of quantum order finding [Section](../quantum-physics/README.md) · [Lean](../../Verification/QuantumShorOrderFindingCore.lean) ## Parameters and actual operator Parameters supplies a modulus N≥2, a natural base a with Nat.Coprime a N, and a target width m with N≤2^m. The control width n is independent of m. The base need not already be reduced modulo N. period is orderOf (a : ZMod N), not an externally supplied candidate or a computed classical solution. period_pos and shor_period_modulo prove r>0 and a^r mod N=1; shor_powers_distinct_modulo proves injectivity of k↦a^k mod N for k