OAI/NumberTheory/EgyptianFractions/RandomSecondMoment.lean
14 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.Problem337.RandomProducts.sampledProductline 14 - def
OAI.Problem337.RandomProducts.sampledPhaseline 18 - theorem
OAI.Problem337.RandomProducts.norm_sampledPhaseline 22 - theorem
OAI.Problem337.RandomProducts.sampledPhase_correlationline 26 - theorem
OAI.Problem337.RandomProducts.sampledProduct_split_firstline 37 - theorem
OAI.Problem337.RandomProducts.sampledProduct_split_otherline 64 - theorem
OAI.Problem337.RandomProducts.sampled_pair_bound_of_good_badline 77Source documentation
The exact sample-splitting interface for one pair of Boolean words.
theorem sampled_pair_bound_of_good_bad {m : ℕ} {P : Finset ℕ} (hne : P.Nonempty) (I J : Fin m → Bool) (A B : Finset (Fin m)) (hAB : Disjoint A B) (hA : ∀ i ∈ A, I i ≠ J i) (hB : ∀ i ∈ B, I i ≠ J i) (u l : ℕ) [NeZero u] (bad : Finset (ExposedLabel I A B → P)) (ε δ : ℝ) (hδ : 0 ≤ δ) (hbad : (bad.card : ℝ) / Fintype.card (ExposedLabel I A B → P) ≤ ε) (hgood : ∀ c, c ∉ bad → ‖𝔼 a : selectedLabels I A → P, 𝔼 b : selectedLabels I B → P, ZMod.stdAddChar (((l * exposedFirstProduct (fun p : P => (p : ℕ)) I A B c * (∏ z, (a z : ℕ)) * (∏ z, (b z : ℕ)) : ℕ) : ZMod u) - ((l * exposedOtherProduct (fun p : P => (p : ℕ)) I J A B hA hB c : ℕ) : ZMod u))‖ ≤ δ) : … - theorem
OAI.Problem337.RandomProducts.sampled_product_second_moment_of_correlationsline 106Source documentation
The actual labelled-prime-product random quantity, reduced to separated-pair correlations. The remaining hypothesis is precisely the output of exposure.
theorem sampled_product_second_moment_of_correlations {P : Finset ℕ} (hne : P.Nonempty) (m u l : ℕ) [NeZero u] (V : ℝ) (hlarge : 50 ≤ min (m : ℝ) V) (hpair : ∀ I J : Fin m → Bool, (m : ℝ) / 4 ≤ (hammingDist I J : ℝ) → ‖𝔼 p : (Fin m × Bool) → P, ZMod.stdAddChar (((l * sampledProduct p I : ℕ) : ZMod u) - ((l * sampledProduct p J : ℕ) : ZMod u))‖ ≤ Real.exp (-V / 20) + Real.exp (-V / 5)) : (𝔼 p : (Fin m × Bool) → P, ‖𝔼 I : Fin m → Bool, sampledPhase u l p I‖ ^ 2) ≤ Real.exp (-min (m : ℝ) V / 100) := by …Mentions: OAI.Problem337.RandomProducts.sampledProduct, OAI.Problem337.RandomProducts.sampledPhase
- theorem
OAI.Problem337.RandomProducts.sampled_pair_fresh_blocksline 124Source documentation
The actual Hamming condition supplies the two fresh blocks used by exposure.
theorem sampled_pair_fresh_blocks {S V : ℝ} (hS : 1 < S) (hV : 100000 * Real.log S ≤ V) (hVS : V ≤ S) (I J : Fin (blockLength S) → Bool) (hIJ : (blockLength S : ℝ) / 4 ≤ (hammingDist I J : ℝ)) : ∃ A B : Finset (Fin (blockLength S)), Disjoint A B ∧ A.card = freshLength S V ∧ B.card = freshLength S V ∧ (∀ i ∈ A, I i ≠ J i) ∧ (∀ i ∈ B, I i ≠ J i) := by …Mentions: OAI.Problem337.RandomProducts.blockLength, OAI.Problem337.RandomProducts.freshLength
- theorem
OAI.Problem337.RandomProducts.exposed_coordinate_card_leline 137Source documentation
The exposed factor uses at most the full first word's number of coordinates.
theorem exposed_coordinate_card_le {S : ℝ} (hS : Real.exp 1 ≤ S) (A B : Finset (Fin (blockLength S))) : (Fintype.card ↥(Finset.univ \ (A ∪ B)) : ℝ) ≤ S := by … - theorem
OAI.Problem337.RandomProducts.random_min_largeline 148Source documentation
The parameter range guarantees the fixed numeric threshold for error absorption.
theorem random_min_large {S V : ℝ} (hS : 2 ≤ S) (hV : 100000 * Real.log S ≤ V) (hVS : V ≤ S) : 50 ≤ min (blockLength S : ℝ) V := by … - theorem
OAI.Problem337.RandomProducts.exposed_bad_gcd_fractionline 162Source documentation
The actual exposed first-word factor has an exponentially small bad-gcd event. Unused exposed labels are eliminated by the exact uniform-coordinate marginal law.
theorem exposed_bad_gcd_fraction (S V : ℝ) (hS : 3 ≤ S) (hV : 100000 * Real.log S ≤ V) (hVS : V ≤ S) (P : Finset ℕ) (hP : P.Nonempty) (hprime : ∀ p ∈ P, Nat.Prime p) (hinterval : ∀ p ∈ P, S ^ 100 ≤ (p : ℝ) ∧ (p : ℝ) ≤ S ^ 101) (hsize : S ^ 99 ≤ (P.card : ℝ)) (u l : ℕ) (huexp : (u : ℝ) = Real.exp V) (hl : 0 < l) (hlbound : (l : ℝ) ≤ Real.exp (V / 200)) (I : Fin (blockLength S) → Bool) (A B : Finset (Fin (blockLength S))) : ((Finset.univ.filter (fun c : ExposedLabel I A B → P => ((u / Nat.gcd (l * exposedFirstProduct (fun p : P => (p : ℕ)) I A B c) u : ℕ) : ℝ) < Real.exp (9 * V / 10))).card : ℝ) / Fintype.card (ExposedLabel I A B → P) ≤ Real.exp (-V / 20) := by … - theorem
OAI.Problem337.RandomProducts.sampled_product_second_moment_boundline 194Source documentation
The complete random-product second-moment estimate for labelled independent prime samples, including Hamming exceptions, bad gcds, and bilinear cancellation.
theorem sampled_product_second_moment_bound (S V : ℝ) (hS : 3 ≤ S) (hV : 100000 * Real.log S ≤ V) (hVS : V ≤ S) (P : Finset ℕ) (hprime : ∀ p ∈ P, Nat.Prime p) (hinterval : ∀ p ∈ P, S ^ 100 ≤ (p : ℝ) ∧ (p : ℝ) ≤ S ^ 101) (hsize : S ^ 99 ≤ (P.card : ℝ)) (u l : ℕ) [NeZero u] (huexp : (u : ℝ) = Real.exp V) (hl : 0 < l) (hlbound : (l : ℝ) ≤ Real.exp (V / 200)) : (𝔼 p : (Fin (blockLength S) × Bool) → P, ‖𝔼 I : Fin (blockLength S) → Bool, sampledPhase u l p I‖ ^ 2) ≤ Real.exp (-min (blockLength S : ℝ) V / 100) := by …Mentions: OAI.Problem337.RandomProducts.blockLength, OAI.Problem337.RandomProducts.sampledPhase
- theorem
OAI.Problem337.RandomProducts.sampled_product_second_moment_log_boundline 240Source documentation
Logarithmic form with
V = log uand the smaller common frequency range.theorem sampled_product_second_moment_log_bound (S : ℝ) (hS : 3 ≤ S) (P : Finset ℕ) (hprime : ∀ p ∈ P, Nat.Prime p) (hinterval : ∀ p ∈ P, S ^ 100 ≤ (p : ℝ) ∧ (p : ℝ) ≤ S ^ 101) (hsize : S ^ 99 ≤ (P.card : ℝ)) (u l : ℕ) [NeZero u] (hV : 100000 * Real.log S ≤ Real.log (u : ℝ)) (hVS : Real.log (u : ℝ) ≤ S) (hl : 0 < l) (hlbound : (l : ℝ) ≤ Real.exp (min (blockLength S : ℝ) (Real.log (u : ℝ)) / 200)) : (𝔼 p : (Fin (blockLength S) × Bool) → P, ‖𝔼 I : Fin (blockLength S) → Bool, sampledPhase u l p I‖ ^ 2) ≤ Real.exp (-min (blockLength S : ℝ) (Real.log (u : ℝ)) / 100) := by …Mentions: OAI.Problem337.RandomProducts.blockLength, OAI.Problem337.RandomProducts.sampledPhase