OAI/Combinatorics/LowSpaceSubsetSum/Counting/Magnitudes.lean
16 declarations, 0 contain sorry, 0 declared as axioms
Input bit lengths and exact signed-weight bounds
The bit parameter is the manuscript's ceiling logarithm, computed on the original nonnegative input. These bounds include raw occurrences that repeat indices, so hashing before a local-overlap test is covered.
- def
OAI.LowSpaceSubsetSum.inputMaximumline 19 - def
OAI.LowSpaceSubsetSum.inputBitsline 22 - def
OAI.LowSpaceSubsetSum.inputScaleline 25 - theorem
OAI.LowSpaceSubsetSum.inputBits_posline 27 - theorem
OAI.LowSpaceSubsetSum.inputMaximum_lt_two_pow_bitsline 30 - theorem
OAI.LowSpaceSubsetSum.value_lt_two_pow_bitsline 37 - theorem
OAI.LowSpaceSubsetSum.target_lt_two_pow_bitsline 43 - theorem
OAI.LowSpaceSubsetSum.weight_natAbs_leline 47 - theorem
OAI.LowSpaceSubsetSum.flip_natAbsline 58 - def
OAI.LowSpaceSubsetSum.occurrenceWeightline 63Source documentation
The list retains repeated index occurrences in a raw tuple.
def occurrenceWeight {ι : Type*} (a : ι → ℤ) (xs : List ι) : ℤ := … - theorem
OAI.LowSpaceSubsetSum.occurrenceWeight_natAbs_leline 66 - theorem
OAI.LowSpaceSubsetSum.signed_weight_natAbs_leline 77 - theorem
OAI.LowSpaceSubsetSum.signed_target_natAbs_leline 84 - theorem
OAI.LowSpaceSubsetSum.raw_signed_weight_natAbs_leline 96 - theorem
OAI.LowSpaceSubsetSum.relevant_magnitude_ltline 106 - theorem
OAI.LowSpaceSubsetSum.relevant_difference_bitsline 123Source documentation
Every hash difference between valid or raw signed quantities of the stated size meets the concrete prime-hashing bit hypothesis.
theorem relevant_difference_bits {n : ℕ} (I : Instance n) {x y : ℤ} (hx : x.natAbs ≤ (2 * n + 1) * 2 ^ inputBits I) (hy : y.natAbs ≤ (2 * n + 1) * 2 ^ inputBits I) : (x - y).natAbs < 2 ^ (2 * inputScale I) := by …Mentions: OAI.LowSpaceSubsetSum.Instance, OAI.LowSpaceSubsetSum.inputBits, OAI.LowSpaceSubsetSum.inputScale