The floor for the *atomic uniform* primitive, restated for comparison: a
ProvedRound7Rho.uniform_multiples_cardaether-catalogtropical
The floor for the atomic uniform primitive, restated for comparison: a
single uniform sample from [1, N) hits a multiple of p with probability
1/p, and the two densities differ by the factor p that the correlated walk
buys — at the cost of aggregation_cost.
theorem Round7Rho.uniform_multiples_card{p q : ℕ} (hp : 0 < p) :
((Finset.Ioo 0 (p * q)).filter (fun x => p ∣ x)).card * p = p * q - p := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Tropical/Round7RhoNoiseFloor.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Tropical/Round7RhoNoiseFloor.lean
import Mathlib
import Definitions.Def_Tropical_Round7RhoNoiseFloor
/-!
# Round-7 closure STATICRHO: scoping the noise-floor principle
Experiment 326 measured that the *correlated* sample set produced by the static
rho walk `x ↦ x² + 1 (mod N)` has factor-bearing density far above the
`N^{-1/2}` noise floor, and concluded that the noise-floor principle must be
scoped to **atomic uniform primitives**. This file proves the three arithmetic
facts that make that refinement precise.
* `rhoZ_iterate_modEq` : the rho walk **commutes with reduction**: congruent
seeds stay congruent, so the walk mod `N` covers a walk mod `p` — the source
of the correlation.
* `exists_collision_mod_p` : by pigeonhole the walk mod `p` **collides within
`p + 1` steps**, so among the first `p + 1` correlated samples a
factor-bearing pair always exists (density `≥ 2/(p+1)p`, unconditionally,
with no probabilistic hypothesis at all).
* `gcd_extract_of_dvd_sub` : a collision mod `p` that is *not* a collision mod
`N` **extracts the factor**: `gcd(xᵢ - xⱼ, N) = p`.
* `rho_collision_extracts_factor` : the three combined — the correctness core of
Pollard's rho.
* `aggregation_cost` : the escape is paid for by aggregation: extracting a
factor from `T` correlated samples requires the `T(T-1)/2` pairwise gcds,
which for `T = p + 1` already exceeds the `p` trial divisions. This is the
precise sense in which the correlated sample set does not beat the floor.
Contrast with `Catalog/Tropical/Round7ZeroDivisorGraph.lean`, where the atomic
uniform primitive is shown to succeed with probability at most `2/p`.
-/
open Round7Rho
/-! ## 1. The rho map and its compatibility with reduction -/
/-! ## 2. The collision: pigeonhole on the reduced walk -/
/-! ## 3. Extraction: a one-sided collision reveals the factor -/
/-! ## 4. The aggregation price -/Formal statement
theorem Round7Rho.uniform_multiples_card{p q : ℕ} (hp : 0 < p) :
((Finset.Ioo 0 (p * q)).filter (fun x => p ∣ x)).card * p = p * q - p := by sorrySource