OAI/Computability/QuantumFactoring/ModularMultiply.lean
6 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.ExactQuantumFactoring.BitArithmetic.mulModline 15Source documentation
Full double-width product followed by full double-width remainder, with no word overflow. The narrow remainder is valid because the modulus is a word.
def mulMod {n w : ℕ} (a b m : BooleanNetwork n w) : BooleanNetwork n w := …Mentions: OAI.ExactQuantumFactoring.BooleanNetwork
- lemma
OAI.ExactQuantumFactoring.BitArithmetic.mulMod_countline 19 - lemma
OAI.ExactQuantumFactoring.BitArithmetic.mulMod_wordline 27 - def
OAI.ExactQuantumFactoring.BitArithmetic.wordMuxline 45Source documentation
A word mux shares previously computed word outputs via fanout; it does not recompute the operand circuit separately at every bit.
def wordMux {n w : ℕ} (c : BooleanNetwork n 1) (a b : BooleanNetwork n w) : BooleanNetwork n w := …Mentions: OAI.ExactQuantumFactoring.BooleanNetwork
- lemma
OAI.ExactQuantumFactoring.BitArithmetic.wordMux_evalline 51 - lemma
OAI.ExactQuantumFactoring.BitArithmetic.wordMux_countline 62