theoremimage_matchingPrimeSubtype (P : Finsetℕ) (a : ℤ) (t : ℕ→ℤ) (n : ℤ) :
(matchingPrimeSubtype P a t n).image Subtype.val = matchingPrimes P a t n :=by
proof · 8
lines
ext p
constructor
· intro hp
obtain ⟨q, hq, rfl⟩ :=Finset.mem_image.mp hp
exact Finset.mem_filter.mpr ⟨q.2, (Finset.mem_filter.mp hq).2⟩
· intro hp
obtain ⟨hP, hd⟩ :=Finset.mem_filter.mp hp
exact Finset.mem_image.mpr ⟨⟨p, hP⟩, Finset.mem_filter.mpr ⟨Finset.mem_univ _, hd⟩, rfl⟩
theoremcard_inter_matchingPrimeSubtype (P : Finsetℕ) (a : ℤ) (t : ℕ→ℤ) (n m : ℤ) :
(matchingPrimeSubtype P a t n ∩ matchingPrimeSubtype P a t m).card =
(matchingPrimes P a t n ∩ matchingPrimes P a t m).card :=by
theoremexists_commonCenter_of_lift_moments (P : Finsetℕ) (N : Finsetℤ)
(a : ℕ) (ha : 0 < a) (t : ℕ→ℤ) (k d K : ℕ) (hd : d ≤ k + 1)
(ABLV : ℝ) (hA : 0 < A) (hV : 0 < V)
(hprime : ∀ p ∈P, p.Prime) (hap : ∀ p ∈P, a < p)
(hlog : ∀ p ∈P, V≤Real.log (p : ℝ))
(hspan : ∀ n ∈N, ∀ m ∈N, n ≠ m →Real.log ((n - m).natAbs : ℝ) < (K + 1 : ℕ) * V)
(hsmall : 2 * K * (P.card : ℝ) ≤A ^ 2)
(hlo : (∑n : N, ((matchingPrimes P a t n.1).card.descFactorial (k + 1 - d) : ℝ)) ≤B)
(hhi : L≤∑n : N, ((matchingPrimes P a t n.1).card.descFactorial (k + 1) : ℝ))
(hpositive : 0 < L - A ^ d * B) :
∃ n ∈N, ∃h : ℤ, ∃m : ℕ,
0 < m ∧ m ≤ a ∧ h.natAbs.Coprime m ∧ |h| ≤ |n| ∧A≤ ((matchingPrimes P a t n).card : ℝ) ∧L - A ^ d * B≤2 * P.card * ((matchingPrimes P a t n).card : ℝ) ^ k ∧∀ (p : ℕ) (hp : p ∈ matchingPrimes P a t n),
let_ : Fact p.Prime:= ⟨hprime p (Finset.mem_filter.mp hp).1⟩
proof · 23
lines
(t p : ZMod p) = (h : ZMod p) / (m : ZMod p) :=by
classical
have hinter (n m : N) (hne : n ≠ m) :
((matchingPrimeSubtype P a t n.1∩ matchingPrimeSubtype P a t m.1).card : ℝ) ≤K:=by
rw [card_inter_matchingPrimeSubtype]
exact_mod_cast matchingPrimes_inter_card_le P a t n.1 m.1
(fun h => hne (Subtype.ext h)) KV hV hprime hlog (hspan n n.2 m m.2 (fun h => hne (Subtype.ext h)))
havehlo' : (∑n : N, ((matchingPrimeSubtype P a t n.1).card.descFactorial (k + 1 - d) : ℝ)) ≤B:=by
simpa only [card_matchingPrimeSubtype] using hlo
havehhi' : L≤∑n : N, ((matchingPrimeSubtype P a t n.1).card.descFactorial (k + 1) : ℝ) :=by
simpa only [card_matchingPrimeSubtype] using hhi
obtain ⟨n, hnsize, hnlarge⟩ := exists_commonCenter_from_factorial_moments
(funn : N=> matchingPrimeSubtype P a t n.1) k d hd AKBL hA (Nat.cast_nonneg _)
hinter (by simpa only [Fintype.card_coe] using hsmall) hlo' hhi' hpositive
rw [card_matchingPrimeSubtype] at hnsize hnlarge
obtain ⟨h, m, hm, hma, hred, hbound, heq⟩ := exists_reduced_commonCenter n.1 a ha
refine ⟨n.1, n.2, h, m, hm, hma, hred, hbound, hnsize, ?_, ?_⟩
· simpa only [Fintype.card_coe] using hnlarge
· intro p hp
have hpP := (Finset.mem_filter.mp hp).1let : Fact p.Prime:= ⟨hprime p hpP⟩
exact reduced_commonCenter_mod_prime n.1 h a m p ha (hap p hpP) hm hma heq (t p)
(Finset.mem_filter.mp hp).2