OAI/Computability/QuantumFactoring/RetrospectiveResidues.lean
11 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.ExactQuantumFactoring.recordFirstline 21Source documentation
The distinguished component is selected from the supplied record, not by factoring the requested integer a second time.
def recordFirst (f : FactorRecord) : ℕ := …
Mentions: OAI.ExactQuantumFactoring.FactorRecord
- lemma
OAI.ExactQuantumFactoring.recordFirst_factorizationline 24 - lemma
OAI.ExactQuantumFactoring.component_two_leline 35 - lemma
OAI.ExactQuantumFactoring.equivPi_natCastline 39 - lemma
OAI.ExactQuantumFactoring.unitCRT_natCastline 43 - def
OAI.ExactQuantumFactoring.dataResidueGoodline 49 - lemma
OAI.ExactQuantumFactoring.data_component_orderline 56 - lemma
OAI.ExactQuantumFactoring.dataResidueGood_correctline 66Source documentation
The retrospective favorable test is a scan of supplied prime-power factors and prime-stripping computations. It agrees with the CRT event on every actual requested cofactor, including those below a node of the auxiliary tree.
lemma dataResidueGood_correct {M m n a : ℕ} (hM : 0<M) (hm : 2 ≤ m) (hb : m < 2^n) (hd : m∣M) (u : (ZMod m)ˣ) (ha : a=(u : ZMod m).val) : dataResidueGood (trueData M) a m ↔ FavorableUnit (by omega) hb (UniversalSplit.firstComponent hm) u := by …Mentions: OAI.ExactQuantumFactoring.dataResidueGood, OAI.ExactQuantumFactoring.trueData, OAI.ExactQuantumFactoring.FavorableUnit, OAI.ExactQuantumFactoring.UniversalSplit.firstComponent
- def
OAI.ExactQuantumFactoring.dataCanonicalResidueline 99Source documentation
Checking the uniquely specified CRT residue needs only congruences against the supplied prime powers; no CRT search is hidden in the guess validator.
noncomputable def dataCanonicalResidue (data : FactorData) (a m : ℕ) : Prop := …
Mentions: OAI.ExactQuantumFactoring.FactorData
- lemma
OAI.ExactQuantumFactoring.canonical_component_valline 104 - lemma
OAI.ExactQuantumFactoring.dataCanonicalResidue_correctline 122